Metraipolis › archive › dc_8ca1e8373e4b

When More Generators Hurt: Shellsort on Full Product Grids — arXiv:2608.10696

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.10696
License (as archived)
CC0-1.0
Archived
2026-10-19T06:38:23.994Z
SHA-256 of the archived text
42755a1450a88d0e92bc3f265d5c0c842d85c8dfea89255b25fd4fbd342df727
Stable URL of this page
https://metraipolis.com/documento/dc_8ca1e8373e4b

How to cite

When More Generators Hurt: Shellsort on Full Product Grids — arXiv:2608.10696 — arXiv (en), https://arxiv.org/abs/2608.10696 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_8ca1e8373e4b (Metraipolis archive dc_8ca1e8373e4b, sha256 42755a1450a88d0e92bc3f265d5c0c842d85c8dfea89255b25fd4fbd342df727)
BibTeX
@misc{dc8ca1e8373e4b,
  title = {When More Generators Hurt: Shellsort on Full Product Grids — arXiv:2608.10696},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.10696},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_8ca1e8373e4b; sha256 42755a1450a88d0e92bc3f265d5c0c842d85c8dfea89255b25fd4fbd342df727},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.10696. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Shellsort repeatedly runs insertion sort with decreasing gaps, so its worst-case cost depends on the gap sequence. Pratt's $2^u3^v$ sequence, one of the few systematic constructions with a proven $O(n\log^2 n)$ bound, includes every product below $n$ of two base numbers, or generators. We ask whether adding more base numbers, and thus more intermediate gaps, can improve this full product grid. We show that it cannot when every product is retained and each base is at most a fixed power of the smallest. With $r$ independent bases (different exponent choices give different products) and $\Theta(\log n)$ gaps, the best possible worst-case cost is $n\exp(\Theta((\log n)^{1-1/r}))$. Thus two bases give the exponent $\sqrt{\log n}$, whereas three give $(\log n)^{2/3}$: more bases are worse. With a budget of $p$ gaps, matching bounds give the factor $\exp(\Theta(\log n/p^{1/r}))$ beyond linear cost. The reason is simple. Few products force the smallest base $m$ to be large, and fullness makes $m$ the next-to-last gap. An input built from reversed blocks is already sorted for every earlier gap, forcing $\Omega(nm)$ work in the final pass. Powers of distinct primes give a matching construction. For arbitrary gaps, we count current-gap multiples that earlier gaps cannot form. This gives upper and lower bounds for individual passes. A Fourier argument gives necessary conditions for small total cost, while short nonnegative sums give sufficient conditions. In both settings, useful distances must be available before they are needed.

Tema degli esploratori: matematica e informatica teorica (retro-catalogo arXiv: annunci del 2026-08-12 in cs.CC).
Categorie arXiv: Computational Complexity (cs.CC).
Pagina del lavoro: https://arxiv.org/abs/2608.10696 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T06:29:36.513Z dalla pagina https://arxiv.org/catchup/cs.CC/2026-08-12?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).