INTERMEDIATE🔥 High-Yield Exam Topic 4 min read 4 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 |
🚨 Exam Trap Alert
In , is asymptotically smaller than , not polynomially smaller! Case 1 does not apply; using extended gives .
📐 Quick Revision Formula Sheet
Standard Recurrence Form
💡 Compare f(n) against watershed leaf cost n^{\log_b a}
Extended Case 2 (k >= 0)
💡 When k = -1, T(n) = Theta(n^{\log_b a} \log \log n)
#Algorithms#Recurrences#Master Theorem
🎯 Practice PYQs on This Topic (1)
Q1.GATE CS 2023MCQMEDIUM
+2 Marks • -0.67 NegConsider the recurrence relation for and . Which of the following is the tightest asymptotic bound for ?