edited by
373 views

1 Answer

0 votes
0 votes
Substitute n as some function of 2^k. So, k = log n. Now equation will in form of 2^k. Now reduce the equation into S(k) = 2S(k/2) + k and solve using master's theorem. And replace 'k' by log n.

Related questions

1 votes
1 votes
2 answers
1
vijaycs asked Jul 11, 2016
1,892 views
On which of the following recurrence relation Masters theorem can not be applied ?A. T(n)= 2T(n/2) + n (log n).B. T(n) = T(n/2) + 1.C. T(n) = 8T(n/2) + (log n).D. T(n) = ...
0 votes
0 votes
1 answer
2
0 votes
0 votes
2 answers
3
0 votes
0 votes
0 answers
4