Skip to content

Average-Case Complexity of Shellsort

Tao Jiang, Ming Li, Paul Vitanyi

cs.DSarXiv:cs/9901010

Abstract

We prove a general lower bound on the average-case complexity of Shellsort: the average number of data-movements (and comparisons) made by a p-pass Shellsort for any incremental sequence is Ω(pn1 + 1/p) for all p ≤ n. Using similar arguments, we analyze the average-case complexity of several other sorting algorithms.

Create a lesson