Average-Case Shellsort: Pass-Comparison Tradeoffs and Deterministic Construction
Abstract
We study ordinary Shellsort with an input-independent decreasing gap table, charging all key comparisons. Let be its minimum uniform-permutation mean among tables of at most passes. We construct an explicitly sampleable distribution showing, for an absolute constant and all , , The construction combines prime gaps that reduce uncertainty on the original random input with a coprime suffix valid for each entrance state. A second-moment interface joins the phases without resampling their intermediate chains. A Frobenius bound pays the final insertion pass. In particular, at the limiting mean coefficient is for , compared with the classical lower bound. We also give a pointwise randomized-table bound for every fixed input. Separately, we approximate the complete mean of any legal table to additive error one deterministically in time and polynomial space. The reduction uses coupled Boolean evaluations and the comparator-circuit pseudorandom generator of Cavalar and Lu. Enumerating our support then deterministically selects a table meeting the mean upper bound, up to additive two, when . Our companion manuscript independently establishes unrestricted average order and a subexponential deterministic construction; Du and Wan independently obtain the same optimal average order. The results here refine the pass-dependent bounds and improve the deterministic preprocessing guarantee. They do not determine the optimal general exponent or give a polynomial-time deterministic construction.
Create a lesson
Metadata
- Comments
- 28 pages
Related papers
Uniform Quantum Average-Case Fine-Grained Hardness of Arithmetized k-Orthogonal Vectors
Shared title terminologycs.CCDhruv Prasad Deshpande, Abhishek Mishra
Deterministic vs. randomized query complexity
Shared title terminologycs.CCRobin Kothari
Coefficient-space computation and arithmetic tensor complexity: Deterministic algorithms, integral descent, and smoothability
Shared title terminologycs.CCKarthik Sheshadri
Shellsort on Random Interleavings of Sorted Chains Optimal Divisibility Tables and Unrestricted Bounds
Shared title terminologycs.CCPang Wei
Deterministic Verification and Computation of Real Matrix Products Have the Same Arithmetic Exponent
Shared title terminologycs.CCXiangle Chen
Deterministic Parameterized Inapproximability of the Shortest Vector and Minimum Distance Problems
Shared title terminologycs.CCShuichi Hirahara, Bingkai Lin, Yuwei Liu et al.