Sorting AlgorithmsIntermediate

Shell Sort

An optimization of insertion sort that allows exchange of elements that are far apart. Uses a gap sequence that decreases to 1, enabling the algorithm to move elements closer to their final positions faster. Named after Donald Shell who invented it in 1959.

#sorting#gap-sequence#insertion-sort-variant#in-place
Shell Sort - Algorithm Vision