Comparison Sorting Algorithms Complexity
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.