4.5 0/1 Knapsack - Two Methods - Dynamic Programming

  Рет қаралды 3,043,505

Abdul Bari

Abdul Bari

Күн бұрын

Пікірлер: 1 200
@akashsaxena2590
@akashsaxena2590 6 жыл бұрын
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
@yashdeepsingh1519
@yashdeepsingh1519 11 ай бұрын
lmao
@cityisbetter
@cityisbetter 7 ай бұрын
@@yashdeepsingh1519 dude wtf 😂, why would u "lmao" this comment
@its_a_big_world
@its_a_big_world 7 ай бұрын
i hope you're better now.
@fayezchamp9365
@fayezchamp9365 5 ай бұрын
Meaning of imao?​@@cityisbetter
@cityisbetter
@cityisbetter 5 ай бұрын
@@fayezchamp9365 its L M A O not i, Laughing My Ass Off
@gameboyatron1405
@gameboyatron1405 4 жыл бұрын
Besides actually learning what I need to know, the best part about these videos is how nice and respectful everyone is
@Forexx_boy
@Forexx_boy Жыл бұрын
Pasd hua kya😂
@giannismaris13
@giannismaris13 4 жыл бұрын
this man deserves a nobel or something. You are Ω(2^n) times better than my teacher!
@muhammadusama5329
@muhammadusama5329 2 жыл бұрын
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.
@sushantatimalsina9064
@sushantatimalsina9064 2 жыл бұрын
@@muhammadusama5329 oh yeah your vision matters
@sircosm
@sircosm 2 жыл бұрын
@@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.
@PureAsbestos
@PureAsbestos 2 жыл бұрын
@@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.
@tuskoub
@tuskoub 2 жыл бұрын
@@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.
@MuffinLucas
@MuffinLucas 3 жыл бұрын
A simple white board and you blow most teachers out of the water. You are a VERY gifted teacher and I thank you!
@smrjt9102
@smrjt9102 5 жыл бұрын
SET method for solving 0/1 Knapsack starts at 19:26. And for Tabular method watch the lecture from the beginning. Thanks
@rawnakfreak3539
@rawnakfreak3539 Жыл бұрын
🤣 thanks
@aarushitiwari4787
@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??
@adarshsharma7229
@adarshsharma7229 11 ай бұрын
yes profits should be in ascending order @@aarushitiwari4787
@adityaranjansahoo6261
@adityaranjansahoo6261 10 ай бұрын
@@aarushitiwari4787 arranging the weights in ascending is the key here...because then we always check which prev weight to include or not
@saitejasherla1551
@saitejasherla1551 3 жыл бұрын
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👏🙌💯
@adamberry7536
@adamberry7536 4 жыл бұрын
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.
@samudragupta719
@samudragupta719 6 жыл бұрын
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 🙏
@arkasingha6111
@arkasingha6111 3 жыл бұрын
Bro what do u study???
@rapahel3717
@rapahel3717 3 жыл бұрын
@@arkasingha6111 DAA or Design and Analysis of Organisation
@fathimashahana9594
@fathimashahana9594 3 жыл бұрын
Hjjjkjlĺo9
@pkyadav6230
@pkyadav6230 2 жыл бұрын
@@fathimashahana9594 wt f babe
@Aspect_GT
@Aspect_GT 2 жыл бұрын
@@pkyadav6230 nice go say it to your mom also
@vivek__pandey
@vivek__pandey 6 жыл бұрын
your way of explaining is best among all videos.
@vbvgtm
@vbvgtm 6 жыл бұрын
Vivek Pandey achcha Bhai pandey😂😂 bilkul shi kaha
@vivek__pandey
@vivek__pandey 6 жыл бұрын
Exam kesa gya bro , mera to first class gya...
@CreatingUtopia
@CreatingUtopia 6 жыл бұрын
agree
@BackToBackSWE
@BackToBackSWE 6 жыл бұрын
nah fam, check me out :) I cover this topic
@nagamanikilari2996
@nagamanikilari2996 5 жыл бұрын
@@BackToBackSWE you explained string edition so well
@-_RonyMir
@-_RonyMir 4 жыл бұрын
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
@meowzerilla Жыл бұрын
13 words hai bhaisaab
@Hayleeyyo
@Hayleeyyo 5 жыл бұрын
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 !!
@AkshatSinghania
@AkshatSinghania 2 жыл бұрын
lmao , university of toronto is awesome , good luck with classes
@gamerboy-su1uq
@gamerboy-su1uq 2 жыл бұрын
So you have Schizophrenia as well?
@ConverttoHinduism
@ConverttoHinduism Жыл бұрын
University doesn't matter, knowledge matter. People who don't get seats here in India go to Toronto University
@MK-zf6or
@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
@debdeepsanyal9030 Ай бұрын
@@ConverttoHinduism do you even know how good university of toronto is. you don't. hence, don't speak.
@haiderwaseem8355
@haiderwaseem8355 3 жыл бұрын
I tried to learn it from people but salute to this guy. He's Amazing!!! Thank you so much.
@divijjain4674
@divijjain4674 4 жыл бұрын
Remember to always write the weight in ascending order on the left of the table.
@jay-rathod-01
@jay-rathod-01 3 жыл бұрын
bro did you watch the video.
@haidershahid371
@haidershahid371 3 жыл бұрын
@@jay-rathod-01 He is not wrong
@theundescribable1643
@theundescribable1643 3 жыл бұрын
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
@liammeck1379
@liammeck1379 2 жыл бұрын
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
@-BONDLAMADHURI Жыл бұрын
​@@theundescribable1643aq1
@dinushachathuranga7657
@dinushachathuranga7657 Жыл бұрын
You are born to teach complex concepts in a simple way. Bunch of thanks sir❤❤💫
@shuaib3788
@shuaib3788 3 жыл бұрын
This dude is a legend or what ??? ! His calmness , calms my soul! .,.. *Cries* !! Keep it up Bari Bhai
@priscillabenedetti4182
@priscillabenedetti4182 3 жыл бұрын
This is the clearest explanation of the knapsack problem I've ever found online, thank you sir!
@sanemind5712
@sanemind5712 2 жыл бұрын
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
@UpdateWithAstro
@UpdateWithAstro 5 жыл бұрын
Best channel on KZbin for DAA Stop wasting time on finding others channel just follow this channel
@nuwantattygalle5645
@nuwantattygalle5645 4 жыл бұрын
and this udemy course is also super nice
@vipulahuja2044
@vipulahuja2044 5 жыл бұрын
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
@subhasmitajena1726 Жыл бұрын
Not from computer science background. This video is everything I needed. Thank you from the bottom of my heart.❤
@rishisingh1296
@rishisingh1296 2 жыл бұрын
Why to worry when you have Abdul Bari
@dossexplores
@dossexplores 6 ай бұрын
Dei avanthada periya velaya pathutu poitan 😂😂
@vishalrajal
@vishalrajal 5 ай бұрын
​@@dossexploresyean enna achu
@sharath8309
@sharath8309 Ай бұрын
​@@dossexploresExam thapa agidutcha bro
@rahmatsheikh2909
@rahmatsheikh2909 20 күн бұрын
No need to magaj Mari when you have Abdul Bari
@sharath8309
@sharath8309 9 күн бұрын
​@@vishalrajalunaku edhathu thapa aghidutcha bro
@hjklmn9526
@hjklmn9526 3 жыл бұрын
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..
@shubhamdalvi9347
@shubhamdalvi9347 4 жыл бұрын
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.
@haidershahid371
@haidershahid371 3 жыл бұрын
Amazing sir. I simply love it when you release an "Acha" During your lecture
@hmm7458
@hmm7458 3 жыл бұрын
haha.. can't hold his Indian back for long
@ritikraj.18
@ritikraj.18 6 жыл бұрын
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 🙏🙏
@TheyHurry
@TheyHurry 4 жыл бұрын
You are probably one of the best instructors I've ever come across
@engineerhiteshahuja
@engineerhiteshahuja 4 жыл бұрын
I wish we had such great material during our college days. Huge thanks to you!! Keep rocking.
@israelamamba9524
@israelamamba9524 3 жыл бұрын
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
@gourabchanda6427
@gourabchanda6427 2 жыл бұрын
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
@alexwhitewood6480 Жыл бұрын
Love the explanation! Can you elaborate what is meant by TC, TLE and SC?
@gourabchanda6427
@gourabchanda6427 Жыл бұрын
@@alexwhitewood6480 TC : Time complexity TLE: Time limit Exceeded SC: Space complexity
@subhalakshmithulasidas5699
@subhalakshmithulasidas5699 4 жыл бұрын
Thank you so much sir!!! I passed my DAA exam only with the help of your videos!! Sincere thanks!
@gabrip7
@gabrip7 5 жыл бұрын
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
@_Ojasmahajan
@_Ojasmahajan 15 күн бұрын
Sir your method of teaching is absolutely phenomenal. would have never understood complex topics in DAA without your videos
@bhuvneshmahajan6573
@bhuvneshmahajan6573 6 жыл бұрын
It was easy to understand. I'm grateful to teachers like you for your great way of explaining concepts of C.S.E.
@Sanakhan-ff2jd
@Sanakhan-ff2jd 4 жыл бұрын
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 Жыл бұрын
गुरू ब्रह्मा गुरू विष्णु, गुरु देवो महेश्वरा गुरु साक्षात परब्रह्म, तस्मै श्री गुरुवे नमः 🙏🚩🚩🙏 इम्तिहान में सर्वदा अवल व बेहतर अंक आए 🙏🙏🚩🚩🛕🛕💐💐🪔🪔🌞🌞😊😊🕉️🕉️🕉️🛕🛕🚩🚩🙏🙏🌹🌹🌷🌷⛳⛳😃😃🇮🇳🇮🇳👏👏🦚🦚
@amitkumarchoubey2003
@amitkumarchoubey2003 Жыл бұрын
Great Gurudev Ji 🙏🙏🌹🌹🙏🙏⚽⚽🤗🤗💖💖💯💯🇮🇳🇮🇳⛳⛳🌹🌹🚩🚩🕉️🕉️🛕🛕🌞🌞🌸🌸📚📚🌺🌺🎈🎈🎯🎯💓💓✅✅💯💯🇮🇳🇮🇳🙏🙏
@joyseekerarpit
@joyseekerarpit 6 жыл бұрын
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
@AdamWhitakerWilson
@AdamWhitakerWilson 6 жыл бұрын
Saving my life just in time for finals! Thank You!
@obliteratedcisco4709
@obliteratedcisco4709 3 жыл бұрын
wait u dont think he is ugly tho that was slightly off-putting lol 😅
@sumant9120
@sumant9120 3 жыл бұрын
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)
@varun6480
@varun6480 3 жыл бұрын
My brain got damaged
@swarnaislam8528
@swarnaislam8528 2 жыл бұрын
Thnx
@jaideepsingh7955
@jaideepsingh7955 2 жыл бұрын
why 0/1 knapsack needs a 2d array to memoize whereas house robber needs 1d array ? both are similar problems
@anshgoel2607
@anshgoel2607 2 жыл бұрын
@@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..
@panchalmahidilip9415
@panchalmahidilip9415 2 жыл бұрын
Brain left
@madhavgupta3976
@madhavgupta3976 4 жыл бұрын
Your method is the easiest, which explains the two method. It makes the algorithm easy to understand. Thanks a lot sir.
@53_ananyayadav73
@53_ananyayadav73 6 ай бұрын
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
@Youthstrugglebyshreya
@Youthstrugglebyshreya 5 жыл бұрын
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
@brockobama257 Жыл бұрын
but its 2^n bro
@sagarmistry6210
@sagarmistry6210 2 жыл бұрын
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.
@audreygoveas1239
@audreygoveas1239 5 жыл бұрын
You're the best! You teach in such a way that we understand the concept entirely!
@Axayubale
@Axayubale 5 жыл бұрын
You are not teacher you are god of computer science...hats off u sir
@KingBobXVI
@KingBobXVI 2 жыл бұрын
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).
@fardinalam7290
@fardinalam7290 11 ай бұрын
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
@KingBobXVI
@KingBobXVI 11 ай бұрын
@@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.
@harshitha4886
@harshitha4886 3 жыл бұрын
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.
@star77670
@star77670 2 жыл бұрын
Please reply what if m =30 How many columns should we take ??
@mayurisanjaynikam202
@mayurisanjaynikam202 4 жыл бұрын
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
@neogen23
@neogen23 2 жыл бұрын
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
@michelletan4249
@michelletan4249 2 жыл бұрын
the best professor I ever had, professor Abdul Bari is amazing!
@naveen4421
@naveen4421 2 жыл бұрын
Yup
@ahmetlacin5748
@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.
@michaelkochka7668
@michaelkochka7668 3 жыл бұрын
Love your videos! Just purchased your data structures course on Udemy because you explain things so well.
@praveenakushwaha9221
@praveenakushwaha9221 4 жыл бұрын
Sir, you cleared all confusions. Thanks a ton, You made it very easy to understand.
@tauhidhasan9073
@tauhidhasan9073 5 жыл бұрын
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.nayeemhasanadil5938
@md.nayeemhasanadil5938 5 жыл бұрын
without you sir what would we do. You are the savior of computer engineering students
@siddharthasriramvinjam167
@siddharthasriramvinjam167 5 жыл бұрын
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_madhan
@harish_madhan 2 жыл бұрын
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 ❤
@mohammadyousef2812
@mohammadyousef2812 5 жыл бұрын
i pray Allah award you jannah for this explanation. Thank you so much.
@nohaelhaddad4425
@nohaelhaddad4425 4 жыл бұрын
AMEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEN
@abuzaformohammedaman9205
@abuzaformohammedaman9205 3 жыл бұрын
Right bro
@Jumabuoy
@Jumabuoy 25 күн бұрын
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...
@sankararaoijjada4786
@sankararaoijjada4786 4 жыл бұрын
I will be graduated by watching these videos only rather than listening my faculty lectures ❤
@abuzaformohammedaman9205
@abuzaformohammedaman9205 3 жыл бұрын
Same bro
@AnnaSidor-w8c
@AnnaSidor-w8c Жыл бұрын
you are heaven sent - i got it after watching the first 10 minutes, i love your videos, the are super helpful
@majidzarinkolah
@majidzarinkolah 3 жыл бұрын
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!
@starsky9832
@starsky9832 3 жыл бұрын
Thank you sir, this is the clearest explanation in this topic, the others just blindly apply formula without explanation.
@jhguygih
@jhguygih 4 жыл бұрын
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?
@rishabmallick6
@rishabmallick6 4 жыл бұрын
He has a patreon link in the description of this video
@bhawna1997
@bhawna1997 2 жыл бұрын
Big salute to sir for explaining it so well! Best explanation of tabulation method of knapsack till now on KZbin!
@AbdulMalik999
@AbdulMalik999 3 жыл бұрын
Thank you Mr. Abdul Bari. I am grateful for your lectures.
@harshitm6403
@harshitm6403 4 жыл бұрын
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.
@KevrenBey
@KevrenBey 3 жыл бұрын
king of the algorithms ...thanks from Turkey..
@cynthiachristelle
@cynthiachristelle 2 жыл бұрын
thank you so much!!! i'll make sure I mention your name during my degree acceptance speech
@Bobby-mf6fw
@Bobby-mf6fw 5 жыл бұрын
You make the subject easiest. We are thankful to you sir.
@sogatturlakshmi1245
@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.
@kartikpeddinti487
@kartikpeddinti487 6 жыл бұрын
thanks a Ton for the set method.Great explanation sir.Your video order almost matches with my syllabus.You are my DAA exam saviour
@sripeddada8708
@sripeddada8708 6 жыл бұрын
Hahahaha Even mine😘😘
@tejaswidutsharma6819
@tejaswidutsharma6819 6 жыл бұрын
my too
@hotaru6765
@hotaru6765 6 жыл бұрын
me too....in my case it's ADA subject
@comedyvinesvkb2721
@comedyvinesvkb2721 6 жыл бұрын
Peddinti Kartik cmt Ĺugj
@maheshvangala8472
@maheshvangala8472 6 жыл бұрын
Even mine too
@ARSHABBIR100
@ARSHABBIR100 6 жыл бұрын
sir, I have gone through various videos on this topic but your way of explanation is the best among others. thank you very much
@anything1154
@anything1154 4 ай бұрын
Tomorrow exam 😅
@JPremchand
@JPremchand 8 күн бұрын
Same 😂
@linnhtet001
@linnhtet001 6 жыл бұрын
Best youtube-tutor ever...Thank You very much Sir!! Learnt a lot .
@EXO_and_ENHYPEN_GaveMeBirth
@EXO_and_ENHYPEN_GaveMeBirth 6 жыл бұрын
THE BEST TEACHER EVER !!! VERY WELL EXPLAINED #THANK_YOU_SIR !
@kausikdevanathan192
@kausikdevanathan192 7 ай бұрын
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-zm2jg
@SmitaWagh-zm2jg 17 күн бұрын
15:40 direct formula
@rawdreen
@rawdreen 6 жыл бұрын
Thank you! Today we have a Final exam and your lecture is very well explained!
@prashantkaushik7063
@prashantkaushik7063 5 жыл бұрын
I highly recommend his udemy courses. He is possibly the best Algorithm teacher on the internet. All the complicated things were explained with ease.
@shresthmishra9329
@shresthmishra9329 4 жыл бұрын
is there any difference in the videos available on youtube and the videos on udemy course?
@ravigupta4252
@ravigupta4252 4 жыл бұрын
It means you guys don't know about Ravindra babu Sir
@microsoftiitm1537
@microsoftiitm1537 4 жыл бұрын
@@ravigupta4252 chutiya he voo
@dhruvgovani2105
@dhruvgovani2105 6 жыл бұрын
You are saving lives of so much engineers sir , keep doing..
@asrorbekorzikulov1764
@asrorbekorzikulov1764 4 жыл бұрын
Thank you, Sir, so much. Today, I performed very well in my Algorithms exam only because of you. You are the best instructor ever 👍.
@marinietao7352
@marinietao7352 4 жыл бұрын
++
@venky3867
@venky3867 3 жыл бұрын
- -
@gourav1163
@gourav1163 3 жыл бұрын
* *
@fredflintstone7924
@fredflintstone7924 Жыл бұрын
You explain it in such a clear and simple way, finally i understand it, thank you very much!
@sanilasabu5864
@sanilasabu5864 5 жыл бұрын
Thank you for this amazing lecture sir.. Wonderful explanation. Clear.
@harshraj22_
@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 .
@_outcyrptolist
@_outcyrptolist 5 жыл бұрын
Assalamualikum Sir ! Your videos are precise and to the point ! Provides decent understanding of the topic ! No words to thank you .
@Shantisingh-tz5sr
@Shantisingh-tz5sr Жыл бұрын
You are God Of Algorithms sir...Take my Humble Regard🙏🙏🙏🙏🙏🙏🙏🙏🙏
@samaypashine
@samaypashine 5 жыл бұрын
It is best explanation video of knapsack. Thank you sir!!
@theog6494
@theog6494 3 жыл бұрын
you have a very soothing voice. I was stressing about this, but now it both makes sense and I have been calmed
@beautyandbytes_24
@beautyandbytes_24 2 жыл бұрын
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.
@savirc84
@savirc84 2 жыл бұрын
His course available on Udemy
@MichaelJohnson-Moonlight
@MichaelJohnson-Moonlight 8 ай бұрын
It was easy to understand. Thank you, professor.😎
@hiteshbitscs
@hiteshbitscs 5 жыл бұрын
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
@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_mia
@the_mia_mia 5 жыл бұрын
Wow, thank you so much, I've been struggling with this and you explained it so nicely!! Excellent job!!
@kavithapriyacj4868
@kavithapriyacj4868 4 жыл бұрын
Best and simple method sir.. thanks alot..the everess time consuming short and crisp method.. hatsofff sir 🙏🙏🙏
@affafa100
@affafa100 3 жыл бұрын
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.
@samhita2917
@samhita2917 3 жыл бұрын
Hey, we do that formula just at last row right..??
@affafa100
@affafa100 3 жыл бұрын
@@samhita2917 Yes.
@saisilpabijjala7046
@saisilpabijjala7046 2 жыл бұрын
Living God of data structures and algorithms...thanks a ton sir 😇
@PTM1008
@PTM1008 5 жыл бұрын
So much efforts have been put in. Thank you so much for such great explanation and content! Pace of explanation is excellent!
@shrimp8594
@shrimp8594 3 жыл бұрын
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.
@TsuharesuLuciel
@TsuharesuLuciel 5 жыл бұрын
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
@scrycrystals2129 Жыл бұрын
Thank you so much, never felt this good while taking a lecture ❤
4.5.1 0/1 Knapsack Problem (Program) - Dynamic Programming
17:00
Abdul Bari
Рет қаралды 590 М.
3.1 Knapsack Problem - Greedy Method
15:30
Abdul Bari
Рет қаралды 2,4 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 140 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,6 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 588 М.
4.7 Traveling Salesperson Problem - Dynamic Programming
15:25
Abdul Bari
Рет қаралды 1,6 МЛН
0/1 knapsack problem-Dynamic Programming | Data structures and algorithms
27:31
Jenny's Lectures CS IT
Рет қаралды 1,3 МЛН
7.2 0/1 Knapsack using Branch and Bound
10:48
Abdul Bari
Рет қаралды 1,3 МЛН
Emotional and shocking ending to World Chess Championship 2024
7:22
Daily Dose of Chess Clips
Рет қаралды 2,9 МЛН
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
4.2 All Pairs Shortest Path (Floyd-Warshall) - Dynamic Programming
14:13
3.5 Prims and Kruskals Algorithms - Greedy Method
20:12
Abdul Bari
Рет қаралды 2,9 МЛН
3.6 Dijkstra Algorithm - Single Source Shortest Path - Greedy Method
18:35
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 140 МЛН