Matrix Chain Multiplication idea and its pattern detection

  Рет қаралды 17,983

Techdose

Techdose

Күн бұрын

Пікірлер: 22
@ujeshnada7281
@ujeshnada7281 3 жыл бұрын
This is what i was looking for.... This is the best method to teach. This weekend was like pen, paper and tech dose. maza aa gaya..
@techdose4u
@techdose4u 3 жыл бұрын
Great :)
@oqant0424
@oqant0424 3 жыл бұрын
u deserve to be subscribed.....what an explanation! literally no one explains the intution behind✌
@techdose4u
@techdose4u 3 жыл бұрын
Thanks 😊
@ShaliniNegi24
@ShaliniNegi24 3 жыл бұрын
You are highly underrated!
@techdose4u
@techdose4u 3 жыл бұрын
😅 Thanks for your support.
@VikasPoonia
@VikasPoonia 3 жыл бұрын
May I know what microphone you are using for recording this video? Brand name?
@RahulSingh-vv9jj
@RahulSingh-vv9jj 3 жыл бұрын
Thanks Sir
@techdose4u
@techdose4u 3 жыл бұрын
Welcome :)
@ashwiniabhishek1504
@ashwiniabhishek1504 2 жыл бұрын
We should sum left and right ??
@FahadAli-rx7mc
@FahadAli-rx7mc 3 жыл бұрын
Shouldn't the base condition be initialized to INT_MAX
@E__ShameemahamedS-bx2ed
@E__ShameemahamedS-bx2ed 3 жыл бұрын
Thanks
@techdose4u
@techdose4u 3 жыл бұрын
Welcome :)
@ManishSharma-fi2vr
@ManishSharma-fi2vr 3 жыл бұрын
Thank You !
@techdose4u
@techdose4u 3 жыл бұрын
Welcome
@ArifulIslam-im7wr
@ArifulIslam-im7wr 3 жыл бұрын
Thanks ❤❤❤ sir,
@techdose4u
@techdose4u 3 жыл бұрын
Welcome :)
@amu281
@amu281 3 жыл бұрын
I have a silly doubt which I am not able to understand. In the code we take the INT_MAX variable inside function. While coding I kept it at class level which gave me wrong ans. Now I am not clear why is it. My thought was , first you divide the problem, then for 1st Iteration solve(left), solve(right) , take the min or max(according to the qs given) and store at class level. Continue the 2nd iteration do the same and check min or max from the 1st iteration ..and continue.Finally the stored result will be the ans. I am really struggling to find out where I am wrong. Please anyone help. I was coding recursive solution.
@himanshugupta7010
@himanshugupta7010 3 жыл бұрын
Hey you can't take max at class level . you have to make It local and compute it again and again as the recursive calls enumerate. why? so lets suppose you are lest with 1 element and you know the ans is zero as per your base case and you store this in your min but since it is the min value allowed so you min will always remain zero which is not the correct ans hence we are making it local in every call.
@rahulsrivastava1040
@rahulsrivastava1040 3 жыл бұрын
ans should be initialized with INT_MAX
@amankumargupta439
@amankumargupta439 3 жыл бұрын
u r life svr!!!!
@techdose4u
@techdose4u 3 жыл бұрын
Thanks :)
Matrix Chain Multiplication using Recursion | MCM
28:24
Techdose
Рет қаралды 18 М.
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 96 МЛН
the balloon deflated while it was flying #tiktok
00:19
Анастасия Тарасова
Рет қаралды 35 МЛН
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН
DP 48. Matrix Chain Multiplication | MCM | Partition DP Starts 🔥
53:41
Largest rectangle in Histogram | Leetcode #84
27:43
Techdose
Рет қаралды 111 М.
Identification of Knapsack problems and its Types
11:28
Techdose
Рет қаралды 26 М.
Matrix Chain Multiplication - Dynamic Programming
31:01
CSBreakdown
Рет қаралды 229 М.
4.3 Matrix Chain Multiplication - Dynamic Programming
23:00
Abdul Bari
Рет қаралды 1,7 МЛН
Edit Distance and its Variations | Dynamic programming
14:02
Techdose
Рет қаралды 10 М.
The Most Important Sequence: The Catalan Numbers
6:57
SackVideo
Рет қаралды 49 М.
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 96 МЛН