CISC 3220
Assignment #4, Due: Thursday, October 6.
-
Give a recurrence equation for the binary search algorithm.
Show how to solve the recurrence equation using
recursion trees.
Use recursion trees to solve the following recurrences:
-
T(n) = 4T(n/2) + n
-
T(n) = T(n/4) + T(3n/4) + n
Use the Master Theorem to solve the following recurrences:
-
T(n) = 16T(n/4) + n^2
-
T(n) = 3T(n/2) + 3n/4
-
T(n) = 2T(n/4) + n