betaFeedback

WorksComputer Science

Shellsort with O(nlog⁡n)O(n\log n) Average-Case Complexity

Abstract

We show that Shellsort admits a fixed sequence of O(log⁡n)O(\log n) gaps that sorts a uniform random permutation in O(nlog⁡n)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.

Paper details

vlnc:W_e94kaxer
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
arXiv nonexclusive license
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

LLM

View statement
Looking for related papers…