Question #73687

Solve the following recurrence relation (without using Master Theorem)
C(n) = C(n/2) + logn, for n > 1. C(1) = 0
1

Expert's answer

2018-02-19T07:43:24-0500

Answer on Question #73687 - Algorithms


C2=C1+log2=log2,C _ {2} = C _ {1} + \log 2 = \log 2,C4=log2+log4,C _ {4} = \log 2 + \log 4,C8=log2+log4+log8,C _ {8} = \log 2 + \log 4 + \log 8,\cdotsCn=log2(1+2++log2n),Cn=log2(1+log2n)log2n2.\begin{array}{l} \Rightarrow C _ {n} = \log 2 (1 + 2 + \dots + \log_ {2} n), \\ C _ {n} = \log 2 (1 + \log_ {2} n) \frac {\log_ {2} n}{2}. \end{array}


Answer provided by AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS