This project visualizes various sorting algorithms using a graphical interface and audio feedback. Users can interactively see sorting steps for educational purposes.
- minifb crate - Window/context for rendering frames
- rodio crate - Audio playback for visualization feedback
- Pure Rust - All sorting algorithms written natively without external dependencies
- Rust toolchain (>=1.36.0)
- Cargo package manager
- Ensure audio device works (for sound visualization)
-
Clone the repository
git clone https://github.com/lowpolycat1/sorting-algorithm-rs.git cd sorting-algorithm-rs
-
Install dependencies (should be handled by Cargo)
cargo build
-
Run the program
cargo run
The visualizer allows selecting from:
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
Sound Effects: Enable/disable audio feedback during sorting animations.
Bar Selection: Configure number of bars (50-400 pixels) to fit your screen resolution.