Comparison Sorting Algorithms Complexity

From NovaOrdis Knowledge Base
Revision as of 01:05, 28 September 2021 by Ovidiu (talk | contribs) (→‎Theorem)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

External

Overview

TODO: comparison sorting cannot perform better than n lg n. The worst-case running time of a comparison algorithm is Ω(n log n).

CLRS page 193.

Theorem

Every comparison-based sorting algorithm has worst-case running time Ω(n log n). We assume deterministic but lower bound extends to randomized.