Skip to content
DSA Visualizerpreview

Compare two sorts

The same values, two algorithms, one clock: both advance one step per tick. The counters under each side show the comparisons and moves it has spent so far.

Merge sort finishes 40 steps ahead (68 against 108).

Step 1 of 108

Start with the array 42, 7, 88, 15, 63, 29, 94, 3, 51, 76, 20, 68.

Array of 12 values: 42, 7, 88, 15, 63, 29, 94, 3, 51, 76, 20, 68.
comparisons
0
swaps
0

Step 1 of 68

Start with the array 42, 7, 88, 15, 63, 29, 94, 3, 51, 76, 20, 68.

Array of 12 values: 42, 7, 88, 15, 63, 29, 94, 3, 51, 76, 20, 68.
comparisons
0
writes
0

1 / 108

Speed

Space play · ← → step · Home End jump