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 .
👏👏👏 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 ✌
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 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
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.
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.
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.
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 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
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!!!!
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...
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.
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].
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;
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
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.
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
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 .
That's the best video ever on Partition DP 👏 so much effort goes into making such content for generations, hats off man 👏👏
👏👏👏 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 ✌
arey aaram se bolo didi, ye beech beech mei daure pad rhe h kya!
@@momozkichutney 🤣🤣🤣🤣
@@momozkichutney wo stree h k6 v kr skti h 😂😂
Lgta hai didi zyda moody hai bich bich itna mood swings 😂
ye kya bawasir likh diya be
Its been 6 years since I came across this topic and finally understood it today
you've been unemployed for quite some time 😆
@@trijalsharma4471 solving a damn specific problem doesn't mean you are smart buddy.
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 ❤️❤️❤️❤️
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
@@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 .
@@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
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.
I tried it multiple times earlier but now I got better understanding, indeed it will stuck in my mind now.
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.
my goodness!! crystal clear explanation I am grateful for your dp series, thank you, Striver.
UNDERSTOOD...Thank You So Much for this wonderful video.......🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
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.
What an explanation....Partition was a concept i was not much clear with .....
Thank you for making me understand this concept
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.
❤️
I also
understood that is not a question this a concept ....
hats off to your efforts man you are just amazing
Another great video, thanks striver for making me understand MCM
50 minute sound huge but it just flew by
Best Ever Explanation for MCM. Literally!
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❤❤
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 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
thanks gyani baba@boomsi69
The best video on partition DP I came across! Good job!
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!!!!
Just understood the whole concept of partition DP at one go 🙌😌🔥
Excellent explanation - Partition DP Starts!!!
Really nice explanation srtiver. I like the way that you teach and understood the MCM.Very tricky but now understood.
Understood.🔥🔥Your dp series is best.
TBH for dp series Aditya Verma & you are the best. 😊
Understood
------------------------------
Recursion :-
TC---> exponential
Memoisation:-
TC---> O(N*N*N)
SC--->O(N*N) + O(N)
bhaiya bahut accha samjhaya....thanks a lot
kya mast padhaya hai.....aapko dekhke mera khud padhane ka man hogya...❣❣❣❣❣❣
Got it when going through coluple of times thanks a lot !!!
No one can be better than you striver
Amazing Explanation!!!
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...
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.
Thankyou for amazing solution Striver
Understood! Hats off🙏
Thank You
Understood!!!
Just like messi, no one can be better than this teaching, so underrated
Nice tricks for solving all partition dp
@striver Great explanation ... hope you will making a video on burst ballons and how to think for that problem ...
I have not seen such good explaination for this problem bhaiya, thanks for making such good conceptual problem!!
awesome lecture striver , understood
AMAZING EXPLANAITION AS USUAL!
Very clear and solid explanation,Thanks buddy
very calm and easy solution . thanku u striver
Dont stop making videos man !!!!!!!
MCM was always been a nightmare for me, and now, I finally understood. Thank you so much bhaiyaa!! 🙏🙏🙏🙏
Thank you Sir ! Understood.
It takes a lot of effort to explain more than one example in detail. Thank you so much for this.
Understood! very well explained
Understood! Thank you sooooo so SO much as always!!
Understood , difficult concept explained easily🤯🤯
Hi Striver, can you explain problems on pattern dp like burst baloons etc. Your explaination is very good btw.
Soon!
@@takeUforward jaldi le aao bhaiya, can't waitt!
Absolutely world class
Give this guy 10M subscriber by the end of the 2024
Thanks a lot striver for this series, it is damn helpful!!
Super Clear Understood.
Understood ❤❤❤
Thanks a lot for such a wonderful explanation sir :)
The Great Rohit Negi is here!
this is the best lecture on MCM till the date . 🔥🔥🔥
Thank you so much striver ❤❤
areeee bhaiyaaa omphooo!!! zammmn bhai understood....saying this video is god damn amazing is an understatement.
Thank you soo much!! Please, keep posting such this amazing content!
Understood
Understood Thank you so much
Clearly understood, thanks!
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].
understood
thankyou bro, very clear and easy explaination .
It's hard but u have made it very easy to understand thanks bhaiya 😃😍
Amazing! understood
UNDERSTOOD ,THANKS!
All of your dp problems should have one playlist. It would be helpful.
It is there bro in a single playlist
MJHE BELEIVE NHH THA PHLE KI MAI YE TOPIC SMJH LUNGA EK BAAR ME .....BUT STRIVER MAKE IT EASY ......#UNDERSTOOD
Understood. Helped a lot !
understood. Thanks Striver!!
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;
Plz plz plz dp on graphs asap love ur work 🙏❤️
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
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
Legend , legend, legend
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
Love you man
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.
UNDERSTOOD
Hands down the best explanation.
I'm blind...how am I supposed to watch this insightful lecture 🥺
Understood!
Best video I have ever seen on dp🔥
Understood Sir, Thank you very much
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
Awesome Just amazing lecture😃
Thanks ,you helped me a lot.
man justt love youuu...completely understoood!!!
Understood completely!
Understood. Excellent explanation!
Which application are you using to write on?
alhamdulliah finally understood the topic.....striver may allah bless u bro...u r really awesome
understood sir
The code studio question is little bit changed now f(1,n,arr) will work instead of n-1
sir what will be the exact TC of the recursive approach without memoization.
You cannot say exact TC of recursion, because it is generically exponenitation in nature as it tries all ways.
Understoos!