An interactive website to visualize sorting algorithms, simplifying the understanding of sorting and searching algorithms through dynamic visual representations. Built with HTML, CSS, and JavaScript.
- Visualize Sorting Algorithms: Supports visualizations for popular sorting algorithms including Bubble Sort, Selection Sort, Insertion Sort, Merge Sort, and Quick Sort.
- Generate New Array: Quickly generate a new array of bars with random values.
- Adjustable Speed: Change the speed of the sorting process to understand the algorithm better.
- Resizable Bars: Modify the size of the bars to see how algorithms perform on different input sizes.
- HTML
- CSS
- JavaScript
- Generate New Array: Click the "Generate New Array" button to create a new set of bars with random heights.
- Adjust Speed: Use the speed slider to control the speed of the sorting animation.
- Adjust Size: Use the size slider to change the number of bars.
- Sort: Click on any sorting algorithm button (Bubble Sort, Selection Sort, Insertion Sort, Merge Sort, Quick Sort) to see the algorithm in action.
To run this project locally, follow these steps:
- 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 to view the application.