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

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 พ.ย. 2024

ความคิดเห็น • 504

  • @trex4997
    @trex4997 9 หลายเดือนก่อน +66

    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 .

  • @anmolagarwal5950
    @anmolagarwal5950 ปีที่แล้ว +16

    That's the best video ever on Partition DP 👏 so much effort goes into making such content for generations, hats off man 👏👏

  • @aayushisaha8
    @aayushisaha8 2 ปีที่แล้ว +147

    👏👏👏 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 ปีที่แล้ว +64

      arey aaram se bolo didi, ye beech beech mei daure pad rhe h kya!

    • @girishbhargava6367
      @girishbhargava6367 2 ปีที่แล้ว +1

      @@momozkichutney 🤣🤣🤣🤣

    • @AshokKumar-ii4qr
      @AshokKumar-ii4qr ปีที่แล้ว +10

      @@momozkichutney wo stree h k6 v kr skti h 😂😂

    • @anshumann
      @anshumann 8 หลายเดือนก่อน +3

      Lgta hai didi zyda moody hai bich bich itna mood swings 😂

    • @theexplorer9012
      @theexplorer9012 4 หลายเดือนก่อน

      ye kya bawasir likh diya be

  • @gyanunlimited740
    @gyanunlimited740 2 ปีที่แล้ว +73

    Its been 6 years since I came across this topic and finally understood it today

    • @trijalsharma4471
      @trijalsharma4471 ปีที่แล้ว +20

      you've been unemployed for quite some time 😆

    • @codingalley6229
      @codingalley6229 3 หลายเดือนก่อน +5

      @@trijalsharma4471 solving a damn specific problem doesn't mean you are smart buddy.

  • @PankajYadav-zg1re
    @PankajYadav-zg1re 2 ปีที่แล้ว +83

    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 ปีที่แล้ว +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 ปีที่แล้ว +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 ปีที่แล้ว +4

      @@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

  • @ganeshkamath89
    @ganeshkamath89 2 ปีที่แล้ว +20

    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 ปีที่แล้ว +3

      I tried it multiple times earlier but now I got better understanding, indeed it will stuck in my mind now.

  • @madhuryareddy3994
    @madhuryareddy3994 7 หลายเดือนก่อน +1

    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.

  • @sathwikabhignan1862
    @sathwikabhignan1862 4 หลายเดือนก่อน +1

    my goodness!! crystal clear explanation I am grateful for your dp series, thank you, Striver.

  • @stith_pragya
    @stith_pragya 9 หลายเดือนก่อน +2

    UNDERSTOOD...Thank You So Much for this wonderful video.......🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

  • @mohitagarwal3639
    @mohitagarwal3639 2 ปีที่แล้ว +10

    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 ปีที่แล้ว +12

    What an explanation....Partition was a concept i was not much clear with .....
    Thank you for making me understand this concept

  • @rishavsaha5254
    @rishavsaha5254 2 ปีที่แล้ว +8

    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.

  • @arijitdas4560
    @arijitdas4560 2 ปีที่แล้ว +5

    understood that is not a question this a concept ....
    hats off to your efforts man you are just amazing

  • @VinayKumar-ze2ww
    @VinayKumar-ze2ww 2 ปีที่แล้ว +3

    Another great video, thanks striver for making me understand MCM
    50 minute sound huge but it just flew by

  • @shashwatdhingra3580
    @shashwatdhingra3580 ปีที่แล้ว +2

    Best Ever Explanation for MCM. Literally!

  • @Noob_Coder1234
    @Noob_Coder1234 8 หลายเดือนก่อน +1

    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❤❤

  • @dhikshithgoshika2700
    @dhikshithgoshika2700 2 ปีที่แล้ว +10

    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 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

  • @deepti8920
    @deepti8920 9 หลายเดือนก่อน +2

    The best video on partition DP I came across! Good job!

  • @rohan8758
    @rohan8758 2 หลายเดือนก่อน +1

    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!!!!

  • @chanchalroy3417
    @chanchalroy3417 9 หลายเดือนก่อน

    Just understood the whole concept of partition DP at one go 🙌😌🔥

  • @priyanshkumar17
    @priyanshkumar17 3 หลายเดือนก่อน

    Excellent explanation - Partition DP Starts!!!

  • @dhirenpatil8600
    @dhirenpatil8600 2 ปีที่แล้ว +3

    Really nice explanation srtiver. I like the way that you teach and understood the MCM.Very tricky but now understood.

  • @108_adityakumar6
    @108_adityakumar6 2 ปีที่แล้ว +2

    Understood.🔥🔥Your dp series is best.

  • @sakshigupta4793
    @sakshigupta4793 2 ปีที่แล้ว +17

    TBH for dp series Aditya Verma & you are the best. 😊

  • @nowitspk
    @nowitspk 2 ปีที่แล้ว +3

    Understood
    ------------------------------
    Recursion :-
    TC---> exponential
    Memoisation:-
    TC---> O(N*N*N)
    SC--->O(N*N) + O(N)

  • @sumeetkumar4984
    @sumeetkumar4984 2 หลายเดือนก่อน

    bhaiya bahut accha samjhaya....thanks a lot

  • @madhavdwivedi5146
    @madhavdwivedi5146 ปีที่แล้ว +1

    kya mast padhaya hai.....aapko dekhke mera khud padhane ka man hogya...❣❣❣❣❣❣

  • @JothiprakashThangaraj
    @JothiprakashThangaraj 3 หลายเดือนก่อน

    Got it when going through coluple of times thanks a lot !!!

  • @TXS-xt6vj
    @TXS-xt6vj ปีที่แล้ว

    No one can be better than you striver

  • @suyashjain3223
    @suyashjain3223 19 วันที่ผ่านมา

    Amazing Explanation!!!

  • @vivekpaliwal1876
    @vivekpaliwal1876 ปีที่แล้ว +1

    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...

  • @adarsh_k_agrawal
    @adarsh_k_agrawal 5 หลายเดือนก่อน

    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.

  • @ritikshandilya7075
    @ritikshandilya7075 3 หลายเดือนก่อน

    Thankyou for amazing solution Striver

  • @suryanshsingh5304
    @suryanshsingh5304 2 หลายเดือนก่อน

    Understood! Hats off🙏

  • @UECAshutoshKumar
    @UECAshutoshKumar 4 หลายเดือนก่อน +1

    Thank You
    Understood!!!

  • @TXS-xt6vj
    @TXS-xt6vj ปีที่แล้ว

    Just like messi, no one can be better than this teaching, so underrated

  • @prettylilnerdy6802
    @prettylilnerdy6802 11 หลายเดือนก่อน

    Nice tricks for solving all partition dp

  • @ritwik121
    @ritwik121 2 ปีที่แล้ว +7

    @striver Great explanation ... hope you will making a video on burst ballons and how to think for that problem ...

  • @anirbannaskar5495
    @anirbannaskar5495 ปีที่แล้ว

    I have not seen such good explaination for this problem bhaiya, thanks for making such good conceptual problem!!

  • @Parthj426
    @Parthj426 3 หลายเดือนก่อน

    awesome lecture striver , understood

  • @fmkhandwala39
    @fmkhandwala39 ปีที่แล้ว +2

    AMAZING EXPLANAITION AS USUAL!

  • @aftabalam7103
    @aftabalam7103 2 ปีที่แล้ว +2

    Very clear and solid explanation,Thanks buddy

  • @sanskarkumar028
    @sanskarkumar028 ปีที่แล้ว

    very calm and easy solution . thanku u striver

  • @anonymousvoid6356
    @anonymousvoid6356 2 ปีที่แล้ว +1

    Dont stop making videos man !!!!!!!

  • @rupamhari115
    @rupamhari115 2 ปีที่แล้ว +4

    MCM was always been a nightmare for me, and now, I finally understood. Thank you so much bhaiyaa!! 🙏🙏🙏🙏

  • @itishachoudhary906
    @itishachoudhary906 2 หลายเดือนก่อน

    Thank you Sir ! Understood.

  • @cgoxo
    @cgoxo 2 ปีที่แล้ว +2

    It takes a lot of effort to explain more than one example in detail. Thank you so much for this.

  • @shivisingh9975
    @shivisingh9975 6 หลายเดือนก่อน

    Understood! very well explained

  • @cinime
    @cinime 2 ปีที่แล้ว +1

    Understood! Thank you sooooo so SO much as always!!

  • @ronakslibrary8635
    @ronakslibrary8635 ปีที่แล้ว +1

    Understood , difficult concept explained easily🤯🤯

  • @shivanssingh4897
    @shivanssingh4897 2 ปีที่แล้ว +6

    Hi Striver, can you explain problems on pattern dp like burst baloons etc. Your explaination is very good btw.

    • @takeUforward
      @takeUforward  2 ปีที่แล้ว +7

      Soon!

    • @shreyasingh1258
      @shreyasingh1258 2 ปีที่แล้ว +1

      @@takeUforward jaldi le aao bhaiya, can't waitt!

  • @TXS-xt6vj
    @TXS-xt6vj ปีที่แล้ว

    Absolutely world class

  • @JohnSnow-r1e
    @JohnSnow-r1e 3 หลายเดือนก่อน

    Give this guy 10M subscriber by the end of the 2024

  • @ektabansal7645
    @ektabansal7645 ปีที่แล้ว

    Thanks a lot striver for this series, it is damn helpful!!

  • @manasranjanmahapatra3729
    @manasranjanmahapatra3729 2 ปีที่แล้ว +1

    Super Clear Understood.

  • @prabhakaran5542
    @prabhakaran5542 5 หลายเดือนก่อน +1

    Understood ❤❤❤

  • @rohitn6333
    @rohitn6333 2 ปีที่แล้ว +3

    Thanks a lot for such a wonderful explanation sir :)

    • @parthsalat
      @parthsalat 2 ปีที่แล้ว +1

      The Great Rohit Negi is here!

  • @cricketwala937
    @cricketwala937 ปีที่แล้ว

    this is the best lecture on MCM till the date . 🔥🔥🔥

  • @gauravbanerjee2898
    @gauravbanerjee2898 4 หลายเดือนก่อน

    Thank you so much striver ❤❤

  • @samyakjain7422
    @samyakjain7422 2 ปีที่แล้ว +1

    areeee bhaiyaaa omphooo!!! zammmn bhai understood....saying this video is god damn amazing is an understatement.

  • @bakyt_yrysov
    @bakyt_yrysov ปีที่แล้ว +1

    Thank you soo much!! Please, keep posting such this amazing content!

  • @fanofabdevillersandmathslo5960
    @fanofabdevillersandmathslo5960 2 หลายเดือนก่อน +1

    Understood

  • @DevashishJose
    @DevashishJose 9 หลายเดือนก่อน

    Understood Thank you so much

  • @sauravchandra10
    @sauravchandra10 ปีที่แล้ว +1

    Clearly understood, thanks!

  • @manasagarwal9341
    @manasagarwal9341 21 วันที่ผ่านมา

    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].

  • @bhavanisankarlenka
    @bhavanisankarlenka 5 หลายเดือนก่อน +1

    understood

  • @rohandevaki4349
    @rohandevaki4349 2 ปีที่แล้ว +1

    thankyou bro, very clear and easy explaination .

  • @juniorboy1903
    @juniorboy1903 2 ปีที่แล้ว +2

    It's hard but u have made it very easy to understand thanks bhaiya 😃😍

  • @sanaaroraa9315
    @sanaaroraa9315 4 หลายเดือนก่อน

    Amazing! understood

  • @codelearner3355
    @codelearner3355 ปีที่แล้ว

    UNDERSTOOD ,THANKS!

  • @gentleman7060
    @gentleman7060 ปีที่แล้ว +1

    All of your dp problems should have one playlist. It would be helpful.

    • @arnoldsmith6584
      @arnoldsmith6584 ปีที่แล้ว +1

      It is there bro in a single playlist

  • @raghavmanish24
    @raghavmanish24 2 หลายเดือนก่อน +1

    MJHE BELEIVE NHH THA PHLE KI MAI YE TOPIC SMJH LUNGA EK BAAR ME .....BUT STRIVER MAKE IT EASY ......#UNDERSTOOD

  • @vishwasrajbatham5998
    @vishwasrajbatham5998 2 ปีที่แล้ว +1

    Understood. Helped a lot !

  • @vidhigupta3769
    @vidhigupta3769 ปีที่แล้ว

    understood. Thanks Striver!!

  • @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;

  • @Zunan263
    @Zunan263 2 ปีที่แล้ว +1

    Plz plz plz dp on graphs asap love ur work 🙏❤️

  • @rakeshkumaryadav1117
    @rakeshkumaryadav1117 3 หลายเดือนก่อน

    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

  • @AbhishekYadav-rm4hw
    @AbhishekYadav-rm4hw ปีที่แล้ว +1

    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

  • @TXS-xt6vj
    @TXS-xt6vj ปีที่แล้ว

    Legend , legend, legend

  • @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

  • @culeforever5408
    @culeforever5408 5 หลายเดือนก่อน +1

    Love you man

  • @smartswaggy6114
    @smartswaggy6114 2 ปีที่แล้ว

    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.

  • @wave7213
    @wave7213 8 หลายเดือนก่อน

    UNDERSTOOD

  • @ashishchourasia2830
    @ashishchourasia2830 ปีที่แล้ว

    Hands down the best explanation.

  • @parthsalat
    @parthsalat 2 ปีที่แล้ว +1

    I'm blind...how am I supposed to watch this insightful lecture 🥺

  • @TON-108
    @TON-108 21 วันที่ผ่านมา

    Understood!

  • @anukulgaurav3043
    @anukulgaurav3043 2 ปีที่แล้ว +1

    Best video I have ever seen on dp🔥

  • @rishabhagarwal8049
    @rishabhagarwal8049 2 ปีที่แล้ว +1

    Understood Sir, Thank you very much

  • @Zunan263
    @Zunan263 2 ปีที่แล้ว +1

    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

  • @sukhpreetsingh5200
    @sukhpreetsingh5200 ปีที่แล้ว +2

    Awesome Just amazing lecture😃

  • @shubhadarajmane7323
    @shubhadarajmane7323 2 ปีที่แล้ว +1

    Thanks ,you helped me a lot.

  • @sainenirohitrao5083
    @sainenirohitrao5083 ปีที่แล้ว

    man justt love youuu...completely understoood!!!

  • @prantikofficial
    @prantikofficial 2 ปีที่แล้ว +1

    Understood completely!

  • @michael-pasquale
    @michael-pasquale 2 ปีที่แล้ว +2

    Understood. Excellent explanation!

  • @shalomalexander7811
    @shalomalexander7811 2 ปีที่แล้ว +1

    Which application are you using to write on?

  • @rejaulislam2593
    @rejaulislam2593 2 หลายเดือนก่อน

    alhamdulliah finally understood the topic.....striver may allah bless u bro...u r really awesome

  • @SAURABHKUMAR-yo7er
    @SAURABHKUMAR-yo7er 6 หลายเดือนก่อน

    understood sir

  • @UCSDebajyotiDas
    @UCSDebajyotiDas ปีที่แล้ว +1

    The code studio question is little bit changed now f(1,n,arr) will work instead of n-1

  • @rishabhbhatt9939
    @rishabhbhatt9939 2 ปีที่แล้ว +1

    sir what will be the exact TC of the recursive approach without memoization.

    • @takeUforward
      @takeUforward  2 ปีที่แล้ว +1

      You cannot say exact TC of recursion, because it is generically exponenitation in nature as it tries all ways.

  • @srinathv1412
    @srinathv1412 9 หลายเดือนก่อน +1

    Understoos!