Giter VIP home page Giter VIP logo

visual-sorter's People

Contributors

airiset avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

koorikdat

visual-sorter's Issues

Update Canvas Visualization to use requestAnimationFrame

Currently, the canvas visualization is implemented using the asynchronous setInterval function. To make the visualization smoother and more efficient, it is recommended to implement animations using the requestAnimationFrame function.

Soundalization!

Is there something better than visualizing a sorting algorithm? Well, of course: visualizing AND listening to a sorting algorithm! Imagine that each index of an array represents the key of an imaginary piano. It would be possible to hear a child-like tune from the many selections in a sorting snapshot.

Small aesthetic change!

Nitpicking a little here, but I think you can add a little margin in between the buttons just to give them some space, and it would complete the aesthetics of the page! But this is really cool and I love the compare sorting algorithms feature! Very useful in getting a visual understanding of time complexity!

image

Gaps Between Bars: An Unsightly Visual

Throughout development, I noticed that the bars that are sorted in the list show small gaps between them. It does not look bad for small lists, allowing us to see the differences between the bars.

hello

However, with greater lists, the effects compound to form an ugly white band effect.

hello

I do not like it. It has to go.

IOS Mobile Dropdown Support

Currently it seems that the dropdown menus will not operate correctly on IOS devices, however the default settings and adjusting the dataset in size will function correctly as expected. This has been tested on iPhone XS, XS Max.

More Sorter Classes!!

The Visual Sorter is finally past its childhood and into its long-term development stage. It is time to increase the variety of sorting algorithms implemented in our sort.js module. As a start, the following algorithms should be implemented into the sort.js library,

  • - Heap Sort
  • - Sample Sort (var. Quicksort)
  • - Shell Sort (var. Insertion Sort)
  • - Gnome Sort (var. Insertion Sort)
  • - Cocktail Sort (var. Bubble Sort)

Each new algorithm should following the inheritance structure of the Sorter family of classes. If an algorithm is a variant of an already created algorithm, it should inherit from it. For example, Cocktail Sort is a variant of Bubble Sort, so the class that implements it should inherit from Bubble Sorter. The variant algorithms in this list are marked with a (var.).

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.