Spectral Contraction for Shellsort with Restricted Gaps

For every eventually periodic set of permitted nonfinal gaps, we determine the order of the minimum mean number of Shellsort comparisons. We also determine its leading coefficient in several cases. The gap table is fixed before the input is drawn uniformly and ends in gap $1$. For a nonempty tail of period $q$, let $d$ be the gcd of $q$ and its allowed residues. The optimal mean is $Θ(n\log n)$ for $d=1$ and $Θ(n^{3/2})$ for $d>1$. For $d=2$ the largest allowed odd gap $h$, including $1$, gives the exact coefficient $\sqrt{π/128}/h$. For a finite catalogue, let $B$ be the largest gap, counting the compulsory gap $1$. The minimum mean is $n^2/(4B)+O_B(n^{3/2})$. A spectral estimate for a word of chain sorts yields schedules on the residue classes. An inversion transfer lemma gives the cost of each divisor change. A matching lower bound gives the exact coefficient for nested divisor exceptions. Sharpness of the upper bound for general mixed exceptions remains open. When $d=1$, prefixes of one random schedule give approximate rankings at every prescribed accuracy. The unrestricted mean order also follows from concurrent work of Du and Wan. Lean verifies this order and the pointwise parity lower bound.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-12-02
Primary Topic
Algorithms and Data Compression
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Spectral Contraction for Shellsort with Restricted Gaps

Miaozhen Yu
arXiv
Algorithms and Data Compression
preprint

Spectral Contraction for Shellsort with Restricted Gaps

Miaozhen Yu
preprint en

Abstract

For every eventually periodic set of permitted nonfinal gaps, we determine the order of the minimum mean number of Shellsort comparisons. We also determine its leading coefficient in several cases. The gap table is fixed before the input is drawn uniformly and ends in gap $1$. For a nonempty tail of period $q$, let $d$ be the gcd of $q$ and its allowed residues. The optimal mean is $Θ(n\log n)$ for $d=1$ and $Θ(n^{3/2})$ for $d>1$. For $d=2$ the largest allowed odd gap $h$, including $1$, gives the exact coefficient $\sqrt{π/128}/h$. For a finite catalogue, let $B$ be the largest gap, counting the compulsory gap $1$. The minimum mean is $n^2/(4B)+O_B(n^{3/2})$. A spectral estimate for a word of chain sorts yields schedules on the residue classes. An inversion transfer lemma gives the cost of each divisor change. A matching lower bound gives the exact coefficient for nested divisor exceptions. Sharpness of the upper bound for general mixed exceptions remains open. When $d=1$, prefixes of one random schedule give approximate rankings at every prescribed accuracy. The unrestricted mean order also follows from concurrent work of Du and Wan. Lean verifies this order and the pointwise parity lower bound.

arXiv
East China University of Science and Technology (CN)
Algorithms and Data Compression
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon