Everything About ___
Live briefing

Everything about Shellsort

Sorting algorithm which uses multiple comparison intervals

Shellsort, also known as Shell sort or Shell's method, is an in-place comparison sort. It can be understood as either a generalization of sorting by exchange or sorting by insertion. The method starts by sorting pairs of elements far apart from each other, then progressively reducing the gap between elements to be compared. By starting with far-apart elements, it can move some out-of-place elements into the position faster than a simple nearest-neighbor exchange. The running time of Shellsort is heavily dependent on the gap sequence it uses. For many practical variants, determining their time complexity remains an open problem. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: ShellsortA 5-minute orientation
  2. Pick up a classic book: Data structures and algorithm analysis in CThe most-reprinted book on the subject
  3. Read the landmark paper: Improved upper bounds on shellsortCited 26 times
  4. Go sideways: Insertion sortA closely related topic
  5. Go sideways: Sorting algorithmA closely related topic

📖 Definitions

Noun Alternative form of Shellsort.

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics