(a) (10 pts) Use mathematical induction to show that when n is an exact power of 2, the solution of the recurrence T(n) = ( 2, n = 2 2T( n 2 ) + n, n = 2k , k > 1 is T(n) = n log n. (b) (10 pts) Give a closed form for the following recurrence using asymptotic notation. In particular, you need to give a function f such that T(n) = Θ(f(n)) and justify your answer. T(n) = 3T( n √ 2 ) + n 4
2. [O1] (20 pts)
a) (10 pts) Use mathematical induction to show that when n is an exact power of 2.the solution of the recurrence
n=2
T(n)
2T()+n,n=2k,k>1 is T(n) = n log n.
(b) (10 pts) Give a closed form for the following recurrence using asymptotic nota tion. In particular, you need to give a function f such that T(n) = O(f(n)) and justify your answer.
T(n=3T
+n