0/1 knapsack problem-Dynamic Programming | Data structures and algorithms

  Рет қаралды 1,177,255

Jenny's Lectures CS IT

Jenny's Lectures CS IT

5 жыл бұрын

In this video, I have explained 0/1 knapsack problem with dynamic programming approach.
Given a bag of a certain capacity, W. Given some items with their weights and profit(values). How do you fill this bag so that you get the maximum profit?
See Complete Playlists:
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Dynamic Programming: • Dynamic Programming
Operating Systems: // • Operating Systems
DBMS: • DBMS (Database Managem...
Connect & Contact Me:
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba

Пікірлер: 690
@furkanozbudak4440
@furkanozbudak4440 4 жыл бұрын
Your explanation is the best compared to 3 other higher-quality teachers I watched on 0-1 knapsack problems.
@sanketkoli2958
@sanketkoli2958 Жыл бұрын
​@@ay9523 his explanation with solving seems difficult came to Jenny Mam understand successfully
@amancollege9064
@amancollege9064 6 ай бұрын
same
@lakshya.feel2207
@lakshya.feel2207 5 ай бұрын
true
@gamerzvilla8217
@gamerzvilla8217 Ай бұрын
Yes , absolutely right 👍🏻▶️
@DunkMuvhimi
@DunkMuvhimi 21 күн бұрын
true!
@fastwork1396
@fastwork1396 4 жыл бұрын
We want more videos on DAA .....well explained and you have make this topics easier for us. Thank you
@kamleshnaik1290
@kamleshnaik1290 3 жыл бұрын
I don't know this happens with me or every one .... The same concept thought by other teachers on youtube is not understanding... But when ma'am teaching the concept it is perfectly understood 😂😂😂😂 Thank you ma'am😊
@parastewari5697
@parastewari5697 3 жыл бұрын
I feel the same....
@harshpatel3989
@harshpatel3989 3 жыл бұрын
Now that is called attention😂😂
@rehankarol7453
@rehankarol7453 3 жыл бұрын
Jenny mam is awesome
@kamleshnaik1290
@kamleshnaik1290 3 жыл бұрын
@@rehankarol7453 😂😂
@davidjonson303
@davidjonson303 3 жыл бұрын
Wahh betai tu toh moz kar diya Line maar rahe ho...😂😜
@permmy
@permmy Жыл бұрын
The second day researching on how to tabulate this problem and I've found the solution here. Well explained! 👏👏👏
@indianguide259
@indianguide259 3 жыл бұрын
Brilliant lecture. You explained exactly in the same way how 0-1 Knapsack algorithm formulated. I am able to relate the complete formula. Helped me to avoid my phobia for DP.
@rockysingh5578
@rockysingh5578 4 жыл бұрын
Cleared my doubts on 0/1 knapsack. Thank you so much
@rohandevaki4349
@rohandevaki4349 2 жыл бұрын
your explaination and tricks are just awesome, that is why people come to learn these lectures from youtube even though they learn from their Universities
@username_0_0
@username_0_0 3 жыл бұрын
I have watched several videos on this knapsack problem however I couldn't understand well until I watch your thoroughly explained video.
@sarojcs3535
@sarojcs3535 2 жыл бұрын
Wow Ma'am. You are best explaining these complex theories in so simpler manner with detailed explanation that gives us in-depth knowledge with complete understanding of the concepts.
@ritickmadaan
@ritickmadaan 3 жыл бұрын
Glad that I chose this video to understand the concept, nicely explained👌
@jashmehta3536
@jashmehta3536 3 жыл бұрын
This explanation can't be more precise and easy to understand this ma'am ! Kudos to you!
@legend7890
@legend7890 4 жыл бұрын
You explained it in a very clear way than my professor. Thank you very much😊
@ashishrohit-jy7np
@ashishrohit-jy7np Күн бұрын
i was watching the knapsack 0/1 problem on the other different tutorial for last 1.30 hours but i can't understood, when I saw this video i understood easily each step. thank you so much ma'am . 😍😍
@zubairkhan72762
@zubairkhan72762 5 жыл бұрын
Thank you so much ma'am, This is the best explanation of 0-1 Knapsack problem on youtube. This video cleared all of my doubts, Keep posting these videos.
@rohithrr7079
@rohithrr7079 9 ай бұрын
i lost hope on the exam but this particular video boosted me like anything!!! thank you!!
@praveenthakur6402
@praveenthakur6402 5 жыл бұрын
Thanks for such a great lecture, the best explanation of the 0-1 Knapsack problem. Please start posting the algorithm also.
@luizdupont8791
@luizdupont8791 3 жыл бұрын
Thank you for your hard work by making educational videos. I always recommend my friends to watch your video
@deveshdubey6776
@deveshdubey6776 3 жыл бұрын
i understand the concept but in the end i never get the intution behind these logic..its more or less mugging up the process like what we have to do next..don't know about the other but if there is another problem same or little bit different from this i need to again check up the solution. btw thanks mam for explaining the process
@technicalspider2547
@technicalspider2547 2 жыл бұрын
I am a seller who has a bag which can contain 10 kg weight so in order to maxmize my profite I am selecting those items in those ratio
@ddmasterdon
@ddmasterdon 2 жыл бұрын
Follow books for understanding the full proof and the formal algorithm.
@scuba485
@scuba485 Жыл бұрын
She has explained well enough.not sure what you can't understand. For every cell it's a choice between picking that or not picking that and comparing the profits
@deveshdubey6776
@deveshdubey6776 Жыл бұрын
​@@scuba485 bro it was a year-old comment and explaining the intuition behind the pick and nonpick and how u arrive at it is what I want to know at that time... solving 10 questions on 2d dp anyone can get the process in their head, from a beginner pov arriving at logic is the toughest part and that is the thing I expect in the video that I didn't get that's why commented it.
@bhagatalisha
@bhagatalisha Жыл бұрын
Try watching from take u forward, he teaches coding along too
@rd_HIND
@rd_HIND 2 жыл бұрын
Good teachers need to be valued. Subscribed ✅
@anshulvairagade1604
@anshulvairagade1604 3 жыл бұрын
This is the best explanation of 0/1 knapsack problem on the internet. You are the best mam, thank you for working so hard for us.
@sadbinshakil1955
@sadbinshakil1955 5 жыл бұрын
Its just amazing. So much love and respect from Bangladesh
@ayushgoyal1921
@ayushgoyal1921 3 жыл бұрын
Amazingly explained. This is so good. All The Best.
@PulakMehta
@PulakMehta 3 жыл бұрын
Such an amazing video explaining the topic. Thank you so much. Watching it one night before my exam. Very helpful..
@shalomp2410
@shalomp2410 4 жыл бұрын
i just wanna say that u r the best person in the internet to explain all these topics u r da best
@nintichance9449
@nintichance9449 4 жыл бұрын
Yay! I watched two other videos (that were also very helpful in laying the grand work for me to understand), but after watching this one, IT CLICKED!!! Thank you so much :))))
@mehtabhabib
@mehtabhabib 3 жыл бұрын
Awesome tutorial, very detailed explanation: a slight correction in P and W at top of table... P={2,3,4,1} and W={2,3,5,6} the values at index 2 and 3 is swapped for both P and W...
@Mithu499
@Mithu499 2 жыл бұрын
correct bro
@dishantzaveri6017
@dishantzaveri6017 2 жыл бұрын
can you explain this?
@ers-br
@ers-br Жыл бұрын
Thanks... I was implementing here and the matrix was not the same... I was getting mad :)
@elikanest6027
@elikanest6027 Жыл бұрын
she sait it should be ascending order by weights
@blackpanther801
@blackpanther801 Жыл бұрын
she took w in ascending order
@annepuvijay3743
@annepuvijay3743 2 жыл бұрын
Thank you, I could recall the problem implementation with your explanation... Small correction if u can consider is..The formula given to fill the cells will not work for the cells in initial columns where that row's weight is less than that column's weight. Try applying the formula to the cells where we have 0s filled. In that cases, we can copy the values from above rows which ofcourse u have covered in explanation... Thank you...
@hrushikeshmandekar6572
@hrushikeshmandekar6572 4 жыл бұрын
आपका बहुत बहुत धन्यावाद 🙏 आपकी मदत से ही हम ये सीख पाए👍 आपने बहुत ही अच्छे तरीके से बाते रखकर समझाया हे इसीलिए आपका फिरसे धन्यवाद 🙏 esse he gyan प्रसारित करते रहिए, Bhagvan apka bhala kare 🙏
@zantramte3515
@zantramte3515 26 күн бұрын
I have exam, so i was looking for a perfect video where someone explains 0/1 knapscak. And i finally found it. Thank you so much, you helped me a lot!
@sachin1738
@sachin1738 4 жыл бұрын
Mam This Is One Of The Best Explanation Available Of 0/1 Knapsack Problem Available On KZbin. Thank You!
@raghavchandel1835
@raghavchandel1835 2 жыл бұрын
After searching many videos I have find the simplest and easiest way 👍🏻 Thanks mam ✨
@kiranc9955
@kiranc9955 4 жыл бұрын
Thank you very much madam I always had a lot of doubts and afraid of doing knapsack problems now I am very happy and able to solve many problems on this model.
@ahalyapotti9905
@ahalyapotti9905 3 жыл бұрын
I watched other videos to understand this problem but couldn't, but you explained so well ,, thank you ...🙂
@sujoyseal195
@sujoyseal195 4 жыл бұрын
Thank you very much. Simple,short ,concise ....
@anhhaopham7919
@anhhaopham7919 3 жыл бұрын
thank you so much, I watched a lot of videos about this problem, but this is the best !!!
@sushanthraju3215
@sushanthraju3215 4 жыл бұрын
ma'am u just saved my day, tomorrow is my exam.
@nehagowd327
@nehagowd327 Жыл бұрын
Same here 😂
@reelscompilations2064
@reelscompilations2064 Жыл бұрын
Kottaya sappu
@ganeshsharma6326
@ganeshsharma6326 5 жыл бұрын
Just wow ...the best possible way u teach❤ ....I sometimes just think how good teacher u r and on the other side same age girl doing shit over tick tocks.😂
@JennyslecturesCSIT
@JennyslecturesCSIT 5 жыл бұрын
I am just trying to give my best. 😊
@ganeshsharma6326
@ganeshsharma6326 5 жыл бұрын
@@JennyslecturesCSIT that is why people like u the most.✌😊
@JennyslecturesCSIT
@JennyslecturesCSIT 5 жыл бұрын
😊
@EntertainmentVEVOrock
@EntertainmentVEVOrock 4 жыл бұрын
Right...
@srinivaskari
@srinivaskari 3 күн бұрын
Very well explained. I understood the concept fully and clearly.
@UCOSIRFAN
@UCOSIRFAN 4 жыл бұрын
Thank you so much ma`am,this is the best explanation of 0-1 knapsack problem
@dhananajaysawant3818
@dhananajaysawant3818 4 жыл бұрын
Thank you mam through your solution all my doubts are cleared.
@sampathabhishek3826
@sampathabhishek3826 5 ай бұрын
I am really very happy i got to understand much better.Thank you so much for sharing such an amzing content.
@sachalraja1054
@sachalraja1054 2 жыл бұрын
imagine having ma'am jenny and sir. varun singla as teachers at the same university.....all students will be toppers :)
@user-ql4nt3te6r
@user-ql4nt3te6r 2 ай бұрын
thanks for dropping such helpful videos, ma'am.
@narayanadhurti1603
@narayanadhurti1603 2 жыл бұрын
Very Useful for people who are appearing for Interviews.
@charanbhavisetti2194
@charanbhavisetti2194 4 жыл бұрын
Awesome explaination, in every method Thank you.😊
@shashankshekhar1208
@shashankshekhar1208 4 жыл бұрын
Your are the only one who make me pass my exams... I love your teaching. You are the best teacher from which i ever studied. I wish God will meet us anywhere so that i can say thank you to you for all the knowledge that you provided without asking for any money ♥️♥️
@chemistchemist6838
@chemistchemist6838 4 жыл бұрын
Thankyou soo much ma'am.. you cleared all my doubt and confusion..
@AhmedMostafa-so2jp
@AhmedMostafa-so2jp 3 жыл бұрын
this is by far the best explanation to the knapsack problem ever! thank you for uploading
@parulsaini8926
@parulsaini8926 3 жыл бұрын
Superb
@r-o-r-ius9006
@r-o-r-ius9006 3 жыл бұрын
Simp, gate smashers>>
@seemabkarim8674
@seemabkarim8674 Жыл бұрын
overall your videos are very nice and your way of teaching is amazing , you are my best teacher
@aminuolawale1843
@aminuolawale1843 3 жыл бұрын
You are a great teacher!
@Morimove
@Morimove Жыл бұрын
As a seller who has only 8kg bag at shop This video is very helpful ☺️👍
@karupallyphanikumar3122
@karupallyphanikumar3122 2 жыл бұрын
Understanding slowly but it's clearly understood 😇👌
@abhishek_kumarvelloreinsti1866
@abhishek_kumarvelloreinsti1866 3 жыл бұрын
Those eyes ,,,,make sure I can concentrate on the topics goodly....you are such a fantabulous teacher😊🤗
@zn4798
@zn4798 3 жыл бұрын
Hope you can publish more video! So helpful and best video!
@aatifnazar1766
@aatifnazar1766 4 жыл бұрын
Coming here after watching 2-3 videos and no one does it better than Jenny mam. Rock on ma'am!
@beginner6519
@beginner6519 Жыл бұрын
same bhai
@uditkumar370
@uditkumar370 5 ай бұрын
Yes bro correct ek dam🥳
@alwaysaditi2001
@alwaysaditi2001 3 жыл бұрын
Very helpful video , thank you so much!
@d.singhadda1605
@d.singhadda1605 Жыл бұрын
Thank you so much ma'am, This is the best explanation of 0-1 Knapsack problem on youtube. This video cleared all of my doubts, Keep posting these videos divyanshu singh
@narendersinghraman3697
@narendersinghraman3697 3 жыл бұрын
your videos are just brilliant!
@ShrutiSheth-fs5et
@ShrutiSheth-fs5et 2 жыл бұрын
You are teaching very clearly thank you so much
@lakshya.feel2207
@lakshya.feel2207 5 ай бұрын
saw 2 other KZbin videos and yours is the easiest and best.
@Quran_the_success
@Quran_the_success 4 жыл бұрын
toughest problem solved in the simplest way!! Thanks mam.
@saptarshidas979
@saptarshidas979 4 жыл бұрын
You are just awesome mam Wish i could have the authority to my college i would have battled with my teachers to bring you in as our algorithm teacher Rock solid teaching technique God bless you MAM tons of love from me to your hardwork Thank you so so so so so much !!!!!
@harsha1670
@harsha1670 7 ай бұрын
what are you doing currently?
@wasit-shafi
@wasit-shafi 4 жыл бұрын
osom...i have watched few video of u N i believe they r one of the best currently on youtube ..plz upload more video on ur channel...
@saieedkaiser6966
@saieedkaiser6966 2 жыл бұрын
Thankyou so much mam ,the way u explain every point bit by bit in detail is simply brilliant.
@samrat4141
@samrat4141 6 ай бұрын
Thank you for the detailed explanation.
@thefuntech2810
@thefuntech2810 4 жыл бұрын
Honestly, I had seen a lot of video of knapsack problem (0/1) .But this video explains my every doubt . I don't want to take your more time to read this comment Overall you explained very well !!!
@vishalchauhan9832
@vishalchauhan9832 4 жыл бұрын
Thank you SO much dear mam.. Your explanation is too good.. 🙂
@chudamaniadhikari6744
@chudamaniadhikari6744 5 жыл бұрын
wow finally after many lectures of others here i understand everything
@adarshgupta9272
@adarshgupta9272 4 жыл бұрын
best lecture for algos on youtube
@gaming_paradox4285
@gaming_paradox4285 5 жыл бұрын
thanx, mam....I just love it ,,,, proper explanation easy to understand .. Thanq so much mam ..
@ademolaakinyemi3743
@ademolaakinyemi3743 3 жыл бұрын
Thank you jenny, this is really helpful
@ansarimohammedanas2876
@ansarimohammedanas2876 Жыл бұрын
Mam thanks a lot for making this video, your teaching method as well as experience is very good.......... 👍🏻👍🏻
@vaibhavpradhan809
@vaibhavpradhan809 3 жыл бұрын
Loved your way of teaching
@anup_narvekar
@anup_narvekar 4 жыл бұрын
Thanks Ma'am, very well explained :)
@ppl_call_me_tima
@ppl_call_me_tima 3 ай бұрын
thank you so much ! great explanation!
@satyamkumar2820
@satyamkumar2820 4 жыл бұрын
I was not getting the formula how it came. But, now it's so easy. Thank you Mam. You are beautiful.
@dheerajnemalikanti3703
@dheerajnemalikanti3703 5 жыл бұрын
Didi this is the best video on knapsack problem. Keep posting more videos didi.
@funny_Army007
@funny_Army007 3 жыл бұрын
Mam I am your big fan. After watching your lectures .thank you so much mam.what a explanation.amazing mam🙏
@AhmAsaduzzaman
@AhmAsaduzzaman 6 ай бұрын
Thanks! Nice explanation, Ms. Jenny
@saikoushik3812
@saikoushik3812 5 жыл бұрын
Great explanation mam. Thank you.
@dheepang224
@dheepang224 3 жыл бұрын
Mam ur explanation is very clear. It's now easy for me to attend this type of problem. Thank you for teaching mam🙏🙏🙏🥰 I'm ur student from Puducherry mam
@aemanmustafa7296
@aemanmustafa7296 5 ай бұрын
Thank you Mam.....Your explanation is full deeply and your teaching way mind blowing....thanks love you mam
@Nehavlogs7678
@Nehavlogs7678 3 жыл бұрын
Thanks for your help 😘😘😘😘 Your way of teaching is excellent...
@AkashRai-by5qp
@AkashRai-by5qp Жыл бұрын
your way of teaching is awesome ma'am😄😄
@GrandTotalGamer
@GrandTotalGamer 5 жыл бұрын
Amazing explanation mam...👌
@mdsaymon2490
@mdsaymon2490 3 жыл бұрын
Thank you so much mam...to explain this topic so much easyly
@noufalbalwi173
@noufalbalwi173 Жыл бұрын
Thank you so much it was the easiest way to do it with more sense. I LOVE YOU 🥺🥺🥺
@adityaperiwal4819
@adityaperiwal4819 4 жыл бұрын
Thank you very much, mam, this video helped me a lot.
@harshpanwar1550
@harshpanwar1550 2 жыл бұрын
Thank u so much Ma'am😭😭😭😭🙏🙏🙏🙏. Aapke explanations amrit ki tarah hai.🙏
@lakshitakhurana5972
@lakshitakhurana5972 2 жыл бұрын
Really Very Good teaching Skills Mam... thankyou so much ♥️😌
@saadmanahmed860
@saadmanahmed860 4 жыл бұрын
fantabulous lecture..
@shatharashiramya5363
@shatharashiramya5363 2 жыл бұрын
Thank you....very pleasant explanation
@kaminishirsath3884
@kaminishirsath3884 Жыл бұрын
Very good explanation mam..Easy to understand..Plz give video for job sequencing with deadlines
@mayanksoni6044
@mayanksoni6044 5 жыл бұрын
Great explanation ma'am. Thank you.
@priyasingh-nm8xo
@priyasingh-nm8xo 4 жыл бұрын
Mam aap jaisa teacher mile to sabka padhai m mn lgega ..aap koi bhi concept ho ekdm ache se clear kr dete ho..thankuu mam
@suniljaiswal2471
@suniljaiswal2471 3 жыл бұрын
did u undrstnt the concpt if yes....can u tell me, is it necessary to sort the weight array?????
@mohitranjan8876
@mohitranjan8876 4 жыл бұрын
Thank you so much maám for such a great explanation. Please make videos on compiler design also
@KM-sf6zy
@KM-sf6zy 4 жыл бұрын
finally I understood. thank you mam
@kanandhikumar
@kanandhikumar 2 жыл бұрын
Thanks for the video mam. Lucid explanation.
@user-mt2pr7cc1z
@user-mt2pr7cc1z 4 ай бұрын
great explanation mam..... and clear understanding is there in ur teaching......
@ivandrofly
@ivandrofly 4 ай бұрын
Best explanation on this topic
Traveling Salesman Problem using Dynamic Programming | DAA
31:33
Jenny's Lectures CS IT
Рет қаралды 525 М.
Василиса наняла личного массажиста 😂 #shorts
00:22
Денис Кукояка
Рет қаралды 9 МЛН
Longest Common Subsequence- Dynamic Programming | Data structures and algorithms
25:47
4.5 0/1 Knapsack - Two Methods - Dynamic Programming
28:24
Abdul Bari
Рет қаралды 2,7 МЛН
0/1 knapsack problem | example| dynamic programming
14:42
Education 4u
Рет қаралды 309 М.
6.13 Dijkstra Algorithm | Single Source Shortest Path| Greedy Method
34:36
Jenny's Lectures CS IT
Рет қаралды 1,4 МЛН
3.4 Huffman Coding - Greedy Method
17:44
Abdul Bari
Рет қаралды 1,5 МЛН