Skip to content

Shell sort

ordering

Level 2 of 3

Also called Diminishing increment 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

Whole numbers from 1 to 99, between 2 and 12 of them, separated by commas or spaces.