# 🎯 Sorting Algorithm Visualizer
A modern web application that visualizes sorting algorithms in real-time, built with Spring Boot and JavaScript.
## ✨ Features
- Real-time visualization of sorting algorithms
- Multiple sorting algorithms supported:
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Adjustable animation speed
- Custom array input
- Interactive UI with modern design
## 🚀 Getting Started
###Prerequisites
- Java JDK 11 or higher
- Maven
- Modern web browser
### Installation
1. Clone the repository:
```bash
git clone https://github.com/heysuhas/sortingvisualizer.git- Navigate to the project directory:
cd sortingvisualizer- Run the application:
mvn spring-boot:run- Open your browser and visit
http://localhost:8090.
- Enter numbers in the input field (comma-separated).
Example:64,34,25,12,22,11,90 - Click "Set Array" to initialize.
- Select a sorting algorithm.
- Adjust speed if needed.
- Click "Start Sorting" to begin visualization.
| Algorithm | Time (Best) | Time (Average) | Time (Worst) | Space |
|---|---|---|---|---|
| Bubble Sort | O(n) | O(n²) | O(n²) | O(1) |
| Selection Sort | O(n²) | O(n²) | O(n²) | O(1) |
| Insertion Sort | O(n) | O(n²) | O(n²) | O(1) |
| Merge Sort | O(n log n) | O(n log n) | O(n log n) | O(n) |
| Quick Sort | O(n log n) | O(n log n) | O(n²) | O(log n) |