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

icon
Related questions
Question

I need help with this

Use mathematical induction to show that when n is an exact power of 2, the solu-
tion of the recurrence
T(n) =
2
if n = 2,
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 T(n) = 2 if n = 2, 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