Recurrence Relation T(n)= 3T(n/4) +n^2 | Recursive Tree Method | GATECSE | DAA

  Рет қаралды 64,190

THE GATEHUB

THE GATEHUB

Күн бұрын

Пікірлер: 35
@sinx7472
@sinx7472 11 ай бұрын
Trying this problem for 1 week. Searched on google,youtube,chatgpt and more places. But I was'nt able to solve the problem. Because no one....NO ONE mentioned the thing you mentioned at 10:38. Thanks to you now I am able to solve this and similar kind of problem. And sir, all the credits goes to you. Tomorrow I have an exam on this topic out of 10 marks. I will make sure to inform you here what score I got because of your help :) Once again Thank you so much sir ❤
@ankitraj32112
@ankitraj32112 6 ай бұрын
how much u got in exam just curious
@bestinbabu4244
@bestinbabu4244 4 ай бұрын
@@ankitraj32112 failed
@nitishkushwaha3821
@nitishkushwaha3821 Жыл бұрын
Adding size of all subproblems we should get the size of original problem, but here adding size of all subproblems we get 3n/4 which is not equal to n.. please clarify!!
@ebukaosunwoke9801
@ebukaosunwoke9801 Жыл бұрын
This is because the sum of all sub problems from The initial case 3(n/4) . We are solving only 3 quarters not all 4 quarters
@omkarsalunke8172
@omkarsalunke8172 5 ай бұрын
Amazing sir thank you so much!
@sachinupreti7159
@sachinupreti7159 Жыл бұрын
last one minute is really killer 🔥 🔥
@codewithharis
@codewithharis 2 жыл бұрын
Bro kamal ko videos hain ap ki
@G.T828
@G.T828 Жыл бұрын
Sir, you are making a mistake in your recursive tree videos, the mistake is that only count the total sum of cn^2 multiples(f(n)) multiples) at each level, but at the leaf nodes, you also need to count the cost of leaf nodes, i,.e T(n/b^k) * a^^(log b n), where b is base. Answers have been correct only because the leaf node sum usually doesn't dominate, please look into this.
@Revenjo
@Revenjo Жыл бұрын
Good explanation 🎉
@CodingMan-f1v
@CodingMan-f1v 2 жыл бұрын
Pls. Make the videos on dynamic programming questions series with code
@jpvikash2402
@jpvikash2402 Жыл бұрын
I think there is something wrong to selection of root value....
@mohakpurwar7588
@mohakpurwar7588 Жыл бұрын
n square will be the root value
@anmolchauhan3822
@anmolchauhan3822 Жыл бұрын
Very good lecture sir 😌
@aparnakumari5570
@aparnakumari5570 Жыл бұрын
Good explanation 🔥
@Shantanu_lrnr
@Shantanu_lrnr Жыл бұрын
Best and easy way
@mayankpatel2288-l5i
@mayankpatel2288-l5i 14 күн бұрын
sir phir k ku nikala jab zarurat nahi thi?
@mrreyance1587
@mrreyance1587 Жыл бұрын
Amazing
@dhruvagarwal1472
@dhruvagarwal1472 5 ай бұрын
💯💯
@Mitra2003-oct
@Mitra2003-oct Жыл бұрын
Can you please tell what is the time complexity of 4t(n/2)+n I'm just little confused in substitution method 😢
@manoranjansahu646
@manoranjansahu646 8 ай бұрын
O(n^2)
@codewithharis
@codewithharis 2 жыл бұрын
Bro can you give me solution of these questions using tree method a. T(n) = 4T(n/2+2) + n c. T(n) = T(n-1) + T(n/2) + n
@keshavgaur4535
@keshavgaur4535 Жыл бұрын
thanks
@InzaJoiya
@InzaJoiya Жыл бұрын
Good❤️
@MaryamMasood-o4o
@MaryamMasood-o4o 5 ай бұрын
16 ka square is not 64 plz correct the question
@Brijesh007
@Brijesh007 Ай бұрын
It's multiple of 4 not squaring
@sharmavasundhara
@sharmavasundhara Жыл бұрын
So when you say - we're going to combine n/16 , n/16 , n/16 - at level 2 - what does that mean? I have recently started learning algorithms and I'm a bit confused about how to exactly draw these recursive trees. I saw a bunch of your examples and I'm not able to understand how we exactly combine the subproblems to get their individual complexities. Would be great if you can help! Thank you ✨
@Hansly_rz
@Hansly_rz 2 жыл бұрын
I don't know anything he said but I somehow understood it
@NidhiGupta-th2de
@NidhiGupta-th2de 11 ай бұрын
In denominator there is ,4^2,4^2,4^3...
@MayankCodes
@MayankCodes 7 ай бұрын
no, it is 4^0, 4^2, 4^4..
@sakshidilersingh2979
@sakshidilersingh2979 2 жыл бұрын
Wah ji wah sir ji
@ayushkumar1527
@ayushkumar1527 Жыл бұрын
i think there is something wrong
@Anushka20037
@Anushka20037 Ай бұрын
aap thoda clearly bola kro bohot dheere bolte hai aap smjhne ke liye ki kya bola 1x pe dhyan se sun na padta hai ruak rauk ke
@lrcnature6292
@lrcnature6292 Жыл бұрын
n/4 are three part devided into n/12,n/12,n/12😂🤣😂😂🤣
@NaseemSabirPoetry
@NaseemSabirPoetry Жыл бұрын
Es mein daant nikaalny wali kia baat
Recursion Tree Method
32:41
Dr. Hasan Jamal
Рет қаралды 172 М.
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 33 МЛН
Solved Recurrence Tree Method
6:30
John Bowers
Рет қаралды 459 М.
Viral Video of a Man's Crazy Job Interview
16:02
Darryl Vega TV
Рет қаралды 1,4 МЛН
2.1.1 Recurrence Relation (T(n)= T(n-1) + 1) #1
13:48
Abdul Bari
Рет қаралды 1,7 МЛН
2.1.2 Recurrence Relation (T(n)= T(n-1) + n) #2
16:00
Abdul Bari
Рет қаралды 1 МЛН