Skip to content

sunilroat-code/Sorting-Algorithm-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 Sortify - A Sorting Visualizer

This project is a web-based tool to visualize the working of different sorting algorithms. It helps users understand how various sorting algorithms work step-by-step using interactive animations.


🚀 Features

  • Visual representation of sorting algorithms

  • Adjustable array size and sorting speed

  • Supports the following algorithms:

    • Bubble Sort
    • Selection Sort
    • Insertion Sort
    • Merge Sort
    • Quick Sort
  • Displays time and space complexity for each algorithm

  • Code snippet display for each algorithm


🧠 Technologies Used

  • HTML
  • CSS
  • JavaScript

🛠️ How to Run the Project

  1. Clone the repository:

    git clone https://github.com/your-username/sorting-visualizer.git
  2. Navigate to the project directory:

    cd Sorting-Algorithm-Visualizer
  3. Open index.html in your web browser.


🖥️ Project Structure

/sorting-visualizer
│
├── index.html       # Main HTML page
├── style.css        # Styling for the page
├── script.js        # JavaScript logic for sorting and visualizations

📈 Time and Space Complexities

Example: Bubble Sort

  • Worst-case Time: O(N²)
  • Average-case Time: Θ(N²)
  • Best-case Time: Ω(N)
  • Space Complexity: O(1)

(Similar info is displayed for each sorting algorithm in the interface.)


📸 Screenshot

My App Screenshot

📌 Future Enhancements

  • Add more sorting algorithms (e.g., Radix Sort, Shell Sort)
  • Improve UI/UX with modern design
  • Add mobile responsiveness
  • Add sound effects for each comparison/swap

🙌 Acknowledgements

This project was inspired by educational visual tools and aims to help students and developers better understand how sorting algorithms function.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors