Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Shell Sort

Sorting Algorithm

A comparison sort that generalizes insertion sort by first comparing and sorting elements far apart from each other, using a shrinking gap sequence, so that later passes over closer elements have less work left to do.

Facts
Time Complexity
Depends on the gap sequence: O(n squared) worst case for the worst known sequence, O(n log^2 n) for the best known worst-case sequence 1
Credited To
Donald Shell (1959) 1
Connections

In Field

Sources
1. Wikipedia: Shellsort
  • Infobox, performance
    average complexity depends on gap sequence
  • Lead section
    The algorithm was first published by Donald Shell in 1959, and has nothing to do with shells.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.