Skip to content

AdarshDev0316/Sorting-Algorithm-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Visualizer

A modern, interactive web application that visualizes how various sorting algorithms work under the hood. Built purely with HTML, CSS, and Vanilla JavaScript, this tool demonstrates 8 different sorting algorithms with smooth animations, step-by-step execution, and educational insights. It features a sleek glassmorphic UI, dynamic time/space complexity metrics, and sound effects generated via the Web Audio API.

🚀 Features

  • 8 Sorting Algorithms: Bubble, Selection, Insertion, Merge, Quick, Heap, Counting, and Radix Sort.
  • Interactive Controls: Adjust array size and animation speed on the fly.
  • Playback System: Play, Pause, Resume, and Step-by-Step manual execution.
  • Live Metrics: Real-time tracking of comparisons and array swaps/writes.
  • Educational Insights: Dynamic display of Time and Space complexity for the selected algorithm.
  • Special Visualizations: Includes a secondary array renderer to visualize the inner workings of Counting Sort.
  • Audio Feedback: Synthesized sound effects that pitch-shift based on the values being compared or swapped.
  • Modern UI: Dark/Light theme toggle, responsive design, and glassmorphism components.
  • Zero Dependencies: Built entirely from scratch without external frameworks or libraries.

🛠️ Technologies Used

  • HTML5 (Semantic structure)
  • CSS3 (CSS Variables, Flexbox, Grid, Glassmorphism, Responsive Design)
  • Vanilla JavaScript (ES6+, DOM Manipulation, Async/Await Animation Engine, Web Audio API)

💻 Getting Started

Since this is a static web application, no installation or build steps are required.

  1. Clone the repository:
    git clone https://github.com/yourusername/sorting-visualizer.git
  2. Open the project folder.
  3. Simply double-click index.html to open it in your web browser. Alternatively, you can use an extension like VS Code Live Server for the best developer experience.

✨ Algorithms Included

  • Bubble Sort: O(n²)
  • Selection Sort: O(n²)
  • Insertion Sort: O(n²)
  • Merge Sort: O(n log n)
  • Quick Sort: O(n log n) avg
  • Heap Sort: O(n log n)
  • Counting Sort: O(n + k)
  • Radix Sort: O(nk)

Link -: https://sorting-algorithm-visualizer-02.netlify.app/

About

A modern, interactive web application to visualize how 8 different sorting algorithms work under the hood. Built purely with Vanilla JS, HTML, and CSS (Zero dependencies). Features a glassmorphic UI, dynamic time/space complexity metrics, and Web Audio API sound effects.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors