DAA Session 5B: Recursion tree method Examples | T(n) = 2T(n/2) + C | T(n)=T(n/3)+T(2n/3)+n

preview_player
Показать описание
In this video you will find good examples on Time complexity using Recursion Tree method explained in a detailed and easy way.

eg1. What is the complexity of T(n) = 2T(n/2) + C
eg2. T(n)=T(n/3) + T(2n/3) + n

Please share your valuable comments.

I'm Ranjana Yadav. I have done my graduation in Computer Science from NIT Kurukshetra and currently working as a Senior Software Engineer at a MNC.
I love to teach Computer Science topics. It really makes me happy when my content helps you guys in your exams, placements etc.

Please find below my mother's channel too..
If you like cooking then please subscribe it, you will find useful recipes here or you can subscribe just to support her..

Thanks

#Algorithms #DataStructure #TimeComplexity
Рекомендации по теме
Комментарии
Автор

Ma'am your way of teaching is really good... I follow your each video... Please keep uploading such nice content..

vaanisingh
Автор

didi...ek question hai...iska worst case m big o nikalna hai...
int &V, int k, int start, int end) {
if (start > end) return 0;
int mid = (start + end) / 2;
if (V[mid] < k) return searchNumOccurrence(V, k, mid + 1, end);
if (V[mid] > k) return searchNumOccurrence(V, k, start, mid - 1);
return searchNumOccurrence(V, k, start, mid - 1) + 1 + searchNumOccurrence(V, k, mid + 1, end);

ye function to binary ka hai...lekin last m return 2 aur recursive chal rha h...

SachinKumar-klfl
Автор

Ma'am your teaching is great 💯
I have one doubt, please help me in this question :
T(n)=8T(n/2) + n^2
Solve by recurrence tree method.

debasishborah
Автор

Nice explained and really useful examples...🙌👏

xydangergaming
Автор

This concept is crystal clear with your examples..

adventureswithharsh
Автор

Thanks a lot Sister G 😅❤ bohot confuse tha me es Topic se

itx_Mono
Автор

T(n) = 2T(n/3) + T(2n/3) + 20n mam can u plz tell how n divides further and what are the childs in 3rd level

tahaubaid
Автор

I Don't know more hindi. But your explaining is awesome. Thanks

Outpost
Автор

Really awesome way of teaching... 👏👏😃😃

ranhirsingh
Автор

In first example
n ki value k+1 kaise hui last mai koi btayega?

pralabdhs
Автор

Hey there! Can you share you linkedin profile? I would really like to follow your work

whynesspower
Автор

Roses are Red Violets are Blue If The Title is in English The Video Should Be Too. A ratos no entendí ni mierda. Igualmente me sirvió de todas maneras jajaj

tatolela