The Substitution Method
Idea: Make an intelligent guess and prove by induction.
Example:
Solve:
Guess:
.
Prove:
Base case: Assume constant size inputs take constant time.
Assume:
Then:
So we see we need
.
Next:
Making Good Guesses
Up:
SOLVING RECURRENCES
Previous:
SOLVING RECURRENCES