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