Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

OSCUA/Sorting-Algorithm-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithm Visualizer

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.

Features

🎨 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

📦 Required Libraries

Install these via pip:

matplotlib
numpy
pygame

🧙 Setup Instructions

Clone or download the repository.

git clone https://github.com/OSCUA/Sorting-Algorithm-Visualizer.git

Create and activate a virtual environment (optional but recommended):

python -m venv venv
source venv/bin/activate  # or venv\Scripts\activate on Windows

Install dependencies:

pip install pygame numpy matplotilb

Run the program:

python main.py

🧠 Supported Algorithms

Includes 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!

🪄 Contributions & Rituals

Feel free to fork, expand, or PR for more features. Add new algorithms, overlays, or accessibility features.

About

A Python program that lets you visualize sorting algorithms! Oddly entertaining.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages