← back

Sorting Visualizer

algorithm animation engine
60
50
Comparisons: 0
Swaps: 0
Time: 0.00s
Status: Ready

SORTED

Algorithm

Bubble Sort

Repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted.

BestO(n)
AverageO(n²)
WorstO(n²)
SpaceO(1)
StableYes

Legend

Default
Comparing
Swapping
Sorted
Pivot / Active