← ~/visualizations

bubble-sort

Blocky bar chart visualization of bubble sort algorithm. Compares adjacent elements and swaps when out of order.

canvasclick to interact
t=0s

practical uses

  • 01.Teaching sorting algorithm concepts
  • 02.Demonstrating O(n²) complexity visually
  • 03.Comparing to more efficient algorithms
  • 04.Visualizing algorithm state progression

technical notes

9-element array with varying heights. Adjacent comparison highlighted. Sorted portion shown in bright green. Auto-resets on completion.