Comparison Sorting Lower Bound
The asymptotically optimal worst-case time for comparison-based sorting is O(n log n), and more precisely there is an Omega(n log n) lower bound. The proof uses a decision tree: sorting n distinct elements requires distinguishing among n! possible permutations, requiring at least log2(n!) comparisons, which is Omega(n log n).
Comparison sorts cannot have asymptotically better worst-case complexity than Omega(n log n).
Merge Sort and Heap Sort achieve O(n log n) worst-case time.
Quick Sort achieves O(n log n) expected time with suitable randomization.
Non-comparison algorithms can beat this bound by exploiting key structure.
0-2 years experience
2-5 years experience
5-8 years experience
8+ years experience