A Python GUI that animates the inner workings of sorting algorithms with sound and color. Designed for learners, educators, and people who are entertained by flashing lines on a screen.
🎨 Visualize 20+ sorting algorithms with dynamic bar animations
🔊 Hear each comparison and swap with adaptive tones
🌈 Random colors for timeless entertainment
🧠 View algorithm metadata: time complexity, space usage, stability, and Big O
🧪 Supports autoplay, random data generation, and algorithm switching
Install these via pip:
matplotlib
numpy
pygame
Clone or download the repository.
git clone https://github.com/OSCUA/Sorting-Algorithm-Visualizer.gitCreate and activate a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on WindowsInstall dependencies:
pip install pygame numpy matplotilbRun the program:
python main.pyIncludes classics like Bubble, Merge, Quick, Heap, and Insertion — plus oddities like Stalin Sort, Gravity Sort, and Bitonic Sort. Each algorithm is visualized with color-coded bars and sound. More algorithms coming eventually!
Feel free to fork, expand, or PR for more features. Add new algorithms, overlays, or accessibility features.