Feel free to download the SortingAlgorithmsVisualizer.exe [94 KB] file to experience the project visualization.
"Sorting Algorithms Visualiser" is an interactive tool that visually demonstrates various sorting algorithms, allowing users to see how they work in real time.
- Visualize Sorting Algorithms: View Bubble Sort, Selection Sort, Insertion Sort, Merge Sort, Quick Sort, and Heap Sort in real-time.
- Adjustable Speed: Use a slider to control the speed of the sorting process.
- Pause and Resume: Pause the sorting process and resume it later.
- Stop Sorting: Stop the sorting process at any time.
- Dynamic Array Generation: Generate arrays of various sizes with random values.
- Complexity Information: View time complexity details for each sorting algorithm.
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Heap Sort
- Java Development Kit (JDK) 8 or higher
-
Clone the repository:
git clone https://github.com/chauhan13/SORTING-ALGORITHMS-VISUALIZER.git
-
Navigate to the project directory:
cd SORTING-ALGORITHMS-VISUALIZER
-
Compile the Java files:
javac SortingAlgorithmsVisualizer.java
-
Run the application:
java SortingAlgorithmsVisualizer
- Generate Array: Enter the desired array size and click the "Generate Array" button.
- Select Algorithm: Choose a sorting algorithm from the dropdown menu.
- Start Sorting: Click "Start Sorting" to begin the visualization. 4.Adjust Speed Use the speed slider to control the animation speed.
- Pause/Resume: Click "Pause" to pause the sorting and "Resume" to continue.
- Stop: Click "Stop" to terminate the sorting process.
- View Complexity: After sorting is complete, a dialog will appear showing the time complexity of the selected algorithm.
Feel free to fork the repository and submit pull requests. For any issues or feature requests, please open an issue on the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or feedback, please contact sachin_2021bcse084@nitsri.ac.in
Sorting Algorithms Visualiser is a project aimed at making sorting algorithms more comprehensible through visual representation for educational puposes. Happy sorting!