Merge sort
Split in halves, sort each half, then merge the sorted halves.
Values38, 27, 43, 3, 9, 82, 10
Start with the array 38, 27, 43, 3, 9, 82, 10.
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub
Split in halves, sort each half, then merge the sorted halves.
Values38, 27, 43, 3, 9, 82, 10
Start with the array 38, 27, 43, 3, 9, 82, 10.
Space play · ← → step · Home End jump · drag the strip to scrub