Concept Flow - Shell Sort Algorithm
Start with array
Choose initial gap = n/2
Perform gapped insertion sort
Reduce gap: gap = gap/2
Is gap > 0?
No→Sorted array
↩Back to gapped insertion sort
Shell Sort starts with a big gap and sorts elements far apart, then reduces the gap until it becomes 1, finishing with a normal insertion sort.