This project is a Python application that visualizes different sorting algorithms using Pygame. It is great for students, developers, and educators who want to learn how sorting algorithms work through animation.
Support this project by leaving a ⭐
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
- Clone GitHub repository
git clone https://github.com/LucasPilla/Sorting-Algorithms-Visualizer.git
- Install requirements:
pip3 install -r requirements.txt
- Run:
python3 src/main.py
- Enter appropriate number of bars required in the text box
- Pick appropriate sorting algorithm from the dropdown for the visualizer
- Use the play/pause button to control the visuals
- Cycle Sort - O(n^2)
- Cocktail Sort - O(n^2)
- Counting Sort - O(n + k)
- Quick Sort - O( n log n)
- Merge Sort - O(n log n)
- Selection Sort - O(n^2)
- Bubble Sort - O(n^2)
- Insertion Sort - O(n^2)
- Bogo Sort - O((n-1)!)
- Heap Sort - O(n log n)
- Shell Sort - O(n log n)
- Radix Sort - O(nk)
- Bucket Sort - (n + k)
- Pancake Sort - O(n^2)
- This project is licensed under the MIT License