arXiv · 2611.27671
Shellsort with $O(n\log n)$ Average-Case Complexity
Abstract
We show that Shellsort admits a fixed sequence of $O(\log n)$ gaps that sorts a uniform random permutation in $O(n\log n)$ expected comparisons. In fact, we give a distribution on decreasing gap sequences with this expected bound for every fixed input. We also give a randomized polynomial-time algorithm that, with high probability, constructs a sequence attaining the average-case bound.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Cheng Du, Zongqi Wan. 2026-11-20. Shellsort with $O(n\log n)$ Average-Case Complexity. https://arxiv.science/abs/2611.27671
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.