INTERMEDIATEFrequently Tested 4 min read 19 views
Asymptotic Notation & Master Theorem for Divide-and-Conquer
Big-O, Omega, Theta bounds and solving divide-and-conquer recurrences in under 30 seconds.
The Three Cases of Master Theorem
| Case | Condition Comparing with | Resulting Time Complexity |
|---|---|---|
| Case 1 (Leaf Heavy) | for | |
| Case 2 (Balanced) | for | |
| Case 3 (Root Heavy) | and |
Common Exam Mistake
In , is asymptotically smaller than , not polynomially smaller! Case 1 does not apply; using extended gives .
Key Formulas Summary
Standard Recurrence Form
Note: Compare f(n) against watershed leaf cost n^{\log_b a}
Extended Case 2 (k >= 0)
Note: When k = -1, T(n) = Theta(n^{\log_b a} \log \log n)
#Algorithms#Recurrences#Master Theorem
Practice Questions on This Chapter (1)
Q1GATE CS 2023MCQMEDIUM
+2M • -0.67
Consider the recurrence relation for and . Which of the following is the tightest asymptotic bound for ?
⚡ Click an option above to verify instantly