This project is a Python application that visualizes sorting algorithms using Pygame. It provides an interactive way to see how different sorting algorithms work step by step.
- Visualizes sorting algorithms (Bubble Sort, Insertion Sort)
- Interactive controls to reset, start sorting, and switch between ascending/descending order
- Colorful gradient bars for better visualization
- Real-time updates as the sorting progresses
- R: Reset the list
- Space: Start sorting
- A: Sort in ascending order
- D: Sort in descending order
- I: Use Insertion Sort
- B: Use Bubble Sort
- Python 3.x
- Pygame
- Install Python 3.x from python.org
- Install Pygame:
pip install pygame
Run the visualizer with:
python "Sorting Algorithm Visualizer/tutorial.py"
Sorting Algorithm Visualizer/tutorial.py
: Main application fileREADME.md
: Project documentation
This project is for educational purposes.