An open API service indexing awesome lists of open source software.

https://github.com/dschau/algorithm-playground

A live-editing visual comparison of a number of different JavaScript sorting algorithms
https://github.com/dschau/algorithm-playground

algorithms animation canvas flow javascript react sorting visualization

Last synced: about 1 year ago
JSON representation

A live-editing visual comparison of a number of different JavaScript sorting algorithms

Awesome Lists containing this project

README

          

# [algorithm-playground][algorithm-playground]



Travis


code style: prettier

A playground to experiment with different sorting algorithms and see a preview of that algorithm applied to a visulization of sorting colors

[![Algorithm Playground](./assets/algorithm-playground.gif)](https://giphy.com/gifs/xUOxf7xnJc4xVeZlDy/html5)

## Algorithms

- [Bitonic Merge Sort](./src/algorithms/bitonic-merge-sort.js)
- [Bogo Sort](./src/algorithms/bogo-sort.js)
- [Bubble Sort](./src/algorithms/bubble-sort.js)
- [Bucket Sort](./src/algorithms/bucket-sort.js)
- [Cocktail Sort](./src/algorithms/cocktail-sort.js)
- [Comb Sort](./src/algorithms/comb-sort.js)
- [Insertion Sort](./src/algorithms/insertion-sort.js)
- [Merge Sort](./src/algorithms/merge-sort.js)
- [Quick Sort](./src/algorithms/quick-sort.js)
- [Radix Sort](./src/algorithms/radix-sort.js)
- [Selection Sort](./src/algorithms/selection-sort.js)
- [Shell Sort](./src/algorithms/shell-sort.js)

## Credits

Without the work of these excellent folks, the algorithms you see visualized would have been written by me (but probably not as well). I sincerely thank them for their work!

- [Sorting Algorithms in JavaScript](http://blog.benoitvallon.com/sorting-algorithms-in-javascript/sorting-algorithms-in-javascript-all-the-code/)
- [Rosetta Code](https://rosettacode.org/wiki/Sorting_algorithms/Cocktail_sort#JavaScript)
- [Learn JS With Me](http://learnjswith.me/quick-sort-in-javascript/)
- [NCZOnline](https://www.nczonline.net/blog/2009/09/08/computer-science-in-javascript-selection-sort/)

Additionally, I'd like to credit the work of [reddit user morolin](https://www.reddit.com/r/woahdude/comments/78fzi7/sorting_algorithms_visualized_gifv/?st=jaj5goe1&sh=e80fb95c) for the initial inspiration

[algorithm-playground]: https://algorithm-playground.com