Sorting Visualizer is a web application that provides visual representations of various sorting algorithms. This tool helps users understand how different sorting algorithms work by displaying the steps involved in sorting an array of numbers.
- Visualize various sorting algorithms:
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Adjustable array size and speed of visualization
- User-friendly interface
- HTML
- CSS
- JavaScript
To run this project locally, you need a web browser and a text editor (optional).
-
Clone the repository:
git clone https://github.com/yourusername/sorting-visualizer.git
-
Navigate to the project directory:
cd sorting-visualizer
-
Open
index.html
in your web browser:open index.html
- Open the application in your web browser.
- Select the sorting algorithm you want to visualize from the dropdown menu.
- Adjust the array size and speed of the visualization using the provided sliders.
- Click the "Generate New Array" button to create a new array of random numbers.
- Click the "Start Sorting" button to begin the visualization.