COP 4531: Lecture 5
Learning objectives
After this class, you should be able to:
- Given a recurrence, solve it using the recursion-tree method, and prove the correctness of your solution using induction, if necessary.
Reading assignment
- CLR: Section 4.2.
- CLR: Chapter 4, page 77.
Exercises and review questions
- Questions on current lecture's material
- Exercise 4.2-1.
- Exercise 4.2-2.
- Exercise 4.2-3.
- Questions on next lecture's material
- Draw the first three levels of the recurrence tree for each of the following recurrences: (i)
T(n) = 3 T(n/b) + f(n)
, and (ii)T(n) = 4 T(n/b) + f(n)
.