Sir you actually explained it in a very convincing manner. Thank you
@turnereverett23633 жыл бұрын
a tip : you can watch series on kaldrostream. Me and my gf have been using it for watching a lot of movies recently.
@raphaelbranson58323 жыл бұрын
@Turner Everett yup, been watching on kaldrostream for since december myself :D
@tonytom3148 Жыл бұрын
Beautiful Explanation
@connorcribley7795 Жыл бұрын
I can't thank you enough, sir!
@Aryan_12383 жыл бұрын
Super trick mathematic
@kathyker34984 жыл бұрын
thank you
@sanatanbharat36472 жыл бұрын
Please make more videos like this
@crispinewachira90842 жыл бұрын
How does 2k.2 - 2k - 1 become 2k - 1?
@varshaeluru9816 Жыл бұрын
Yaaa how
@tonytom3148 Жыл бұрын
two times 2k i.e 2k.2 is 4k ....... so (4k - 2k -1) = 2k -1@@varshaeluru9816
@marwanfaisal3 жыл бұрын
can please solve this t(n)=2t(n/4)+1
@saptarshibose97183 жыл бұрын
Root n
@saptarshibose97183 жыл бұрын
Use masters theorem for divide recursion problems. It can be solved within 10 seconds
@mdlwlmdd2dwd303 жыл бұрын
Good breakdown but as a computer scientist. It is better to taking more abstract approach. T(n/2) already indicates it is log2_n Why? Base case T(1) = T(n/2) n/{2}^k, k =log 2_n , to make 1 Total work we can easily find by seeing 1+2+4+8...2^k total work by looking at non recursive function Summation 2^k = we can approximate 2^k with geometric series without going details as the constant doesnt matter. K is height. 2 ^ log2_n = n
@marwanfaisal3 жыл бұрын
can please solve this t(n)=2t(n/4)+1 using recursion tree method
@unknownunknown86992 жыл бұрын
This analysis is wrong. we are using constant "1" here : T(n)=2T(n/2)+1 So even if we have 2^k = n then answer should be T(n)=2T(n/2)+1 T(n)=4T(n/4)+2 T(n)=8T(n/8)+3 ...... T(n)=2^kT(2^k/2^k)+ n so replace 2^k = n we get T(n)=n T(1) + 2^k log to base 2 of (n) = k so T(n)=n + logn T(n) = n 😃😃😃😃
@gabriel.adeife2 жыл бұрын
You forgot to multiply the +1 in the equation. T(n/2) = 2T(n/4)+1 T(n)=2(2T(n/4)+1)+1 = 4T(n/4)+3 and so forth.