This Python program allows you to visualize different sorting algorithms. You can see how they work, as well as their complexity.
Algorithms:
- Bubble
- Optimized bubble
- Cocktail
- Optimized cocktail
- Gnome
- Insertion
- Selection
- Shell
- Comb
- Cycle
Visulizations:
- Bars
- Scatterplot
- Black and white
- Color gradient
- Pie
- Pie scatterplot
- Pie black and white
- Pie color gradient
- Custom image
Features:
- Start and stop
- 10 to 512 elements
- 10 to 240 ticks per second
- Sort stats
Algorithms:
- Bubble
- Cocktail Shaker
- Gnome
- Insertion
- Selection
- Shell
- Comb
- Cycle
Visulizations:
- Bars
- Scatterplot
- Black and white
- Color gradient
- Pie
- Pie scatterplot
- Pie black and white
- Pie color gradient
Features:
- Start and stop
- 10 to 500 elements
- 10 to 240 ticks per second
- Sort stats
Algorithms included:
- Insertion
- Cocktail
- Selection
- Bubble
- Pigeonhole
- Shell
- Gnome
How to use:
- Adjust the Set Size slider to the desired size. This controls how many elements there are.
- Click Generate Set to create a new set of elements.
- Click one of the algorithms, and watch the sorting!
Additional features:
- Click Stop to stop the algorithm at any time.
- Click Sort to immediately sort the current elements.