i have not enough words to thank you.I had spine injury 2 years ago.So i am in wheelchair .With your help i have completed my degree. Really thank you sir. God bless you sir
@yashdeepsingh151911 ай бұрын
lmao
@cityisbetter7 ай бұрын
@@yashdeepsingh1519 dude wtf 😂, why would u "lmao" this comment
@its_a_big_world7 ай бұрын
i hope you're better now.
@fayezchamp93655 ай бұрын
Meaning of imao?@@cityisbetter
@cityisbetter5 ай бұрын
@@fayezchamp9365 its L M A O not i, Laughing My Ass Off
@gameboyatron14054 жыл бұрын
Besides actually learning what I need to know, the best part about these videos is how nice and respectful everyone is
@Forexx_boy Жыл бұрын
Pasd hua kya😂
@giannismaris134 жыл бұрын
this man deserves a nobel or something. You are Ω(2^n) times better than my teacher!
@muhammadusama53292 жыл бұрын
hey, No teacher is better or worse. A teacher is a teacher and we have to respect every teacher around us. If you feel your teacher is not suitable for your mindset then change your path. No offense. Thanks.
@sushantatimalsina90642 жыл бұрын
@@muhammadusama5329 oh yeah your vision matters
@sircosm2 жыл бұрын
@@muhammadusama5329 Very well said! All teachers deserve respect for what they do. There will always be some exceptions but even they should be respected for their passion and dedication towards this noble profession.
@PureAsbestos2 жыл бұрын
@@muhammadusama5329 You clearly haven't had a class with a professor who teaches so poorly that more than half the students fail or drop out. There is such a thing as bad teaching.
@tuskoub2 жыл бұрын
@@muhammadusama5329Counterexample: My professor falsely accuses students, ruins their lives with the accusation, blocks students from receiving tutoring or seeking help, has driven other professors away, and gloats about his high (nearly 70%) fail-rate. His algorithms assignments have nothing to do with what he teaches. There are no other options at this school and you can't transfer the class in. My teacher is absolutely the worst, ever.
@MuffinLucas3 жыл бұрын
A simple white board and you blow most teachers out of the water. You are a VERY gifted teacher and I thank you!
@smrjt91025 жыл бұрын
SET method for solving 0/1 Knapsack starts at 19:26. And for Tabular method watch the lecture from the beginning. Thanks
@rawnakfreak3539 Жыл бұрын
🤣 thanks
@aarushitiwari4787 Жыл бұрын
Hey can you tell me that while we eliminate an ordered pair using dominance rule...so for applying that rule our ordered pairs should be arranfed in ascending order of profits right??
@adarshsharma722911 ай бұрын
yes profits should be in ascending order @@aarushitiwari4787
@adityaranjansahoo626110 ай бұрын
@@aarushitiwari4787 arranging the weights in ascending is the key here...because then we always check which prev weight to include or not
@saitejasherla15513 жыл бұрын
Amazing thing is , you don't need any institute but student's like us need you most sir 🙏🏻 For your teaching experience and explanation take a bow👏🙌💯
@adamberry75364 жыл бұрын
Watching your videos is when it really clicked for me that I need to drop the just-show-me-the-code-already mentality. Interviewers are more interested in this level of understanding than regurgitating flawless code on a whiteboard. If you take the time to watch videos like this you can write the code yourself because you really understand the underlying algorithm.
@samudragupta7196 жыл бұрын
While others were struggling I just rocked in VIVA ! Showed full iteration. Thanks a ton Sir. Looking forward more from your Pandora's box. Take my humble regards 🙏
@arkasingha61113 жыл бұрын
Bro what do u study???
@rapahel37173 жыл бұрын
@@arkasingha6111 DAA or Design and Analysis of Organisation
@fathimashahana95943 жыл бұрын
Hjjjkjlĺo9
@pkyadav62302 жыл бұрын
@@fathimashahana9594 wt f babe
@Aspect_GT2 жыл бұрын
@@pkyadav6230 nice go say it to your mom also
@vivek__pandey6 жыл бұрын
your way of explaining is best among all videos.
@vbvgtm6 жыл бұрын
Vivek Pandey achcha Bhai pandey😂😂 bilkul shi kaha
@vivek__pandey6 жыл бұрын
Exam kesa gya bro , mera to first class gya...
@CreatingUtopia6 жыл бұрын
agree
@BackToBackSWE6 жыл бұрын
nah fam, check me out :) I cover this topic
@nagamanikilari29965 жыл бұрын
@@BackToBackSWE you explained string edition so well
@-_RonyMir4 жыл бұрын
sir ,whenever i watch you explaining a topic one word pops up in my head "Learning sometimes seems Beautiful! and this is the way we should learn something".
@meowzerilla Жыл бұрын
13 words hai bhaisaab
@Hayleeyyo5 жыл бұрын
Sir you saved my life, I’m from university of Toronto, computer science specialist, I have adhd and always fell asleep in class, I found it’s hard to follow with my professor, but your videos made the topic understandable and interesting !!
@AkshatSinghania2 жыл бұрын
lmao , university of toronto is awesome , good luck with classes
@gamerboy-su1uq2 жыл бұрын
So you have Schizophrenia as well?
@ConverttoHinduism Жыл бұрын
University doesn't matter, knowledge matter. People who don't get seats here in India go to Toronto University
@MK-zf6or Жыл бұрын
@@ConverttoHinduism indians love to go to canada lol, UofT is far superior than anything in India we see indians go to canada for education but never a canadian who went to india 😂
@debdeepsanyal9030Ай бұрын
@@ConverttoHinduism do you even know how good university of toronto is. you don't. hence, don't speak.
@haiderwaseem83553 жыл бұрын
I tried to learn it from people but salute to this guy. He's Amazing!!! Thank you so much.
@divijjain46744 жыл бұрын
Remember to always write the weight in ascending order on the left of the table.
@jay-rathod-013 жыл бұрын
bro did you watch the video.
@haidershahid3713 жыл бұрын
@@jay-rathod-01 He is not wrong
@theundescribable16433 жыл бұрын
i dont think it is necessary as by the end all of the objects are considered and you would have filled the cells with maximum profit
@liammeck13792 жыл бұрын
Just for future readers: the order of the items does not matter; no need to sort them. ``` import random m = 8 p = 1, 2, 5, 6 w = 2, 3, 4, 5 items = list(zip(p, w)) random.shuffle(items) results = [0] * (m + 1) for item_profit, item_weight in items: for target_weight in range(m, item_weight - 1, -1): results[target_weight] = max(results[target_weight], results[target_weight - item_weight] + item_profit) print(results) ```
@-BONDLAMADHURI Жыл бұрын
@@theundescribable1643aq1
@dinushachathuranga7657 Жыл бұрын
You are born to teach complex concepts in a simple way. Bunch of thanks sir❤❤💫
@shuaib37883 жыл бұрын
This dude is a legend or what ??? ! His calmness , calms my soul! .,.. *Cries* !! Keep it up Bari Bhai
@priscillabenedetti41823 жыл бұрын
This is the clearest explanation of the knapsack problem I've ever found online, thank you sir!
@sanemind57122 жыл бұрын
Well I have my algorithm exam tomorrow and honestly I don't like to read algo .. i was depressed that I might fail on my exam but then I found your channel and started learning ... And i'm quiet sure that I'm not gonna fail atleast ... Your videos really helped me a lot .. thank you so much sir ... Thanks a lot
@UpdateWithAstro5 жыл бұрын
Best channel on KZbin for DAA Stop wasting time on finding others channel just follow this channel
@nuwantattygalle56454 жыл бұрын
and this udemy course is also super nice
@vipulahuja20445 жыл бұрын
Sir, I have never studied before the set method of 0/1 knapsack, after watching this video, i got to know about the set method which is very easy method, Thank you so much Sir
@subhasmitajena1726 Жыл бұрын
Not from computer science background. This video is everything I needed. Thank you from the bottom of my heart.❤
@rishisingh12962 жыл бұрын
Why to worry when you have Abdul Bari
@dossexplores6 ай бұрын
Dei avanthada periya velaya pathutu poitan 😂😂
@vishalrajal5 ай бұрын
@@dossexploresyean enna achu
@sharath8309Ай бұрын
@@dossexploresExam thapa agidutcha bro
@rahmatsheikh290920 күн бұрын
No need to magaj Mari when you have Abdul Bari
@sharath83099 күн бұрын
@@vishalrajalunaku edhathu thapa aghidutcha bro
@hjklmn95263 жыл бұрын
110% marks to you sir.. This is a very complicated problem to understand. But after going through this video and actually drawing it in notebook i found it actually very easy..
@shubhamdalvi93474 жыл бұрын
Get this man a shield of subscribers! U are saving ur time ...for understanding these problems. Keep working and THANKS IS ADVANCE FOR FUTURE VIDEOS.
@haidershahid3713 жыл бұрын
Amazing sir. I simply love it when you release an "Acha" During your lecture
@hmm74583 жыл бұрын
haha.. can't hold his Indian back for long
@ritikraj.186 жыл бұрын
Words are not enough to Thank you Sir! After going through a lot of videos, finally i found something which has cleared all my doubts regarding this problem. Thankyou 🙏🙏
@TheyHurry4 жыл бұрын
You are probably one of the best instructors I've ever come across
@engineerhiteshahuja4 жыл бұрын
I wish we had such great material during our college days. Huge thanks to you!! Keep rocking.
@israelamamba95243 жыл бұрын
I tried several tutorial, but this is the best and easiest to understand. I especially was looking for how the formula is used to derived the values in the table and this tutorial explains it as well. Thanks a lot
@gourabchanda64272 жыл бұрын
Best approach to solve any dp: 1. Learn to develop recursive logic from scratch. (TC is worst, you might end up with TLE) 2. Memoize the same recursive logic. (optimize TC but end up using extra space. SC is probably worse now) 3. Learn the art of transforming recursive logic to tabular. (you end up saving call stacks) 4. Optimize the space complexity as well. (now you have optimized space as well) PS: thank you sir, if you weren't there, probably many wouldn't have tried in the first place.
@alexwhitewood6480 Жыл бұрын
Love the explanation! Can you elaborate what is meant by TC, TLE and SC?
@gourabchanda6427 Жыл бұрын
@@alexwhitewood6480 TC : Time complexity TLE: Time limit Exceeded SC: Space complexity
@subhalakshmithulasidas56994 жыл бұрын
Thank you so much sir!!! I passed my DAA exam only with the help of your videos!! Sincere thanks!
@gabrip75 жыл бұрын
Even if I'm not using all of it now I bought both courses on udemy, because you algorith classes are helping me SO much with my Undergraduate thesis thank you
@_Ojasmahajan15 күн бұрын
Sir your method of teaching is absolutely phenomenal. would have never understood complex topics in DAA without your videos
@bhuvneshmahajan65736 жыл бұрын
It was easy to understand. I'm grateful to teachers like you for your great way of explaining concepts of C.S.E.
@Sanakhan-ff2jd4 жыл бұрын
teaching is an art .... after wasting 24 hours to understate a lecture of same topic by some crazy optimization expert from very reputed university of west.... i finally, or would say i "Luckily" found this video, thank you for making it so simple ...
@amitkumarchoubey2003 Жыл бұрын
गुरू ब्रह्मा गुरू विष्णु, गुरु देवो महेश्वरा गुरु साक्षात परब्रह्म, तस्मै श्री गुरुवे नमः 🙏🚩🚩🙏 इम्तिहान में सर्वदा अवल व बेहतर अंक आए 🙏🙏🚩🚩🛕🛕💐💐🪔🪔🌞🌞😊😊🕉️🕉️🕉️🛕🛕🚩🚩🙏🙏🌹🌹🌷🌷⛳⛳😃😃🇮🇳🇮🇳👏👏🦚🦚
@amitkumarchoubey2003 Жыл бұрын
Great Gurudev Ji 🙏🙏🌹🌹🙏🙏⚽⚽🤗🤗💖💖💯💯🇮🇳🇮🇳⛳⛳🌹🌹🚩🚩🕉️🕉️🛕🛕🌞🌞🌸🌸📚📚🌺🌺🎈🎈🎯🎯💓💓✅✅💯💯🇮🇳🇮🇳🙏🙏
@joyseekerarpit6 жыл бұрын
Its looking very easy to me now, today in class I wasn't able to understand it so I looked up for the problem on youtube and I met a genius. Thank you
@AdamWhitakerWilson6 жыл бұрын
Saving my life just in time for finals! Thank You!
@obliteratedcisco47093 жыл бұрын
wait u dont think he is ugly tho that was slightly off-putting lol 😅
@sumant91203 жыл бұрын
Breakdown of the formula: ⭐V: DP table which stores values of subproblems ⭐V[i, w]: Maximum profit by considering the first 'i' elements in a bag of weight 'w' ⭐V[i-1, w]: Case when the current object is not included(~0) and the bag with current weight 'w' must be filled with the maximum profit possible (stored at 'i-1') ⭐V[i-1, w-w[i]] + p[i]: Case when the current object is included(~1) and the remaining part of the bag 'w-w[i]' must be filled with the maximum profit possible (stored at 'i-1') (~ Hence the name 0/1 knapsack problem)
@varun64803 жыл бұрын
My brain got damaged
@swarnaislam85282 жыл бұрын
Thnx
@jaideepsingh79552 жыл бұрын
why 0/1 knapsack needs a 2d array to memoize whereas house robber needs 1d array ? both are similar problems
@anshgoel26072 жыл бұрын
@@jaideepsingh7955 In house robber we calculate Profit/weight where as in 0/1 Knapsack we can't divide the objects thus we store the profit value..
@panchalmahidilip94152 жыл бұрын
Brain left
@madhavgupta39764 жыл бұрын
Your method is the easiest, which explains the two method. It makes the algorithm easy to understand. Thanks a lot sir.
@53_ananyayadav736 ай бұрын
Truly sir, watch many 0/1 knapsack video, got too puzzeled, how to solve this tabulation, readings article for the same, but gets on the sport clearation here, thank u so much sir for sharing ur vast knowledge with the students like us
@Youthstrugglebyshreya5 жыл бұрын
The second method was much easier... N i watched your other videos as well ... Really useful for my DAA exam preparation... properly explained all steps
@brockobama257 Жыл бұрын
but its 2^n bro
@sagarmistry62102 жыл бұрын
There teachers are freely available on KZbin, whereas after paying lacs of rupees, we don't get such tutors in our colleges. This is true Digital India.
@audreygoveas12395 жыл бұрын
You're the best! You teach in such a way that we understand the concept entirely!
@Axayubale5 жыл бұрын
You are not teacher you are god of computer science...hats off u sir
@KingBobXVI2 жыл бұрын
Well explained and easy to understand - though there's a mistake I think at around 18:20 where you say to subtract the profit of the item to get what to search for in the previous row, but you should be subtracting the weight of the chosen item from the weight of the bag (8-5 = 3) to get the column of the previous row(s) to check for inclusion. This more intuitively makes sense to me as well, because you're ultimately just splitting the problem into smaller sub-problems - you've chosen the 4th item to include in the bag, and now you're looking at the previous row to determine what was the optimal solution for a bag of size 3, now that the _remaining_ weight you have to work with is 3. The additional profit you can add to a bag of size 3 is 2, so the rest of the explanation is the same. With that correction, I think the explanation is good enough as well that it's really easy to expand from a 0/1 solution to a 0/n solution (including as many of each item as you want).
@fardinalam729011 ай бұрын
i think 8-6 =2 used because max profit for bag is 8 and 8 is located in 5th row which is wight 5 which selected for including in bag. and then maximum profit is 8 5th row profit is 6 then 8-6 = 2 , and now we have to search in which row profit 2 is located which is 3rd row of weight 3 so in bag{wi 3,5} selected with max profit 8. please correct me if i am wrong
@KingBobXVI11 ай бұрын
@@fardinalam7290 - I think that's incorrect, you want to subtract weight because that's the bounded variable. You want the most profit per unit of weight, and there's no limit to potential profit. Conceptually, you're solving sub-problems until you reach the final query. If ƒ(8) says the optimal item to take is weight 5, then you add its value, and query with the remaining bag capacity for ƒ(3), repeat until done. You don't want to take off the price, because that's a different unit than your input variable of weight. Note: I haven't watched this in a while, so I'd have to review it to be sure. I recommend solving the problem on paper, it helps give a better understanding of how it works. Especially if you explain it to someone else. However, that gave me an idea - it could be interesting to add another bound for this to limit the price as well - rather than taking items worth as much as possible like some kind of heist, maybe you're instead buying so you want to keep the price low, haha.
@harshitha48863 жыл бұрын
Sir I have seen videos on how to fill the table in knapsack problem. But u have explained why we are filling a particular value in that way only. You are an amazing teacher . Thankyou so much Sir.
@star776702 жыл бұрын
Please reply what if m =30 How many columns should we take ??
@mayurisanjaynikam2024 жыл бұрын
Seriously sir just because of you i feel relax ....i was just in depression of this type of examples cause i thought it takes lot of time ...but you proved me wrong .. thanking you sir
@neogen232 жыл бұрын
Never heard of your channel before, unfortunately. Just watched this video, and I don't need a second one to understand the problem. I guess that's as good a compliment as it gets
@michelletan42492 жыл бұрын
the best professor I ever had, professor Abdul Bari is amazing!
@naveen44212 жыл бұрын
Yup
@ahmetlacin5748 Жыл бұрын
Mr Bari: Thank you so much. I was struggling to understand this problem and was not able to find an explanation as clear as this. Thank you so much again.
@michaelkochka76683 жыл бұрын
Love your videos! Just purchased your data structures course on Udemy because you explain things so well.
@praveenakushwaha92214 жыл бұрын
Sir, you cleared all confusions. Thanks a ton, You made it very easy to understand.
@tauhidhasan90735 жыл бұрын
Thank you sir, as you know its soo hard to remember the rules of AI maths for a long time. Exam is knocking on the door and you just saved a lot of us. Thanks a lot sir, you r great
@md.nayeemhasanadil59385 жыл бұрын
without you sir what would we do. You are the savior of computer engineering students
@siddharthasriramvinjam1675 жыл бұрын
Seriously I owe you a lot as your way of explaining the concept is very helpful to below average students like me. Thank you so much Sir.
@harish_madhan2 жыл бұрын
Dear Sir, Only the Genius mind can give these kind of explanation and make it looks simple. You are genius sir. Thanks a lot for sharing tremendous knowledge to us. According to me, for this moment. I can see the God in you that shows a way for my well being. You are the GOD ❤
@mohammadyousef28125 жыл бұрын
i pray Allah award you jannah for this explanation. Thank you so much.
@nohaelhaddad44254 жыл бұрын
AMEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEN
@abuzaformohammedaman92053 жыл бұрын
Right bro
@Jumabuoy25 күн бұрын
For the first time I'm forced to comment on these educational videos cause, I mean you the BEST LECTURER,,, You deserve a nobel or smth really...
@sankararaoijjada47864 жыл бұрын
I will be graduated by watching these videos only rather than listening my faculty lectures ❤
@abuzaformohammedaman92053 жыл бұрын
Same bro
@AnnaSidor-w8c Жыл бұрын
you are heaven sent - i got it after watching the first 10 minutes, i love your videos, the are super helpful
@majidzarinkolah3 жыл бұрын
In w - w[i] expression, the first w refers to the capacity and the second w refers to the weights list. It would be better to rename one of them. for example declaring the capacity as c. totally the way of teaching is delicious and the teacher has so much of charisma. Thanks to him!
@starsky98323 жыл бұрын
Thank you sir, this is the clearest explanation in this topic, the others just blindly apply formula without explanation.
@jhguygih4 жыл бұрын
I've watched 95% of the alghoritms playlist. I sure own this teacher some money, is to much work done. How do we support him?
@rishabmallick64 жыл бұрын
He has a patreon link in the description of this video
@bhawna19972 жыл бұрын
Big salute to sir for explaining it so well! Best explanation of tabulation method of knapsack till now on KZbin!
@AbdulMalik9993 жыл бұрын
Thank you Mr. Abdul Bari. I am grateful for your lectures.
@harshitm64034 жыл бұрын
Really Helpful videos... My go-to videos for my entire Data Structures and Algorithms course in college. Even now it is helping me prepare for competitive coding.
@KevrenBey3 жыл бұрын
king of the algorithms ...thanks from Turkey..
@cynthiachristelle2 жыл бұрын
thank you so much!!! i'll make sure I mention your name during my degree acceptance speech
@Bobby-mf6fw5 жыл бұрын
You make the subject easiest. We are thankful to you sir.
@sogatturlakshmi1245 Жыл бұрын
Sir, when you excellently explained the logic for three rows, then for fourth row I really don't care about what the formula is. Because I understood the concept well. This is the actual way of explaining things to students. They should not be told the formula first. The concept should be explained first. Then the formula should be told. Then students can easily relate both of them together 🙂. Thank you so much for this video sir.
@kartikpeddinti4876 жыл бұрын
thanks a Ton for the set method.Great explanation sir.Your video order almost matches with my syllabus.You are my DAA exam saviour
@sripeddada87086 жыл бұрын
Hahahaha Even mine😘😘
@tejaswidutsharma68196 жыл бұрын
my too
@hotaru67656 жыл бұрын
me too....in my case it's ADA subject
@comedyvinesvkb27216 жыл бұрын
Peddinti Kartik cmt Ĺugj
@maheshvangala84726 жыл бұрын
Even mine too
@ARSHABBIR1006 жыл бұрын
sir, I have gone through various videos on this topic but your way of explanation is the best among others. thank you very much
@anything11544 ай бұрын
Tomorrow exam 😅
@JPremchand8 күн бұрын
Same 😂
@linnhtet0016 жыл бұрын
Best youtube-tutor ever...Thank You very much Sir!! Learnt a lot .
@EXO_and_ENHYPEN_GaveMeBirth6 жыл бұрын
THE BEST TEACHER EVER !!! VERY WELL EXPLAINED #THANK_YOU_SIR !
@kausikdevanathan1927 ай бұрын
Thank you so much for your explanation sir, it was very clear and left no room for ambiguity. Really appreciate the efforts you make for us! Thanks again!
@SmitaWagh-zm2jg17 күн бұрын
15:40 direct formula
@rawdreen6 жыл бұрын
Thank you! Today we have a Final exam and your lecture is very well explained!
@prashantkaushik70635 жыл бұрын
I highly recommend his udemy courses. He is possibly the best Algorithm teacher on the internet. All the complicated things were explained with ease.
@shresthmishra93294 жыл бұрын
is there any difference in the videos available on youtube and the videos on udemy course?
@ravigupta42524 жыл бұрын
It means you guys don't know about Ravindra babu Sir
@microsoftiitm15374 жыл бұрын
@@ravigupta4252 chutiya he voo
@dhruvgovani21056 жыл бұрын
You are saving lives of so much engineers sir , keep doing..
@asrorbekorzikulov17644 жыл бұрын
Thank you, Sir, so much. Today, I performed very well in my Algorithms exam only because of you. You are the best instructor ever 👍.
@marinietao73524 жыл бұрын
++
@venky38673 жыл бұрын
- -
@gourav11633 жыл бұрын
* *
@fredflintstone7924 Жыл бұрын
You explain it in such a clear and simple way, finally i understand it, thank you very much!
@sanilasabu58645 жыл бұрын
Thank you for this amazing lecture sir.. Wonderful explanation. Clear.
@harshraj22_6 жыл бұрын
wow...... This was probably the best explaination video on 0-1 knapsack problem on you tube (even better than the one uploaded by geeks for geeks ). Thank you so much for this .
@_outcyrptolist5 жыл бұрын
Assalamualikum Sir ! Your videos are precise and to the point ! Provides decent understanding of the topic ! No words to thank you .
@Shantisingh-tz5sr Жыл бұрын
You are God Of Algorithms sir...Take my Humble Regard🙏🙏🙏🙏🙏🙏🙏🙏🙏
@samaypashine5 жыл бұрын
It is best explanation video of knapsack. Thank you sir!!
@theog64943 жыл бұрын
you have a very soothing voice. I was stressing about this, but now it both makes sense and I have been calmed
@beautyandbytes_242 жыл бұрын
Sir why did you stop uploading videos you are great please continue it 🙏 dsa , java, courses etc. all my concepts are clear by your videos. I humbly request u to start uploading again.
@savirc842 жыл бұрын
His course available on Udemy
@MichaelJohnson-Moonlight8 ай бұрын
It was easy to understand. Thank you, professor.😎
@hiteshbitscs5 жыл бұрын
Incredible sir :) In my college these kind of topics remained at the end and never taught...and taught hurrily as instructor wanted to run away from the situation...and this happens to big colleges also sometimes... thanks a lot for teaching me... real Guru :)
@ernaldshehaj3066 Жыл бұрын
I thank you so much for this. I could never understand the lecture of my university, but you sir saved me. I cannot thank you enough.
@the_mia_mia5 жыл бұрын
Wow, thank you so much, I've been struggling with this and you explained it so nicely!! Excellent job!!
@kavithapriyacj48684 жыл бұрын
Best and simple method sir.. thanks alot..the everess time consuming short and crisp method.. hatsofff sir 🙏🙏🙏
@affafa1003 жыл бұрын
This might help somebody: In the last row of tabulation method, the formula basically says we are checking the max of: 1) the best profit we have till now for a bag with weight w, versus 2) if we put current item, the profit we could have + the max profit in remaining bag capacity we calculated. So, for e.g. consider 7kg bag. 5kg we put for last row item. Remaining 2. What's the best profit we can have with that 2kg.
@samhita29173 жыл бұрын
Hey, we do that formula just at last row right..??
@affafa1003 жыл бұрын
@@samhita2917 Yes.
@saisilpabijjala70462 жыл бұрын
Living God of data structures and algorithms...thanks a ton sir 😇
@PTM10085 жыл бұрын
So much efforts have been put in. Thank you so much for such great explanation and content! Pace of explanation is excellent!
@shrimp85943 жыл бұрын
I'm dumb so I have to pause the video to process the information but in my zoom class I can't do that . Hence, I'm left understanding nothing. Thank you so much, watching this made all it clear.
@TsuharesuLuciel5 жыл бұрын
I liked the explanation of the formula and how it works, but I missed how that formula was achieved. I had to do some thinking of what the table really means and what is saved in there. For example, why am I getting the number from previous row and the column minus the current weight? Except from that this is a superb explanation. Thanks so much!
@scrycrystals2129 Жыл бұрын
Thank you so much, never felt this good while taking a lecture ❤