Use mathematical induction to show that when n is an exact power of 2, the solu- tion of the recurrence 2 if n = 2, T(n) = { 2T (n/2) + n if n = 2k, for k > 1 is T(n) = n lgn.

icon
Related questions
Question

Please help me with this

Use mathematical induction to show that when n is an exact power of 2, the solu-
tion of the recurrence
2
if n = 2,
T(n) =
{
2T (n/2) + n
if n = 2k, for k > 1
is T(n) = n lgn.
Transcribed Image Text:Use mathematical induction to show that when n is an exact power of 2, the solu- tion of the recurrence 2 if n = 2, T(n) = { 2T (n/2) + n if n = 2k, for k > 1 is T(n) = n lgn.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer