Concept Flow - Shell Sort Algorithm
Start with array and initial gap
For each gap: gap = gap / 2
For each element from gap to end
Compare element with elements gap apart
Shift elements if needed
Insert element at correct position
Repeat until gap = 0
Sorted array
Shell Sort starts with a large gap and reduces it, sorting elements far apart, then closer, until fully sorted.
