1a. Use the substitution method to prove that, if T(n) = T(n/3) + 5, then T(n) = O(log n). Hint: do not forget the inductive assumption.
1b. Given the recurrence T(n) = 2T(b √ nc) + n, determine the big-Θ height of its associated recursion tree.
1c. For the recurrence in part b, provide a mathematical formula for the total work that is performed at depth 4 of the associated recursion tree. Hint: the root has depth equal to zero.
Get Answers For Free
Most questions answered within 1 hours.