Shell sort
Insertion sort over long jumps first. Numbers 4 places apart are sorted first, so a small number far to the right travels left in a few big jumps, and the last pass, with neighbours, finds the row nearly in order.
- comparisons
- 0
- moves
- 0
step 1 of 1
Examples