Trivia ForgePlay free →

What is the lower bound for the worst-case time complexity of any comparison-based sorting algorithm?

Show answer

Ω(n log n)

This lower bound is derived from the decision tree model, which shows that a tree with n! leaves must have a height of at least log(n!). Using Stirling's approximation, this simplifies to n log n.

Also asked as:
  • What is the theoretical lower bound for the worst-case complexity of comparison-based sorting?

Would you remember this in 6 months?

Trivia Forge uses spaced repetition so facts stick. Free, no signup needed.

Turn on Algorithms practice →

More Algorithms trivia

See all 83 →