Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 776 Bytes

File metadata and controls

31 lines (22 loc) · 776 Bytes

Sorting Visualizer

A simple web-based application to visualize sorting algorithms in real-time.

Features

  • Visualize Bubble Sort, Selection Sort, Insertion Sort, Merge Sort, and Quick Sort
  • Adjustable array size
  • Adjustable animation speed
  • Color-coded bars:
    • Red: currently comparing
    • Green: sorted
    • Steelblue: unsorted

How to Use

  1. Open index.html in a web browser
  2. Select a sorting algorithm from the dropdown
  3. Adjust array size and speed if desired
  4. Click "Generate New Array" to create a random array
  5. Click "Start Sorting" to see the visualization

Files

  • index.html - main HTML file
  • style.css - styling for the bars and layout
  • script.js - JavaScript logic for generating the array and sorting

License

MIT License