Visualize 5 sorting algorithms in real-time using Python and Matplotlib.
- Bubble Sort
- Selection Sort
- Insertion Sort
- Quick Sort
- Merge Sort
pip install -r requirements.txt
python visualizer.py bubble
python visualizer.py quick --size 30 --interval 5| Argument | Description | Default |
|---|---|---|
algorithm |
One of: bubble, selection, insertion, quick, merge | required |
--size |
Number of elements | 50 |
--interval |
Milliseconds between frames | 10 |