Python program that demonstrates and compares the speed of different sorting algorithms directly in your terminal.
This tool provides a simple, visual way to observe how sorting algorithms perform on random data arrays of varying sizes and speeds.
Tip: For very large arrays (n ≥ 10,000), use CTRL - to zoom out for to see more accurate real time sorting.
Run with make to build and execute the program:
$ make # or 'make re' to rebuild, 'make clean' to clean up
$ ./sort_scriptYou’ll be prompted to select a sorting method:
(1): Bubble sort
(2): Selection sortThen pick how fast you want the visualization to run:
(1): Default
(2): Slow
(3): Very slowHere’s a quick look at the visualizer in action:
- Add more algorithms
- Display real-time stats and more stats overall
