This is an interactive web-based sorting algorithm visualizer that demonstrates how various sorting algorithms work in real-time. It provides options to adjust the array size and sorting speed while offering an intuitive and responsive UI.
- Selection Sort
- Bubble Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Heap Sort
- Adjustable array size
- Adjustable sorting speed
- Audio feedback during sorting
- HTML for structure
- CSS for styling
- JavaScript for functionality and sorting algorithms
- Download or clone this repository.
- Open
index.html
in a web browser. - Adjust settings such as array size and speed.
- Click on any sorting algorithm button to visualize it.
index.html
- The main interface of the visualizer.index.css
- Styles for the user interface.script.js
- Contains logic for setting up the array and implementing sorting algorithms.beep.js
- Generates audio feedback during sorting.
- The array bars are generated randomly at the start.
- Selecting a sorting algorithm animates the process.
- Each algorithm has a distinct color scheme to indicate comparisons and swaps.
- Users can adjust sorting speed for better visualization.
This project is open-source and free to use.