Question: 1. Using the tree method, estimate upper bound for the running time of the following recurrences: (a) T(n) = 3T(n/4) + cn (b) T(n) =
1. Using the tree method, estimate upper bound for the running time of the following recurrences:
(a) T(n) = 3T(n/4) + cn
(b) T(n) = 2T(n-5) + 1
(c) T(n) = 4T(n/2) + cn2
2. Using the Master theorem, solve each of the following recurrences:
(a) T(n) = 4T(n/3) + n2
(b) T(n) = 3T(n/2) + 2n
(c) T(n) = 2T(n/3) + 1
(d) T(n) = 2T(n/4) + 15n
(e) T(n) = 3T(2n/3) + n2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
