Sorting Visualizer

Watch sorting algorithms in action with colorful animated bar charts.

Category: Algorithms · v1.0.0
Comparisons
0
Swaps
0
Status
Ready

About This Simulator

This simulator visualizes how different sorting algorithms work step-by-step. Watch Bubble Sort, Selection Sort, Insertion Sort, and Quick Sort rearrange bars in real time. Compare their speed and behavior on random, nearly-sorted, and reversed data. A great way to build intuition about algorithm efficiency.

How It Works

  1. Choose a sorting algorithm from the dropdown
  2. Adjust the array size and animation speed with the sliders
  3. Click Shuffle to generate a new random array
  4. Click Sort to start the visualization
  5. Watch the bars rearrange — active comparisons are highlighted
  6. Try different algorithms and array sizes to compare performance