Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

MattMoony/pretty-sorting-algorithms

Repository files navigation

Visualizing Sorting Algorithms

A try to make the work of sorting algorithms visible.
Although the speed may not always be a 100% accurate, I hope that the project itself is still quite enjoyable.

New sorting algorithms can easily be added.
The sorting algorithm's function needs to be "async" (as otherwise, the current sleep function could not be called), furthermore, the function gets one argument: display. Its value will be a function that takes an array as an argument and displays it visually in an HTML5 canvas. Also, the function can/should keep track of its comparisons and movements, and can/should call the function "refresh" with said variable's values ever so often.

Inspired by the work of:
- Timo Bingmann (https://www.youtube.com/user/tbingmann)
- w0rthy (https://www.youtube.com/user/carnifexV)
- Sorting Stuff (https://www.youtube.com/channel/UCkcsofTvUMe1gQKuNoZbkKw)

AltStyle によって変換されたページ (->オリジナル) /