DP 48. Matrix Chain Multiplication | MCM | Partition DP Starts 🔥

  Рет қаралды 238,966

take U forward

take U forward

Күн бұрын

Пікірлер: 504
@trex4997
@trex4997 9 ай бұрын
Bhaiya u r God sent angel. God heard the upcoming SDE's cry the whole nights, and then planted the idea of making DSA playlists in your head. Bowing to your intellect, dedication and hardwork .
@PankajYadav-zg1re
@PankajYadav-zg1re 2 жыл бұрын
Finally I got the exact idea how the recursion works in MCM problem , before your vdo I have watched a lot but didn't get clear idea ......You are awesome bhaiya ❤️❤️❤️❤️
@ayushjain386
@ayushjain386 2 жыл бұрын
Can you help me i am not understand steps= a[i-1]*a[k]*a[j]+func(i,k)+func(k+1,j) Why are again call function func (i,k)+func(k+1,j) again
@sanketmudholkar2889
@sanketmudholkar2889 2 жыл бұрын
@@ayushjain386 Because we have to compute the smaller part also like if we have (ab) and (cd) so we have to solve ab and cd seperately also .
@prakharsingh9710
@prakharsingh9710 2 жыл бұрын
@@ayushjain386 bro,suppose (AB)(CD) hai to finally AB * CD krne ka cost aaya hoga but (A*B) apne aap me bhi ek ques h n isko multiply krne me bhi cost aaya hoga to usko nikalne ke liye func(i,k) use kiya hai. Similarly, (C*D) ko bhi krna hoga jo ki other left over part hai partition ke baad to usko func(k+1,j) likha....! Thoda pen chalao or video waps dekho aajayega
@aayushisaha8
@aayushisaha8 2 жыл бұрын
👏👏👏 To everyone who made it this far !! And Double 👏👏 for those who didn't 💤 during this video . Cause it's a reallly long video ( ig mini movie 😅) . And just thinking of how much effort Striver bhaiya must have gone though to make it , edditing it , correcting it 👏👏 , Frankly speaking of me I dozed off 😪 a couple of times during the entire video 🤪 . But anyways Great Work , Striver bhaiya ✌
@momozkichutney
@momozkichutney 2 жыл бұрын
arey aaram se bolo didi, ye beech beech mei daure pad rhe h kya!
@girishbhargava6367
@girishbhargava6367 2 жыл бұрын
@@momozkichutney 🤣🤣🤣🤣
@AshokKumar-ii4qr
@AshokKumar-ii4qr Жыл бұрын
@@momozkichutney wo stree h k6 v kr skti h 😂😂
@anshumann
@anshumann 8 ай бұрын
Lgta hai didi zyda moody hai bich bich itna mood swings 😂
@theexplorer9012
@theexplorer9012 4 ай бұрын
ye kya bawasir likh diya be
@anmolagarwal5950
@anmolagarwal5950 Жыл бұрын
That's the best video ever on Partition DP 👏 so much effort goes into making such content for generations, hats off man 👏👏
@gyanunlimited740
@gyanunlimited740 2 жыл бұрын
Its been 6 years since I came across this topic and finally understood it today
@trijalsharma4471
@trijalsharma4471 Жыл бұрын
you've been unemployed for quite some time 😆
@codingalley6229
@codingalley6229 3 ай бұрын
@@trijalsharma4471 solving a damn specific problem doesn't mean you are smart buddy.
@ganeshkamath89
@ganeshkamath89 2 жыл бұрын
Thanks Striver. Understood. 6 months back I had tried to learn it but I found it difficult. With your explanation I think I will remember how to do MCM and partiton DP.
@digvijaysinghchauhan5795
@digvijaysinghchauhan5795 2 жыл бұрын
I tried it multiple times earlier but now I got better understanding, indeed it will stuck in my mind now.
@rishavsaha5254
@rishavsaha5254 2 жыл бұрын
Understood. Before starting this topic, I had 0 knowledge about this topic, now after completing this video, I am taking the complete concept. Thank you so much for coming up with this amazing DP series striver.
@krrajavlog
@krrajavlog 2 жыл бұрын
❤️
@rutwikmore7462
@rutwikmore7462 Жыл бұрын
I also
@stith_pragya
@stith_pragya 9 ай бұрын
UNDERSTOOD...Thank You So Much for this wonderful video.......🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@madhuryareddy3994
@madhuryareddy3994 6 ай бұрын
Thanks for existing man, you don't know how thankful I am🙏🙏you made this explanation such that I can never forget this concept in my life.
@mohitagarwal3639
@mohitagarwal3639 2 жыл бұрын
Hey Striver again thanks to you for teaching in such a wonderful way. I paused the video at 25:30 after understanding the approach to the problem and was able to solve upto memoization by myself. Thanks man keep up the good work.
@sameersahu4569
@sameersahu4569 2 жыл бұрын
What an explanation....Partition was a concept i was not much clear with ..... Thank you for making me understand this concept
@dhikshithgoshika2700
@dhikshithgoshika2700 2 жыл бұрын
wah wah got the depth of deep recursion took me 2 days to completely write the total recursive code and understand .really striver bayya if you and your videos are not there many of us would leave hopes for preparing other companies , may god give you all the health and wealth bayya 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
@Mr.Indianwxvhehsy9191hghgx
@Mr.Indianwxvhehsy9191hghgx 10 ай бұрын
thanks gyani baba@boomsi69
@sathwikabhignan1862
@sathwikabhignan1862 4 ай бұрын
my goodness!! crystal clear explanation I am grateful for your dp series, thank you, Striver.
@sakshigupta4793
@sakshigupta4793 2 жыл бұрын
TBH for dp series Aditya Verma & you are the best. 😊
@arijitdas4560
@arijitdas4560 2 жыл бұрын
understood that is not a question this a concept .... hats off to your efforts man you are just amazing
@VinayKumar-ze2ww
@VinayKumar-ze2ww 2 жыл бұрын
Another great video, thanks striver for making me understand MCM 50 minute sound huge but it just flew by
@shashwatdhingra3580
@shashwatdhingra3580 Жыл бұрын
Best Ever Explanation for MCM. Literally!
@rohan8758
@rohan8758 Ай бұрын
Understood, I am feeling very sleepy, time is 2:11 AM but this video motivate me to watch it till i understand it completely, lot of Thanks @Striver for your DP Series!!!!
@vivekpaliwal1876
@vivekpaliwal1876 Жыл бұрын
I like your vedios...your way of teaching is good...but 1 thing you can add at start of vedios that which application uses this algorithm just to increase interest in learning the algo...
@dhirenpatil8600
@dhirenpatil8600 2 жыл бұрын
Really nice explanation srtiver. I like the way that you teach and understood the MCM.Very tricky but now understood.
@adarsh_k_agrawal
@adarsh_k_agrawal 4 ай бұрын
Understood LIS Pattern completely. Watching all the videos from the start of DP. It is really really helpful. Every concepts are clear and will surely finish the playlist. Thank you Striver, emiti amazing content pai.
@Noob_Coder1234
@Noob_Coder1234 7 ай бұрын
HATS OFF TO THE GOAT STRIVER , HE HAD PUT LOT OF EFFORTS FOR US IN THIS VIDEO SO WE CAN UNDERSTAND THIS TOUGH TOPIC , REALLY AMAZING❤❤
@sumeetkumar4984
@sumeetkumar4984 2 ай бұрын
bhaiya bahut accha samjhaya....thanks a lot
@JothiprakashThangaraj
@JothiprakashThangaraj 3 ай бұрын
Got it when going through coluple of times thanks a lot !!!
@suyashjain3223
@suyashjain3223 3 күн бұрын
Amazing Explanation!!!
@shivanssingh4897
@shivanssingh4897 2 жыл бұрын
Hi Striver, can you explain problems on pattern dp like burst baloons etc. Your explaination is very good btw.
@takeUforward
@takeUforward 2 жыл бұрын
Soon!
@shreyasingh1258
@shreyasingh1258 2 жыл бұрын
@@takeUforward jaldi le aao bhaiya, can't waitt!
@ritwik121
@ritwik121 2 жыл бұрын
@striver Great explanation ... hope you will making a video on burst ballons and how to think for that problem ...
@deepti8920
@deepti8920 8 ай бұрын
The best video on partition DP I came across! Good job!
@priyanshkumar17
@priyanshkumar17 3 ай бұрын
Excellent explanation - Partition DP Starts!!!
@nowitspk
@nowitspk 2 жыл бұрын
Understood ------------------------------ Recursion :- TC---> exponential Memoisation:- TC---> O(N*N*N) SC--->O(N*N) + O(N)
@chanchalroy3417
@chanchalroy3417 9 ай бұрын
Just understood the whole concept of partition DP at one go 🙌😌🔥
@madhavdwivedi5146
@madhavdwivedi5146 Жыл бұрын
kya mast padhaya hai.....aapko dekhke mera khud padhane ka man hogya...❣❣❣❣❣❣
@108_adityakumar6
@108_adityakumar6 2 жыл бұрын
Understood.🔥🔥Your dp series is best.
@UECAshutoshKumar
@UECAshutoshKumar 3 ай бұрын
Thank You Understood!!!
@ritikshandilya7075
@ritikshandilya7075 3 ай бұрын
Thankyou for amazing solution Striver
@suryanshsingh5304
@suryanshsingh5304 2 ай бұрын
Understood! Hats off🙏
@itishachoudhary906
@itishachoudhary906 Ай бұрын
Thank you Sir ! Understood.
@aftabalam7103
@aftabalam7103 2 жыл бұрын
Very clear and solid explanation,Thanks buddy
@cgoxo
@cgoxo Жыл бұрын
It takes a lot of effort to explain more than one example in detail. Thank you so much for this.
@sanskarkumar028
@sanskarkumar028 Жыл бұрын
very calm and easy solution . thanku u striver
@rupamhari115
@rupamhari115 2 жыл бұрын
MCM was always been a nightmare for me, and now, I finally understood. Thank you so much bhaiyaa!! 🙏🙏🙏🙏
@Parthj426
@Parthj426 3 ай бұрын
awesome lecture striver , understood
@shivisingh9975
@shivisingh9975 5 ай бұрын
Understood! very well explained
@samyakjain7422
@samyakjain7422 2 жыл бұрын
areeee bhaiyaaa omphooo!!! zammmn bhai understood....saying this video is god damn amazing is an understatement.
@prettylilnerdy6802
@prettylilnerdy6802 10 ай бұрын
Nice tricks for solving all partition dp
@cinime
@cinime 2 жыл бұрын
Understood! Thank you sooooo so SO much as always!!
@fmkhandwala39
@fmkhandwala39 Жыл бұрын
AMAZING EXPLANAITION AS USUAL!
@anirbannaskar5495
@anirbannaskar5495 Жыл бұрын
I have not seen such good explaination for this problem bhaiya, thanks for making such good conceptual problem!!
@DevashishJose
@DevashishJose 9 ай бұрын
Understood Thank you so much
@ronakslibrary8635
@ronakslibrary8635 Жыл бұрын
Understood , difficult concept explained easily🤯🤯
@rohitn6333
@rohitn6333 2 жыл бұрын
Thanks a lot for such a wonderful explanation sir :)
@parthsalat
@parthsalat 2 жыл бұрын
The Great Rohit Negi is here!
@TXS-xt6vj
@TXS-xt6vj 11 ай бұрын
No one can be better than you striver
@bakyt_yrysov
@bakyt_yrysov Жыл бұрын
Thank you soo much!! Please, keep posting such this amazing content!
@juniorboy1903
@juniorboy1903 2 жыл бұрын
It's hard but u have made it very easy to understand thanks bhaiya 😃😍
@sauravchandra10
@sauravchandra10 Жыл бұрын
Clearly understood, thanks!
@TXS-xt6vj
@TXS-xt6vj 11 ай бұрын
Absolutely world class
@manasranjanmahapatra3729
@manasranjanmahapatra3729 2 жыл бұрын
Super Clear Understood.
@rohandevaki4349
@rohandevaki4349 2 жыл бұрын
thankyou bro, very clear and easy explaination .
@sanaaroraa9315
@sanaaroraa9315 3 ай бұрын
Amazing! understood
@TXS-xt6vj
@TXS-xt6vj 11 ай бұрын
Just like messi, no one can be better than this teaching, so underrated
@manasagarwal9341
@manasagarwal9341 5 күн бұрын
Just one doubt. Cann't be the best answer could be from multiplying non continuous matrices like multiplying matrix A and D , B and C and then [AD] * [BC].
@gauravbanerjee2898
@gauravbanerjee2898 3 ай бұрын
Thank you so much striver ❤❤
@codelearner3355
@codelearner3355 Жыл бұрын
UNDERSTOOD ,THANKS!
@gentleman7060
@gentleman7060 Жыл бұрын
All of your dp problems should have one playlist. It would be helpful.
@arnoldsmith6584
@arnoldsmith6584 Жыл бұрын
It is there bro in a single playlist
@AbhishekYadav-rm4hw
@AbhishekYadav-rm4hw Жыл бұрын
shouldn't the base case be if(j==i || j==i+1) return 0; as when j = i+1 then also there is only one matrix which is possible and then also we can't multiply. Edit: I appologize, I got it now
@raghavmanish24
@raghavmanish24 Ай бұрын
MJHE BELEIVE NHH THA PHLE KI MAI YE TOPIC SMJH LUNGA EK BAAR ME .....BUT STRIVER MAKE IT EASY ......#UNDERSTOOD
@Zunan263
@Zunan263 2 жыл бұрын
Thanks a lot man plz donot stop ur series today there might be very less reach imagine after 6 months u will get shocked by reach just plz donot stop posting vedios
@ektabansal7645
@ektabansal7645 Жыл бұрын
Thanks a lot striver for this series, it is damn helpful!!
@abhisheksinghdangi5027
@abhisheksinghdangi5027 5 күн бұрын
I have seen, revised twice the entire series till now and maybe will continue with this part later coz companies dont ask this hard for frwshers here.
@UCSDebajyotiDas
@UCSDebajyotiDas Жыл бұрын
The code studio question is little bit changed now f(1,n,arr) will work instead of n-1
@cricketwala937
@cricketwala937 Жыл бұрын
this is the best lecture on MCM till the date . 🔥🔥🔥
@michael-pasquale
@michael-pasquale 2 жыл бұрын
Understood. Excellent explanation!
@prabhakaran5542
@prabhakaran5542 4 ай бұрын
Understood ❤❤❤
@CoderSlot
@CoderSlot 9 ай бұрын
Hey striver ,i just come across to check your memorization code available at article of the same problem in dsa list and found that their is an error in your code as although you are checking for availability of precomputed (i,j) in dp by this : if(dp[i][j]!=-1) but you forget to update it at the end with the value you are returning i.e. return dp[i][j]= mini;
@vishwasrajbatham5998
@vishwasrajbatham5998 2 жыл бұрын
Understood. Helped a lot !
@JohnSnow-r1e
@JohnSnow-r1e 3 ай бұрын
Give this guy 10M subscriber by the end of the 2024
@sukhpreetsingh5200
@sukhpreetsingh5200 Жыл бұрын
Awesome Just amazing lecture😃
@smartswaggy6114
@smartswaggy6114 Жыл бұрын
grt video man! hats off to your efforts. Btw i guess the time complexity will not be n cube, it will be exponential.(n power n power n i guess). because in rec tree we are branching according to the size of the partition.
@culeforever5408
@culeforever5408 5 ай бұрын
Love you man
@Zunan263
@Zunan263 2 жыл бұрын
Plz plz plz dp on graphs asap love ur work 🙏❤️
@vidhigupta3769
@vidhigupta3769 Жыл бұрын
understood. Thanks Striver!!
@TON-108
@TON-108 5 күн бұрын
Understood!
@anukulgaurav3043
@anukulgaurav3043 2 жыл бұрын
Best video I have ever seen on dp🔥
@animeshkumar2683
@animeshkumar2683 Ай бұрын
Understood
@blurrybrush1010
@blurrybrush1010 2 жыл бұрын
finally,thank u striver for this series
@ayonsinha2075
@ayonsinha2075 2 жыл бұрын
bhai can you please tell me why i*j =n*n.....j==n that got it but why i is n
@rishabhagarwal8049
@rishabhagarwal8049 2 жыл бұрын
Understood Sir, Thank you very much
@bhavanisankarlenka
@bhavanisankarlenka 4 ай бұрын
understood
@prantikofficial
@prantikofficial 2 жыл бұрын
Understood completely!
@sainenirohitrao5083
@sainenirohitrao5083 Жыл бұрын
man justt love youuu...completely understoood!!!
@shubhadarajmane7323
@shubhadarajmane7323 2 жыл бұрын
Thanks ,you helped me a lot.
@bishalpandit4464
@bishalpandit4464 2 жыл бұрын
Great video! With great explanation
@rakeshkumaryadav1117
@rakeshkumaryadav1117 2 ай бұрын
How did you decide in tabulation i from n-1 to 0 and J= i+1 to n-1 Why j is not from n-1 to i or i from 1 to n-1
@akashsri3
@akashsri3 Жыл бұрын
The thing about him that his so authentic is that he actually solves the problem at point of time he does not not memorize the solution and show
@TXS-xt6vj
@TXS-xt6vj 11 ай бұрын
Legend , legend, legend
@ashishchourasia2830
@ashishchourasia2830 Жыл бұрын
Hands down the best explanation.
@parthsalat
@parthsalat 2 жыл бұрын
I'm blind...how am I supposed to watch this insightful lecture 🥺
@chandrachurmukherjeejucse5816
@chandrachurmukherjeejucse5816 Жыл бұрын
Solved the question after watching just 15:43 all thanks to striver ❤
@shalomalexander7811
@shalomalexander7811 2 жыл бұрын
Which application are you using to write on?
@anonymousvoid6356
@anonymousvoid6356 2 жыл бұрын
Dont stop making videos man !!!!!!!
@ratinderpalsingh5909
@ratinderpalsingh5909 Жыл бұрын
Understood, sir. Thank you very much.
DP 49. Matrix Chain Multiplication | Bottom-Up | Tabulation
9:08
take U forward
Рет қаралды 96 М.
DP 52. Evaluate Boolean Expression to True | Partition DP
34:55
take U forward
Рет қаралды 94 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 262 #shorts
00:20
Cool Parenting Gadget Against Mosquitos! 🦟👶 #gen
00:21
TheSoul Music Family
Рет қаралды 31 МЛН
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 70 МЛН
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 123 М.
how to study less and get higher grades
11:16
Gohar Khan
Рет қаралды 711 М.
Viral Video of a Man's Crazy Job Interview
16:02
Darryl Vega TV
Рет қаралды 1,4 МЛН
Young People Try Windows XP
14:19
Linus Tech Tips
Рет қаралды 1,5 МЛН
DP 43. Longest Increasing Subsequence | Binary Search | Intuition
16:27
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 473 М.
4.3 Matrix Chain Multiplication - Dynamic Programming
23:00
Abdul Bari
Рет қаралды 1,7 МЛН
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 177 М.