TY - GEN
T1 - Tight lower bounds for Shellsort
AU - Weiss, Mark Allen
AU - Sedgewick, Robert
N1 - Publisher Copyright:
© 1988, Springer-Verlag.
PY - 1988
Y1 - 1988
N2 - Shellsort is a simple classic algorithm that runs competitively on both mid-sized and nearly sorted files. It uses an increment sequence, the choice of which can drastically affect the algorithm's running time. Due to the results of Pratt, the running time of Shellsort was long thought to be Θ(N3/2) for increment sequences that are “almost geometric”. However, recent results have lowered the upper bound substantially, although the new bounds were not known to be tight. In this paper, we show that an increment sequence given by Sedgewick is Θ(N4/3) by analyzing the time required to sort a particularly bad permutation. Extending this proof technique to various increment sequences seems to lead to lower bounds that in general match the known upper bounds and suggests that Shellsort runs in Ω(N1 + ∈/→log N) for increment sequences of practical interest, and that no increment sequence exists that would make Shellsort optimal.
AB - Shellsort is a simple classic algorithm that runs competitively on both mid-sized and nearly sorted files. It uses an increment sequence, the choice of which can drastically affect the algorithm's running time. Due to the results of Pratt, the running time of Shellsort was long thought to be Θ(N3/2) for increment sequences that are “almost geometric”. However, recent results have lowered the upper bound substantially, although the new bounds were not known to be tight. In this paper, we show that an increment sequence given by Sedgewick is Θ(N4/3) by analyzing the time required to sort a particularly bad permutation. Extending this proof technique to various increment sequences seems to lead to lower bounds that in general match the known upper bounds and suggests that Shellsort runs in Ω(N1 + ∈/→log N) for increment sequences of practical interest, and that no increment sequence exists that would make Shellsort optimal.
UR - http://www.scopus.com/inward/record.url?scp=85032175603&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85032175603&partnerID=8YFLogxK
U2 - 10.1007/3-540-19487-8_29
DO - 10.1007/3-540-19487-8_29
M3 - Conference contribution
AN - SCOPUS:85032175603
SN - 9783540194873
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 255
EP - 262
BT - SWAT 88 - 1st Scandinavian Workshop on Algorithm Theory, Proceedings
A2 - Karlsson, Rolf
A2 - Lingas, Andrzej
PB - Springer Verlag
T2 - 1st Scandinavian Workshop on Algorithm Theory, SWAT 1988
Y2 - 5 July 1988 through 8 July 1988
ER -