This project is a web-based sorting visualization tool that allows users to visualize various sorting algorithms. It provides an interactive interface to understand how different sorting algorithms work and compare their performance.
The "sorting-visualization" project aims to provide a visual representation of sorting algorithms to help users understand their inner workings. It is implemented as a web application using HTML, CSS, and JavaScript, making it accessible on different platforms and devices.
- Visualize various sorting algorithms in action
- Adjustable speed to control the animation
- Step-by-step mode for a detailed understanding of the sorting process
- Randomize input array with custom size and range
- Highlight key steps and comparisons during sorting
- Compare the performance of different sorting algorithms side by side
A live demo of the "sorting-visualization" project can be found here.
To run the project locally, follow these steps:
- Clone the repository:
git clone https://github.com/TutTrue/sorting-visualization.git
- Navigate to the project directory:
cd sorting-visualization
- Open the
index.html
file in your preferred web browser
Once the project is running in your web browser, you can:
- Choose a sorting algorithm from the available options.
- Adjust the speed using the Delay inputBox.
- Set the desired array size and range.
- Click the "Shuffle" button to generate a new array.
- Click the "Start" button to visualize the sorting algorithm in action.
The following sorting algorithms are currently supported:
- Selection Sort
- Bubble Sort
- Odd even Sort
- Cocktail Sort
- Insertion Sort
- Shell Sort
- Quick Sort
- Frequancy Sort
- Heap Sort
Feel free to contribute and add more sorting algorithms!
Contributions are welcome! If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b my-feature
. - Make your changes and commit them:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin my-feature
. - Submit a pull request.
This project is licensed under the MIT License. Please see the LICENSE file for more details.