Skip to content
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)

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy