1/32
Loading...
🚀Start Shell Sort
Let's sort the array. Shell sort first insertion-sorts elements that are a gap apart, then halves the gap to sort more finely. The gap shrinks 4 → 2 → 1.
🔒
Loading...
Let's sort the array. Shell sort first insertion-sorts elements that are a gap apart, then halves the gap to sort more finely. The gap shrinks 4 → 2 → 1.
Shell sort performs insertion sort on elements spaced a certain gap apart, gradually shrinking the gap and finishing with gap=1 (plain insertion sort). It was devised by Donald Shell.