The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A102549 Optimal (best known) sequence of increments for shell sort algorithm. 2
1, 4, 10, 23, 57, 132, 301, 701, 1750 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Values were found empirically. Better than A033622, A036562, A036564, A036569, and A055875.
LINKS
Marcin Ciura, Best Increments for the Average Case of Shellsort, in R. Freivalds, (ed.), Fundamentals of Computation Theory: 13th International Symposium, FCT 2001, Riga, Latvia, August 2001, Lecture Notes in Computer Science, vol. 2138, Springer, pp. 106-117.
EXAMPLE
a(0) = 1 performs a single pass of Shellsort with a gap size of 1 (which is identical to the Insertion Sort algorithm).
a(1) = 4 performs a single pass of Shellsort with a gap size of 4 (exchanging elements 4 positions apart if they are out of order).
CROSSREFS
Sequence in context: A200759 A159347 A137531 * A277789 A274019 A008258
KEYWORD
hard,nonn
AUTHOR
Gunther Piez (gpiez(AT)web.de), Feb 24 2005
EXTENSIONS
a(8) = 1750 from Roman Dovgopol, May 08 2011
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 18 07:40 EDT 2024. Contains 373469 sequences. (Running on oeis4.)