Shellsort
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 (bubble sort) or sorting by insertion (insertion sort). 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. The algorithm was first published by Donald Shell in 1959, and has nothing to do with shells.
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 (bubble sort) or sorting by insertion (insertion sort). 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. The algorithm was first published by Donald Shell in 1959, and has nothing to do with shells. Shellsort is an optimization of insertion sort that allows the exchange of items that are far apart. The idea is to arrange the list of elements so that, starting anywhere, taking every hth element produces a sorted list. Such a list is said to be h-sorted. It can also be thought of as h interleaved lists, each individually sorted. Beginning with large values of h allows elements to move long distances in the original list, reducing large amounts of disorder quickly, and leaving less work for smaller h-sort steps to do. If the list is then k-sorted for some smaller integer k, then the list remains h-sorted. A final sort with h = 1 ensures the list is fully sorted at the end, but a judiciously chosen decreasing sequence of h values leaves very little work for this final pass to do. In simplistic terms, this means if we have an array of 1024 numbers, our first gap (h) could be 512. We then run through the list comparing each element in the first half to the element in the second half. Our second gap (k) is 256, which breaks the array into four sections (starting at 0, 256, 512, 768), and we make sure the first items in each section are sorted relative to each other, then the second item in each section, and so on. In practice the gap sequence could be anything, but the last gap is always 1 to finish the sort (effectively finishing with an ordinary insertion sort). An example run of Shellsort with gaps 5, 3 and 1 is shown below. The first pass, 5-sorting, performs insertion sort on five separate subarrays (a 1 , a 6 , a 11 ), (a 2 , a 7 , a 12 ), (a 3 , a 8 ), (a 4 , a 9 ), (a 5 , a 10 ). For instance, it changes the subarray (a 1 , a 6 , a 11 ) from (62, 17, 25) to (17, 25, 62). The next pass, 3-sorting, performs insertion sort on the three subarrays (a 1 , a 4 , a 7 , a 10 ), (a 2 , a 5 , a 8 , a 11 ), (a 3 , a 6 , a 9 , a 12 ). The last pass, 1-sorting, is an ordinary insertion sort of the entire array (a 1 ,..., a 12 ). As the example illustrates, the subarrays that Shellsort operates on are initially short; later they are longer but almost ordered. In both cases insertion sort works efficiently. Unlike insertion sort, Shellsort is not a stable sort since gapped insertions transport equal elements past one another and thus lose their original order. It is an adaptive sorting algorithm in that it executes faster when the input is partially sorted. using System.Collections.Generic; // Sort an array a[0...n-1]. List gaps = [701, 301, 132, 57, 23, 10, 4, 1]; // Ciura gap sequence // Start with the largest gap and work down to a gap of 1 // similar to insertion sort but instead of 1, gap is being used in each step foreach (int gap in gaps) { // Do a gapped insertion sort for every element in gaps // Each loop leaves a[0..gap-1] in gapped order for (int i = gap; i = gap) && (a[j - gap] > temp); j -= gap) { a[j] = a[j - gap]; } // put temp (the original a[i]) in its correct location a[j] = temp; } } The Gonnet and Baeza-Yates implementation of Shellsort (GBY91) also uses gaps that start with N and performs better than many of the other sequences on average , but is also prone to a Θ(N 2 ) worst case: Let X be a gap in the sequence. The GBY91 gaps' common ratio of 2.2 permits at least two consecutive integers Y and Y+1 to equal X from floor division by 2.2. Choose Y or Y+1, whichever one is even, to repeat the process, and one obtains an infinitely long chain of even gaps > X by induction. With X = 1, one generates infinite options for N where all GBY91 gaps > 1 are even and thus are Θ(N 2 ) on the same aforementioned worst case input for Shell's original gaps. Although it has higher complexity than the O(N log N) that is optimal for comparison sorts, Pratt's version lends itself to sorting networks and has the same asymptotic gate complexity as Batcher's bitonic sorter. Gonnet and Baeza-Yates observed that Shellsort makes the fewest comparisons on average when the ratios of successive gaps are roughly equal to 2.2. This is why their sequence with ratio 2.2 and Tokuda's sequence with ratio 2.25 prove efficient. However, it is not known why this is so. Sedgewick recommends using gaps which have low greatest common divisors or are pairwise coprime. Using gaps which are odd numbers appears to help - speedups of about 25% have been seen in practice versus Shell's original code. Using gaps which are not multiples of 2, 3 or 5 appear to reduce run times further - speedups of about 35% versus Shell's original seem possible. Using gaps which are prime numbers only (ending with 1), appear to produce speedups of about 40% over the original code. With respect to the average number of comparisons, Ciura's sequence has the best known performance; gaps greater than 701 were not determined but the sequence can be further extended according to the recursive formula h_k = \lfloor 2.25 h_{k-1} \rfloor . Tokuda's sequence, defined by the simple formula h_k = \lceil h'_k \rceil , where h'_k = 2.25 h'_{k-1} + 1 , h'_1 = 1 , can be recommended for practical applications. If the maximum input size is small, as may occur if Shellsort is used on small subarrays by another recursive sorting algorithm such as quicksort or merge sort, then it is possible to tabulate an optimal sequence for each input size. For N = 128 and N = 1000, Ciura empirically found that (1, 4, 9, 24, 85) and (1, 4, 10, 23, 57, 156, 409, 995) made the fewest number of comparisons on average respectively. The following property holds: after h 2 -sorting of any h 1 -sorted array, the array remains h 1 -sorted. Every h 1 -sorted and h 2 -sorted array is also (a 1 h 1 +a 2 h 2 )-sorted, for any nonnegative integers a 1 and a 2 . The worst-case complexity of Shellsort is therefore connected with the Frobenius problem: for given integers h 1 ,..., h n with gcd = 1, the Frobenius number g(h 1 ,..., h n ) is the greatest integer that cannot be represented as a 1 h 1 + ... +a n h n with nonnegative integer a 1 ,..., a n . Using known formulae for Frobenius numbers, we can determine the worst-case complexity of Shellsort for several classes of gap sequences. Proven results are shown in the above table. Mark Allen Weiss proved that Shellsort runs in O(N log N) time when the input array is in reverse order. With respect to the average number of operations, none of the proven results concerns a practical gap sequence. For gaps that are powers of two, Espelid computed this average as 0.5349N\sqrt{N}-0.4387N-0.097\sqrt{N}+O(1) . Knuth determined the average complexity of sorting an N-element array with two gaps (h, 1) to be \frac{2N^2}{h} + \sqrt{\pi N^3 h} . It follows that a two-pass Shellsort with h = Θ(N 1/3 ) makes on average O(N 5/3 ) comparisons/inversions/running time. Yao found the average complexity of a three-pass Shellsort. His result was refined by Janson and Knuth: the average number of comparisons/inversions/running time made during a Shellsort with three gaps (ch, cg, 1), where h and g are coprime, is \frac{N^2}{4ch} + O(N) in the first pass, \frac{1}{8g}\sqrt{\frac{\pi}{ch}}(h - 1)N^{3/2} + O(hN) in the second pass and \psi(h, g)N + \frac{1}{8}\sqrt{\frac{\pi}{c}}(c - 1)N^{3/2} + O\left((c - 1)gh^{1/2}N\right) + O\left(c^2g^3h^2\right) in the third pass. ψ(h, g) in the last formula is a complicated function asymptotically equal to \sqrt{\frac{\pi h}{128}}g + O\left(g^{-1/2}h^{1/2}\right) + O\left(gh^{-1/2}\right) . In particular, when h = Θ(N 7/15 ) and g = Θ(N 1/5 ), the average time of sorting is O(N 23/15 ). Based on experiments, it is conjectured that Shellsort with Hibbard's gap sequence runs in O(N 5/4 ) average time, and that Gonnet and Baeza-Yates's sequence requires on average 0.41N ln N (ln ln N + 1/6) element moves. Approximations of the average number of operations formerly put forward for other sequences fail when sorted arrays contain millions of elements. The graph below shows the average number of element comparisons use by various gap sequences, divided by the theoretical lower bound, i.e. log 2 N!. Ciuria's sequence 1, 4, 10, 23, 57, 132, 301, 701 (labelled Ci01) has been extended according to the formula h_k = \lfloor2.25 h_{k-1}\rfloor . Applying the theory of Kolmogorov complexity, Jiang, Li, and Vitányi proved the following lower bound for the order of the average number of operations/running time in a p-pass Shellsort: Ω(pN 1+1/p ) when p ≤ log 2 N and Ω(pN) when p > log 2 N. Therefore, Shellsort has prospects of running in an average time that asymptotically grows like N logN only when using gap sequences whose number of gaps grows in proportion to the logarithm of the array size. It is, however, unknown whether Shellsort can reach this asymptotic order of average-case complexity, which is optimal for comparison sorts. The lower bound was improved by Vitányi for every number of passes p to \Omega ( N\sum_{k=1}^p h_{k-1}/h_k ) where h_0=N . This result implies for example the Jiang-Li-Vitányi lower bound for all p -pass increment sequences and improves that lower bound for particular increment sequences. In fact all bounds (lower and upper) currently known for the average case are precisely matched by this lower bound. For example, this gives the new result that the Janson-Knuth upper bound is matched by the resulting lower bound for the used increment sequence, showing that three pass Shellsort for this increment sequence uses \Theta(N^{23/15}) comparisons/inversions/running time. The formula allows us to search for increment sequences that yield lower bounds which are unknown; for example an increment sequence for four passes which has a lower bound greater than \Omega(pn^{1+1/p}) = \Omega(n^{5/4}) for the increment sequence h_1 = n^{11/16}, h_2 = n^{7/16}, h_3 = n^{3/16}, h_4 = 1 . The lower bound becomes T = \Omega(n\cdot (n^{1-11/16}+n^{11/16-7/16}+n^{7/16-3/16}+n^{3/16}) = \Omega(n^{1+5/16}) = \Omega(n^{21/16}). The worst-case complexity of any version of Shellsort is of higher order: Plaxton, Poonen, and Suel showed that it grows at least as rapidly as \Omega\left(N \left( {\log N \over \log \log N} \right)^2\right) . Robert Cypher proved a stronger lower bound: \Omega\left(N {{(\log N)^2} \over {\log\log N}}\right) when h_{s+1} > h_s for all s . Shellsort with gaps 5, 3, 1 as a Hungarian folk dance
References
- A Method of Information Sorting in Computer Memories · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "A Method of Information Sorting in Computer Memories." Papernov, A. 2026-11-21. http://www.mathnet.ru/links/83f0a81df1ec06f76d3683c6cab7d143/ppi751.pdf. Accessed 24 November 2026.
Chicago "A Method of Information Sorting in Computer Memories." Papernov, A. 2026-11-21. http://www.mathnet.ru/links/83f0a81df1ec06f76d3683c6cab7d143/ppi751.pdf.
APA Papernov, A. (2026). A Method of Information Sorting in Computer Memories. Retrieved November 24, 2026, from http://www.mathnet.ru/links/83f0a81df1ec06f76d3683c6cab7d143/ppi751.pdf
- Improved Upper Bounds on Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Improved Upper Bounds on Shellsort." Incerpi, Janet; Sedgewick, Robert (1985). 2026-11-21. https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist). Accessed 24 November 2026.
Chicago "Improved Upper Bounds on Shellsort." Incerpi, Janet; Sedgewick, Robert (1985). 2026-11-21. https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist).
APA Incerpi, Janet; Sedgewick, Robert (1985). (2026). Improved Upper Bounds on Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist)
- An Improved Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "An Improved Shellsort." Tokuda, Naoyuki (1992). 2026-11-21. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "An Improved Shellsort." Tokuda, Naoyuki (1992). 2026-11-21. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA Tokuda, Naoyuki (1992). (2026). An Improved Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
- Empirically Improved Tokuda Gap Sequence in Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Empirically Improved Tokuda Gap Sequence in Shellsort." Lee, Ying Wai (21 December 2021). 2026-11-21. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.
Chicago "Empirically Improved Tokuda Gap Sequence in Shellsort." Lee, Ying Wai (21 December 2021). 2026-11-21. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA Lee, Ying Wai (21 December 2021). (2026). Empirically Improved Tokuda Gap Sequence in Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- Optimization Perspectives on Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Optimization Perspectives on Shellsort." Skean, Oscar; Ehrenborg, Richard; Jaromczyk, Jerzy W. 2026-11-21. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.
Chicago "Optimization Perspectives on Shellsort." Skean, Oscar; Ehrenborg, Richard; Jaromczyk, Jerzy W. 2026-11-21. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA Skean, Oscar; Ehrenborg, Richard; Jaromczyk, Jerzy W. (2026). Optimization Perspectives on Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Shellsort." Sedgewick, Robert (1998). 2026-11-21. https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist). Accessed 24 November 2026.
Chicago "Shellsort." Sedgewick, Robert (1998). 2026-11-21. https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist).
APA Sedgewick, Robert (1998). (2026). Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist)
- How to choose the lengths of my sub sequences for a shell sort? · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "How to choose the lengths of my sub sequences for a shell sort?." Forshell, Olof (22 May 2018). 2026-11-21. https://stackoverflow.com/a/50470237. Accessed 24 November 2026.
Chicago "How to choose the lengths of my sub sequences for a shell sort?." Forshell, Olof (22 May 2018). 2026-11-21. https://stackoverflow.com/a/50470237.
APA Forshell, Olof (22 May 2018). (2026). How to choose the lengths of my sub sequences for a shell sort?. Retrieved November 24, 2026, from https://stackoverflow.com/a/50470237
- Shellsort & Comparisons · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Shellsort & Comparisons." 2026-11-21. https://web.archive.org/web/20191220040546/https://www.cs.wcupa.edu/rkline/ds/shell-comparison.html. Accessed 24 November 2026.
Chicago "Shellsort & Comparisons." 2026-11-21. https://web.archive.org/web/20191220040546/https://www.cs.wcupa.edu/rkline/ds/shell-comparison.html.
APA encyclopegia.org. (2026). Shellsort & Comparisons. Retrieved November 24, 2026, from https://web.archive.org/web/20191220040546/https://www.cs.wcupa.edu/rkline/ds/shell-comparison.html
- Optimal Gap Sequences in Shellsort for n ≤ 16 Elements · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Optimal Gap Sequences in Shellsort for n ≤ 16 Elements." Lee, Ying Wai (21 December 2021). 2026-11-21. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.
Chicago "Optimal Gap Sequences in Shellsort for n ≤ 16 Elements." Lee, Ying Wai (21 December 2021). 2026-11-21. https://en.wikipedia.org/wiki/ArXiv_(identifier).
APA Lee, Ying Wai (21 December 2021). (2026). Optimal Gap Sequences in Shellsort for n ≤ 16 Elements. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)
- A Phenomenon in the Theory of Sorting · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "A Phenomenon in the Theory of Sorting." Gale, David ; Karp, Richard M. 2026-11-21. https://en.wikipedia.org/wiki/David_Gale. Accessed 24 November 2026.
Chicago "A Phenomenon in the Theory of Sorting." Gale, David ; Karp, Richard M. 2026-11-21. https://en.wikipedia.org/wiki/David_Gale.
APA Gale, David ; Karp, Richard M. (2026). A Phenomenon in the Theory of Sorting. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/David_Gale
- On Shellsort and the Frobenius Problem · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "On Shellsort and the Frobenius Problem." Selmer, Ernst S. 2026-11-21. https://en.wikipedia.org/wiki/Ernst_Sejersted_Selmer. Accessed 24 November 2026.
Chicago "On Shellsort and the Frobenius Problem." Selmer, Ernst S. 2026-11-21. https://en.wikipedia.org/wiki/Ernst_Sejersted_Selmer.
APA Selmer, Ernst S. (2026). On Shellsort and the Frobenius Problem. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Ernst_Sejersted_Selmer
- A good case for Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "A good case for Shellsort." Weiss, Mark Allen (1989). 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1365923604. Accessed 24 November 2026.
Chicago "A good case for Shellsort." Weiss, Mark Allen (1989). 2026-11-21. https://en.wikipedia.org/w/index.php?oldid=1365923604.
APA Weiss, Mark Allen (1989). (2026). A good case for Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1365923604
- Analysis of a Shellsort Algorithm · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Analysis of a Shellsort Algorithm." Espelid, Terje O. 2026-11-21. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Analysis of a Shellsort Algorithm." Espelid, Terje O. 2026-11-21. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Espelid, Terje O. (2026). Analysis of a Shellsort Algorithm. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- An Analysis of ( h , k , 1)-Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "An Analysis of ( h , k , 1)-Shellsort." Yao, Andrew Chi-Chih (1980). 2026-11-21. https://en.wikipedia.org/wiki/Andrew_Yao. Accessed 24 November 2026.
Chicago "An Analysis of ( h , k , 1)-Shellsort." Yao, Andrew Chi-Chih (1980). 2026-11-21. https://en.wikipedia.org/wiki/Andrew_Yao.
APA Yao, Andrew Chi-Chih (1980). (2026). An Analysis of ( h , k , 1)-Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Andrew_Yao
- Shellsort with Three Increments · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Shellsort with Three Increments." Janson, Svante ; Knuth, Donald E. 2026-11-21. https://en.wikipedia.org/wiki/Svante_Janson. Accessed 24 November 2026.
Chicago "Shellsort with Three Increments." Janson, Svante ; Knuth, Donald E. 2026-11-21. https://en.wikipedia.org/wiki/Svante_Janson.
APA Janson, Svante ; Knuth, Donald E. (2026). Shellsort with Three Increments. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Svante_Janson
- A Lower Bound on the Average-Case Complexity of Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "A Lower Bound on the Average-Case Complexity of Shellsort." Jiang, Tao; Li, Ming ; Vitányi, Paul (September 2000). 2026-11-21. https://en.wikipedia.org/wiki/Ming_Li. Accessed 24 November 2026.
Chicago "A Lower Bound on the Average-Case Complexity of Shellsort." Jiang, Tao; Li, Ming ; Vitányi, Paul (September 2000). 2026-11-21. https://en.wikipedia.org/wiki/Ming_Li.
APA Jiang, Tao; Li, Ming ; Vitányi, Paul (September 2000). (2026). A Lower Bound on the Average-Case Complexity of Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Ming_Li
- On the average-case complexity of Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "On the average-case complexity of Shellsort." Vitányi, Paul (March 2018). 2026-11-21. https://en.wikipedia.org/wiki/Paul_Vit%C3%A1nyi. Accessed 24 November 2026.
Chicago "On the average-case complexity of Shellsort." Vitányi, Paul (March 2018). 2026-11-21. https://en.wikipedia.org/wiki/Paul_Vit%C3%A1nyi.
APA Vitányi, Paul (March 2018). (2026). On the average-case complexity of Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Paul_Vit%C3%A1nyi
- Improved lower bounds for Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Improved lower bounds for Shellsort." Plaxton, C. 2026-11-21. https://en.wikipedia.org/wiki/Bjorn_Poonen. Accessed 24 November 2026.
Chicago "Improved lower bounds for Shellsort." Plaxton, C. 2026-11-21. https://en.wikipedia.org/wiki/Bjorn_Poonen.
APA Plaxton, C. (2026). Improved lower bounds for Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Bjorn_Poonen
- Lower Bounds for Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Lower Bounds for Shellsort." Plaxton, C. 2026-11-21. https://en.wikipedia.org/wiki/Torsten_Suel. Accessed 24 November 2026.
Chicago "Lower Bounds for Shellsort." Plaxton, C. 2026-11-21. https://en.wikipedia.org/wiki/Torsten_Suel.
APA Plaxton, C. (2026). Lower Bounds for Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Torsten_Suel
- A Lower Bound on the Size of Shellsort Sorting Networks · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "A Lower Bound on the Size of Shellsort Sorting Networks." Cypher, Robert (1993). 2026-11-21. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "A Lower Bound on the Size of Shellsort Sorting Networks." Cypher, Robert (1993). 2026-11-21. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Cypher, Robert (1993). (2026). A Lower Bound on the Size of Shellsort Sorting Networks. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- libc/stdlib/stdlib.c · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "libc/stdlib/stdlib.c." Novoa, Manuel III. 2026-11-21. http://git.uclibc.org/uClibc/tree/libc/stdlib/stdlib.c#n700. Accessed 24 November 2026.
Chicago "libc/stdlib/stdlib.c." Novoa, Manuel III. 2026-11-21. http://git.uclibc.org/uClibc/tree/libc/stdlib/stdlib.c#n700.
APA Novoa, Manuel III. (2026). libc/stdlib/stdlib.c. Retrieved November 24, 2026, from http://git.uclibc.org/uClibc/tree/libc/stdlib/stdlib.c#n700
- kernel/groups.c · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "kernel/groups.c." "kernel/groups. 2026-11-21. https://github.com/torvalds/linux/blob/72932611b4b05bbd89fafa369d564ac8e449809b/kernel/groups.c#L105. Accessed 24 November 2026.
Chicago "kernel/groups.c." "kernel/groups. 2026-11-21. https://github.com/torvalds/linux/blob/72932611b4b05bbd89fafa369d564ac8e449809b/kernel/groups.c#L105.
APA "kernel/groups. (2026). kernel/groups.c. Retrieved November 24, 2026, from https://github.com/torvalds/linux/blob/72932611b4b05bbd89fafa369d564ac8e449809b/kernel/groups.c#L105
- bzip2/blocksort.c · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "bzip2/blocksort.c." Julian Seward. 2026-11-21. https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/src/util/compress/bzip2/blocksort.c#L519. Accessed 24 November 2026.
Chicago "bzip2/blocksort.c." Julian Seward. 2026-11-21. https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/src/util/compress/bzip2/blocksort.c#L519.
APA Julian Seward. (2026). bzip2/blocksort.c. Retrieved November 24, 2026, from https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/src/util/compress/bzip2/blocksort.c#L519
- Shell–Metzner · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Shell–Metzner." Some older textbooks and references call this the "Shell–Metzner" sort after Marlene Metzner Norton , but according to M. 2026-11-21. https://xlinux.nist.gov/dads/HTML/shellsort.html. Accessed 24 November 2026.
Chicago "Shell–Metzner." Some older textbooks and references call this the "Shell–Metzner" sort after Marlene Metzner Norton , but according to M. 2026-11-21. https://xlinux.nist.gov/dads/HTML/shellsort.html.
APA Some older textbooks and references call this the "Shell–Metzner" sort after Marlene Metzner Norton , but according to M. (2026). Shell–Metzner. Retrieved November 24, 2026, from https://xlinux.nist.gov/dads/HTML/shellsort.html
- A High-Speed Sorting Procedure · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "A High-Speed Sorting Procedure." Frank, R. 2026-11-21. https://doi.org/10.1145%2F366947.366957. Accessed 24 November 2026.
Chicago "A High-Speed Sorting Procedure." Frank, R. 2026-11-21. https://doi.org/10.1145%2F366947.366957.
APA Frank, R. (2026). A High-Speed Sorting Procedure. Retrieved November 24, 2026, from https://doi.org/10.1145%2F366947.366957
- An Empirical Study of Minimal Storage Sorting · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "An Empirical Study of Minimal Storage Sorting." Hibbard, Thomas N. 2026-11-21. https://doi.org/10.1145%2F366552.366557. Accessed 24 November 2026.
Chicago "An Empirical Study of Minimal Storage Sorting." Hibbard, Thomas N. 2026-11-21. https://doi.org/10.1145%2F366552.366557.
APA Hibbard, Thomas N. (2026). An Empirical Study of Minimal Storage Sorting. Retrieved November 24, 2026, from https://doi.org/10.1145%2F366552.366557
- Best Increments for the Average Case of Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Best Increments for the Average Case of Shellsort." a b c Ciura, Marcin (2001). 2026-11-21. https://web.archive.org/web/20180923235211/http://sun.aei.polsl.pl/~mciura/publikacje/shellsort.pdf. Accessed 24 November 2026.
Chicago "Best Increments for the Average Case of Shellsort." a b c Ciura, Marcin (2001). 2026-11-21. https://web.archive.org/web/20180923235211/http://sun.aei.polsl.pl/~mciura/publikacje/shellsort.pdf.
APA a b c Ciura, Marcin (2001). (2026). Best Increments for the Average Case of Shellsort. Retrieved November 24, 2026, from https://web.archive.org/web/20180923235211/http://sun.aei.polsl.pl/~mciura/publikacje/shellsort.pdf
- Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Shellsort." a b c d Gonnet, Gaston H. 2026-11-21. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "Shellsort." a b c d Gonnet, Gaston H. 2026-11-21. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA a b c d Gonnet, Gaston H. (2026). Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
- Kernighan, Brian W. ; Ritchie, Dennis M. (1996). The C Programming Language (2nd ed.). Prentice Hall. p. 62. ISBN 978-7-302-02412-5 . Wikipedia revision 1365923604, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Kernighan, Brian W. ; Ritchie, Dennis M. (1996). The C Programming Language (2nd ed.). Prentice Hall. p. 62. ISBN 978-7-302-02412-5 . Wikipedia revision 1365923604, retrieved 2026-11-22." Kernighan, Brian W. 2026-11-21. https://en.wikipedia.org/wiki/Brian_Kernighan. Accessed 24 November 2026.
Chicago "Kernighan, Brian W. ; Ritchie, Dennis M. (1996). The C Programming Language (2nd ed.). Prentice Hall. p. 62. ISBN 978-7-302-02412-5 . Wikipedia revision 1365923604, retrieved 2026-11-22." Kernighan, Brian W. 2026-11-21. https://en.wikipedia.org/wiki/Brian_Kernighan.
APA Kernighan, Brian W. (2026). Kernighan, Brian W. ; Ritchie, Dennis M. (1996). The C Programming Language (2nd ed.). Prentice Hall. p. 62. ISBN 978-7-302-02412-5 . Wikipedia revision 1365923604, retrieved 2026-11-22. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Brian_Kernighan
- Shell's method · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "Shell's method." a b c d e Knuth, Donald E. 2026-11-21. https://en.wikipedia.org/wiki/Donald_Knuth. Accessed 24 November 2026.
Chicago "Shell's method." a b c d e Knuth, Donald E. 2026-11-21. https://en.wikipedia.org/wiki/Donald_Knuth.
APA a b c d e Knuth, Donald E. (2026). Shell's method. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Donald_Knuth
- a b c Pratt, Vaughan Ronald (1979). Shellsort and Sorting Networks (Outstanding Dissertations in the Computer Sciences) (PDF) . Garland. ISBN 978-0-8240-4406-0 . Archived (PDF) from the original on 7 September 2021. Wikipedia revision 1365923604, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "a b c Pratt, Vaughan Ronald (1979). Shellsort and Sorting Networks (Outstanding Dissertations in the Computer Sciences) (PDF) . Garland. ISBN 978-0-8240-4406-0 . Archived (PDF) from the original on 7 September 2021. Wikipedia revision 1365923604, retrieved 2026-11-22." a b c Pratt, Vaughan Ronald (1979). 2026-11-21. https://en.wikipedia.org/wiki/Vaughan_Ronald_Pratt. Accessed 24 November 2026.
Chicago "a b c Pratt, Vaughan Ronald (1979). Shellsort and Sorting Networks (Outstanding Dissertations in the Computer Sciences) (PDF) . Garland. ISBN 978-0-8240-4406-0 . Archived (PDF) from the original on 7 September 2021. Wikipedia revision 1365923604, retrieved 2026-11-22." a b c Pratt, Vaughan Ronald (1979). 2026-11-21. https://en.wikipedia.org/wiki/Vaughan_Ronald_Pratt.
APA a b c Pratt, Vaughan Ronald (1979). (2026). a b c Pratt, Vaughan Ronald (1979). Shellsort and Sorting Networks (Outstanding Dissertations in the Computer Sciences) (PDF) . Garland. ISBN 978-0-8240-4406-0 . Archived (PDF) from the original on 7 September 2021. Wikipedia revision 1365923604, retrieved 2026-11-22. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Vaughan_Ronald_Pratt
- a b c Sedgewick, Robert (1998). Algorithms in C . Vol. 1 (3rd ed.). Addison-Wesley. pp. 273–281 . ISBN 978-0-201-31452-6 . Wikipedia revision 1365923604, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "a b c Sedgewick, Robert (1998). Algorithms in C . Vol. 1 (3rd ed.). Addison-Wesley. pp. 273–281 . ISBN 978-0-201-31452-6 . Wikipedia revision 1365923604, retrieved 2026-11-22." a b c Sedgewick, Robert (1998). 2026-11-21. https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist). Accessed 24 November 2026.
Chicago "a b c Sedgewick, Robert (1998). Algorithms in C . Vol. 1 (3rd ed.). Addison-Wesley. pp. 273–281 . ISBN 978-0-201-31452-6 . Wikipedia revision 1365923604, retrieved 2026-11-22." a b c Sedgewick, Robert (1998). 2026-11-21. https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist).
APA a b c Sedgewick, Robert (1998). (2026). a b c Sedgewick, Robert (1998). Algorithms in C . Vol. 1 (3rd ed.). Addison-Wesley. pp. 273–281 . ISBN 978-0-201-31452-6 . Wikipedia revision 1365923604, retrieved 2026-11-22. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist)
- A New Upper Bound for Shellsort · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "A New Upper Bound for Shellsort." Sedgewick, Robert (1986). 2026-11-21. https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist). Accessed 24 November 2026.
Chicago "A New Upper Bound for Shellsort." Sedgewick, Robert (1986). 2026-11-21. https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist).
APA Sedgewick, Robert (1986). (2026). A New Upper Bound for Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Robert_Sedgewick_(computer_scientist)
- A High-Speed Sorting Procedure · retrieved 2026-11-21 · rev 1365923604
Cite this reference
MLA "A High-Speed Sorting Procedure." a b Shell, D. 2026-11-21. https://web.archive.org/web/20170830020037/http://penguin.ewu.edu/cscd300/Topic/AdvSorting/p30-shell.pdf. Accessed 24 November 2026.
Chicago "A High-Speed Sorting Procedure." a b Shell, D. 2026-11-21. https://web.archive.org/web/20170830020037/http://penguin.ewu.edu/cscd300/Topic/AdvSorting/p30-shell.pdf.
APA a b Shell, D. (2026). A High-Speed Sorting Procedure. Retrieved November 24, 2026, from https://web.archive.org/web/20170830020037/http://penguin.ewu.edu/cscd300/Topic/AdvSorting/p30-shell.pdf
- Shellsort · retrieved 2026-10-19 · rev 1365923604
Cite this reference
MLA "Shellsort." Wikipedia. 2026-10-19. https://en.wikipedia.org/w/index.php?oldid=1365923604. Accessed 24 November 2026.
Chicago "Shellsort." Wikipedia. 2026-10-19. https://en.wikipedia.org/w/index.php?oldid=1365923604.
APA Wikipedia. (2026). Shellsort. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1365923604
Cite this article
MLA
"Shellsort." encyclopegia.org, 2026, https://encyclopegia.org/wiki/shellsort. Accessed 24 November 2026.
Chicago
"Shellsort." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/shellsort.
APA
encyclopegia.org. (2026). Shellsort. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/shellsort
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| publication date | 1959 | Wikipedia |