An educational application developed in Python using the game development library Pygame, which helps illustrate how a variety of sorting algorithms function in real-time by making visual adjustments to the bars as the algorithms perform the calculations.
- 9 Sorting Algorithms: Bubble Sort, Bucket Sort, Cocktail Sort, Counting Sort, Heap Sort, Insertion Sort, Merge Sort, Quick Sort, and Selection Sort
- Real-time Visualization: See each algorithm's step-by-step execution
- Educational: Perfect for students learning algorithms and data structures
- Interactive: Built with Pygame for smooth animations
- Python 3.x
- pip (Python package installer)
- Clone the repository:
git clone https://github.com/LucasPilla/Sorting-Algorithms-Visualizer.git cd Sorting-Algorithms-Visualizer
- Install dependencies:
pip install -r requirements.txt
- Run the visualizer:
python3 src/main.py
Watch the algorithms in action:
![]() Bubble Sort |
![]() Bucket Sort |
![]() Cocktail Sort |
![]() Counting Sort |
![]() Heap Sort |
![]() Insertion Sort |
![]() Merge Sort |
![]() Quick Sort |
![]() Selection Sort |
Contributions are welcome! Please check out our Contributing Guidelines to get started.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Pygame
- Inspired by the need to make algorithm learning more visual and intuitive
If you find this project helpful, please consider giving it a ⭐️ on GitHub!








