Algo Visualizer
Size:30
1x
Sorting Visualizer

Merge Sort

Step 1 of 5

Merge Sort is a divide-and-conquer algorithm. It divides the array in half, recursively sorts each half, then merges both.

Divide

Split the array down the middle into two sub-arrays.

[5, 2, 8, 1, 6, 4]
[5, 2, 8][1, 6, 4]