M3.2 & M3.3: Solving Recurrences Flashcards
1
Q
What are Recurrences?
A
A recurrence relation expresses the time complexity of a problem in terms of its subproblems.
2
Q
Substitution Method for solving Recurrences
A
Make a guess for the solution and prove it by induction.
3
Q
Recurrence Tree Method for solving Recurrences
A
Expand the recurrence to find a pattern and sum it up.
4
Q
Master Theorem
A
T(n)=aT(n/b )+f(n)
- a≥1.
- b>1.
- f(n) is asymptotically positive.