Skip to content

prabhat2027/Sorting-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithm Visualizer (Web)

An interactive web application that visually demonstrates how classic sorting algorithms work using animated bar charts. Built as a learning tool for students, this visualizer allows users to understand sorting algorithms not only through animations but also with integrated theoretical explanations.


✨ Features

  • 📂 Visualizes multiple sorting algorithms:

    • Bubble Sort
    • Selection Sort
    • Insertion Sort
    • Merge Sort
    • Quick Sort
  • ⏱ Adjustable animation speed via slider

  • ↕ Array size control to customize number of bars

  • 🔍 View real-time theory for each selected algorithm

  • 🌐 Responsive design (works on mobile/tablet)

  • 🎨 Classic, student-friendly color palette


🎓 Tech Stack

Technology Purpose
HTML5 Layout and structure
CSS3 Styling and responsiveness
JavaScript Core logic and animation
Modular JS Separated files for algorithms/data

🗂 Folder Structure

sorting-visualizer/
├── index.html                  # Main UI layout
├── style.css                   # Responsive and styled UI
├── script.js                   # Entry JS with UI controls
├── algorithms/
│   ├── bubbleSort.js
│   ├── selectionSort.js
│   ├── insertionSort.js
│   ├── mergeSort.js
│   └── quickSort.js
├── data/
│   └── theory.js               # Algorithm theory content
└── assets/                     # (Optional) Icons/images

🎮 How to Use

  1. Clone or download this repo
  2. Open index.html in any modern browser
  3. Select an algorithm from the dropdown
  4. Adjust array size and speed
  5. Click "Start Sorting" to see it in action!

🚀 Live Demo

🔗 View Live on GitHub Pages


📚 Educational Value

This project was built as a learning platform to help students grasp how sorting algorithms work internally. The visual animations paired with theory make it ideal for:

  • Beginners studying data structures
  • Interview prep and algorithm reviews
  • Academic demos or workshops

🌟 Author

Prabhat Verma Computer Science Student | CSE'26


✨ Future Enhancements

  • Add more algorithms (Heap Sort, Radix Sort)
  • Save session history
  • Add complexity chart comparison
  • Sound effects and dark mode support

🙏 Contributions

Pull requests are welcome! If you spot a bug or want to enhance functionality, feel free to open an issue or contribute directly.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors