This Sorting Visualizer is built using React and provides a user-friendly interface to visualize various sorting algorithms in action. It supports the following sorting algorithms:
- Bubble Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Selection Sort
- Delay Control: Adjust the delay to control the speed of the sorting visualization.
- Generate Arrays: Quickly generate new arrays of varying sizes to test the sorting algorithms.
- Clone the repository to your local machine.
- Navigate to the project directory in your terminal.
- Run
npm install
to install the necessary dependencies. - Start the development server by running
npm start
. - Open your web browser and go to
http://localhost:3000
to access the Sorting Visualizer.
Bubble Sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.
Insertion Sort is a simple sorting algorithm that builds the final sorted array one element at a time. It iterates through each element in the array and inserts it into its correct position in the sorted portion of the array.
Merge Sort is a divide and conquer algorithm that divides the array into smaller subarrays, recursively sorts them, and then merges them back together in the correct order.
Quick Sort is a divide and conquer algorithm that selects a pivot element and partitions the array into two subarrays such that elements less than the pivot are on the left, and elements greater than the pivot are on the right. It then recursively sorts the subarrays.
Selection Sort is a simple sorting algorithm that repeatedly selects the minimum element from the unsorted portion of the array and places it at the beginning of the array.
This project is licensed under the MIT License.