Skip to content

About

Sorting Visualizer

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

# 🎯 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
  1. Navigate to the project directory:
cd sortingvisualizer
  1. Run the application:
mvn spring-boot:run
  1. Open your browser and visit http://localhost:8090.

💻 How to Use

  1. Enter numbers in the input field (comma-separated).
    Example: 64,34,25,12,22,11,90
  2. Click "Set Array" to initialize.
  3. Select a sorting algorithm.
  4. Adjust speed if needed.
  5. Click "Start Sorting" to begin visualization.

📊 Algorithm Complexities

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)

About

Sorting Visualizer

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages