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 2
Credited To
Donald Shell (1959) 2
Time Complexity
Time Complexity (category)
Polynomial Time -- O(n^k) 1
Connections

Credited To

Donald Shell, Pioneers
Source Wikipedia: Shellsort

In Field

Invented By

Donald Shell, Pioneers
Source Wikipedia: Shellsort
Sources
1. Shell Sort (Wikipedia)
Wikipedia infobox: time complexity polynomial
Quote, Wikipedia infobox: time complexity polynomial
polynomial
View the Source
2. Wikipedia: Shellsort
  • Infobox: average-time
    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
Wikidata: Shell Sort
Wikidata Q848955, class allow-list match (w-wdresolver-0926)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.