a)Solve the following recurrence relation using recursion tree method:
T(n) = 2T(n/2) + n
T(1) = O(1)
Solve the following recurrence relation using recursion tree method: T(n) = 2T(n/2) + n T(1) = O(1)
b)Show the following recurrence relation using Master's theorem:
T(n) = 2T(n/2) + n log n
Show the following recurrence relation using Master's theorem: T(n) = 2T(n/2) + n log n