Giter Club home page Giter Club logo

campus-num-visual-sort's People

Contributors

vberthet avatar

Watchers

 avatar

campus-num-visual-sort's Issues

Provide a way to clone an array portion

When working with merge sort, having only the swap operation is very limiting and degrade a lot the performance of the algorithm.

We should provide a option similar to splice that clone a part of the array.
Then the students will have the ability to merge the array in a easier and more natural way.
At the end of merging provide a function to copy back the cloned array to the top array.

The view should also display the cloned section on transparent over the top array to visualize the merging process.

Verify sort at the end

Verify that the algorithm has correctly sorted the array.
In case of success paint in green otherwise paint in red.

Fix drawing panel

When the number of items is to high the panel doesn't draw anything.
In fact in that case the with of the bar in lower than 1 pixel.

In addition due to rounding, some of the last element could be drawn outside of the panel.

Provide other array generator

Currently the array is fully random.

We should provide a way to generate :

nearly sorted arrays
nearly reversed sorted arrays

Fix thearding model

Improve thread structure, it done quite badly in the current implementation.

The sorting algorithm keeps running when the sorting window is closed.
The windows can't redraw if we remove the pause inside the swap method.

Solution, the sorting should append in an separate thread and must be stopped when the windows is closed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.