Can someone tell me what am i doing wrong here ? My base case i.e. T(4)=12
T(n)=2T(n/2)+8n , T(4)=12
=2^(2)*T(n/2^2)+2*8n
=2^(i)*T(n/2^i)+i*8n
so let, n/2^(i) = 4 so, i=lgn-2
=2^(lgn-2)12 + (lgn-2) 8n
Can someone tell me what am i doing wrong here ? My base case i.e. T(4)=12
T(n)=2T(n/2)+8n , T(4)=12
=2^(2)*T(n/2^2)+2*8n
=2^(i)*T(n/2^i)+i*8n
so let, n/2^(i) = 4 so, i=lgn-2
=2^(lgn-2)12 + (lgn-2) 8n
T(n) = n[8*ln(n)/ln(2) - 13]. (Upvote for correct SE site :) ) If it doesn't evaluate correctly for the initial conditions provided, it's not the correct solution. – Cloud Feb 25 '16 at 02:10