arXivPreprintOpen accesscs.DS
Shellsort with $O(n\log n)$ Average-Case Complexity
Cheng Du, Zongqi Wan
Key points
From the paper's conclusion- We also give a randomized polynomial-time algorithm that, with high probability, constructs a sequence attaining the average-case bound.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Near-Optimal Generalized Sorting AlgorithmarXiv · 2026
- Sorting by block-reversals: closing the gaparXiv · 2026
- Large Growth Happens: Gaussian Elimination with Partial Pivoting on Random MatricesarXiv · 2026
- Exact guarantees and faster algorithms for $k$-rollercoastersarXiv · 2026
- Heap-type permutation generation with a prescribed final arrangementarXiv · 2026
- An Erd\H{o}s-Szekeres-Type Result on Permutation PatternsarXiv · 2026