CISC 3220

Assignment #4, Due: Thursday, October 6.

  1. Give a recurrence equation for the binary search algorithm. Show how to solve the recurrence equation using recursion trees.


  2. Use recursion trees to solve the following recurrences:
  3. T(n) = 4T(n/2) + n
  4. T(n) = T(n/4) + T(3n/4) + n

  5. Use the Master Theorem to solve the following recurrences:

  6. T(n) = 16T(n/4) + n^2
  7. T(n) = 3T(n/2) + 3n/4
  8. T(n) = 2T(n/4) + n