Master Theorem
Given: Let
Case 1
If
Case 2
If
Case 3
If
Simplified
If
Examples
Example 1
Solution:
, ,
Compare
for
Check regularity condition:
for
By Case 3:
Example 2
Solution:
, ,
Since
By Case 2:
Substitution Method
Example 1: Solve using Substitution:
Solution:
Guess:
Prove by induction that
if
Therefore,
Example 2: Solve using Substitution:
Solution:
Let
Let
By Master Theorem (Case 2):
Substituting back:
Therefore,