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

Поделиться
HTML-код
  • Опубликовано: 26 дек 2024

Комментарии • 761

  • @furkanozbudak4440
    @furkanozbudak4440 4 года назад +254

    Your explanation is the best compared to 3 other higher-quality teachers I watched on 0-1 knapsack problems.

  • @permmy
    @permmy Год назад +14

    The second day researching on how to tabulate this problem and I've found the solution here. Well explained! 👏👏👏

    • @Rohitc45-q4f
      @Rohitc45-q4f 21 день назад

      You completed engineering ❤❤

  • @Priya_happyface
    @Priya_happyface 4 года назад +2

    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 4 года назад

      did u undrstnt the concpt if yes....can u tell me, is it necessary to sort the weight array?????

  • @fastwork1396
    @fastwork1396 5 лет назад +89

    We want more videos on DAA .....well explained and you have make this topics easier for us.
    Thank you

  • @username_0_0
    @username_0_0 3 года назад +4

    I have watched several videos on this knapsack problem however I couldn't understand well until I watch your thoroughly explained video.

  • @subhamsinharoy7302
    @subhamsinharoy7302 4 дня назад

    After wasting 2.5 hr i came on this video and clear all the doughts...... thank you ma'am.....❤

  • @rohithrr7079
    @rohithrr7079 Год назад +7

    i lost hope on the exam but this particular video boosted me like anything!!! thank you!!

  • @sushanthraju3215
    @sushanthraju3215 4 года назад +45

    ma'am u just saved my day, tomorrow is my exam.

  • @zubairkhan72762
    @zubairkhan72762 5 лет назад +63

    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.

  • @aatifnazar1766
    @aatifnazar1766 4 года назад +14

    Coming here after watching 2-3 videos and no one does it better than Jenny mam. Rock on ma'am!

  • @deveshdubey6776
    @deveshdubey6776 3 года назад +264

    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 3 года назад +11

      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 года назад +1

      Follow books for understanding the full proof and the formal algorithm.

    • @scuba485
      @scuba485 2 года назад +4

      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 2 года назад +5

      ​@@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 Год назад +1

      Try watching from take u forward, he teaches coding along too

  • @kamleshnaik1290
    @kamleshnaik1290 4 года назад +217

    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😊

  • @AhmedMostafa-so2jp
    @AhmedMostafa-so2jp 3 года назад +2

    this is by far the best explanation to the knapsack problem ever! thank you for uploading

  • @harshpanwar1550
    @harshpanwar1550 3 года назад +1

    Thank u so much Ma'am😭😭😭😭🙏🙏🙏🙏. Aapke explanations amrit ki tarah hai.🙏

  • @Morimove
    @Morimove Год назад +5

    As a seller who has only 8kg bag at shop
    This video is very helpful ☺️👍

  • @indianguide259
    @indianguide259 4 года назад +15

    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.

  • @raghavchandel1835
    @raghavchandel1835 2 года назад +34

    After searching many videos I have find the simplest and easiest way 👍🏻
    Thanks mam ✨

  • @sachalraja1054
    @sachalraja1054 3 года назад +24

    imagine having ma'am jenny and sir. varun singla as teachers at the same university.....all students will be toppers :)

  • @rd_HIND
    @rd_HIND 3 года назад +12

    Good teachers need to be valued. Subscribed ✅

  • @devendrawangikar2890
    @devendrawangikar2890 5 лет назад +6

    The explanation is good, You do actually solve the problem completely.
    Correction: We don't need to sort the weight array.

    • @devendrawangikar2890
      @devendrawangikar2890 5 лет назад

      public void ZeroOrOneSolution(int profit[], int weights[], int sackCapacity){
      int K[][] = new int[profit.length+1][sackCapacity+1];
      for(int i=0; i

  • @thefuntech2810
    @thefuntech2810 5 лет назад +3

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

  • @rze_rash
    @rze_rash 2 месяца назад +1

    really u are best teacher if compare to many teacher in yt 🥰💓💓💓💓💓💓

  • @sadbinshakil1955
    @sadbinshakil1955 5 лет назад +10

    Its just amazing. So much love and respect from Bangladesh

  • @rockysingh5578
    @rockysingh5578 5 лет назад +4

    Cleared my doubts on 0/1 knapsack. Thank you so much

  • @nureyna629
    @nureyna629 5 лет назад +3

    I have watched many videos about knapsack problem, and now I declare that this is the best of them. Thank you very much for sharing 👏

  • @zantramte3515
    @zantramte3515 6 месяцев назад

    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!

  • @a.m.4154
    @a.m.4154 5 месяцев назад

    Jenny comes out on top for this one. Strangely, this is the best explained/understood video on this topic.

  • @safeerahmedx
    @safeerahmedx 4 месяца назад

    After watching so many videos , she explained it very well.

  • @saradhamani7294
    @saradhamani7294 3 года назад +9

    I'm a Mechanical Engineer and I know the basics of C. Though I'm a Mechanical engineer your videos are easy to understand and awesome. Thank you mam!

  • @mehtabhabib
    @mehtabhabib 4 года назад +26

    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 года назад +1

      can you explain this?

    • @ers-br
      @ers-br 2 года назад

      Thanks... I was implementing here and the matrix was not the same... I was getting mad :)

    • @elikanest6027
      @elikanest6027 2 года назад +2

      she sait it should be ascending order by weights

    • @blackpanther801
      @blackpanther801 Год назад

      she took w in ascending order

  • @abhaydwivedi6354
    @abhaydwivedi6354 5 лет назад +1

    best explanation of 0/1 knapsack problem in youtube

    • @JennyslecturesCSIT
      @JennyslecturesCSIT  5 лет назад +3

      Thanks a lot for sharing your views in such wonderful words 😊😊

  • @rohandevaki4349
    @rohandevaki4349 3 года назад +5

    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

  • @ganeshsharma6326
    @ganeshsharma6326 5 лет назад +48

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

  • @AayushLad-xb5qv
    @AayushLad-xb5qv 10 дней назад +1

    Half of my confusion, which is due to my clg professor, was gone in the first minute as you described the whole purpose of the concept.

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

  • @ashishrohit-jy7np
    @ashishrohit-jy7np 5 месяцев назад

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

  • @sarojcs3535
    @sarojcs3535 3 года назад +14

    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.

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

  • @hrushikeshmandekar6572
    @hrushikeshmandekar6572 4 года назад +1

    आपका बहुत बहुत धन्यावाद 🙏
    आपकी मदत से ही हम ये सीख पाए👍
    आपने बहुत ही अच्छे तरीके से बाते रखकर समझाया हे इसीलिए आपका फिरसे धन्यवाद 🙏
    esse he gyan प्रसारित करते रहिए, Bhagvan apka bhala kare 🙏

  • @abhishek_kumarvelloreinsti1866
    @abhishek_kumarvelloreinsti1866 4 года назад

    Those eyes ,,,,make sure I can concentrate on the topics goodly....you are such a fantabulous teacher😊🤗

  • @oshoconner4003
    @oshoconner4003 2 года назад +2

    U took perfect example for delivering concept it cover every loophole...❤❤

    • @anantmouraya8113
      @anantmouraya8113 2 года назад

      Bro what is your age
      I am 20 bca 2year
      Learning dp ..does i am late

    • @girishbhargava6367
      @girishbhargava6367 2 года назад

      @@anantmouraya8113 No you are not, all the best.

  • @lakshya.feel2207
    @lakshya.feel2207 11 месяцев назад

    saw 2 other RUclips videos and yours is the easiest and best.

  • @chudamaniadhikari6744
    @chudamaniadhikari6744 5 лет назад +9

    wow finally after many lectures of others here i understand everything

  • @d.singhadda1605
    @d.singhadda1605 2 года назад +2

    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

  • @UrsMadhuVlogs
    @UrsMadhuVlogs Год назад +1

    Thank you...Thank you...emcheppagalam inthakanna....
    there is no machines...&No formulas to calculate the wait of your knowledge..maam...your are an absolutely A God made..milestone...for me...
    Every before day of my exams...
    You are the one & only hope to me....maaam.....we sending the lots of love from me and my friends...for you maaam....finally...we simply...saying with....most weighted hearts 💖 just one word...We are really thankful to you 😘 maaam....
    Thank you for teaching every concept about data structures....Java...c...c++...what ever you said.... U r like the heaven to every pass aspirants...from the present b.tch students like me.....
    💖thank you...maaaam💖from AP...STUDENTS🙏

  • @jashmehta3536
    @jashmehta3536 3 года назад +4

    This explanation can't be more precise and easy to understand this ma'am ! Kudos to you!

  • @narayanadhurti1603
    @narayanadhurti1603 3 года назад

    Very Useful for people who are appearing for Interviews.

  • @kunalgoswami2495
    @kunalgoswami2495 2 года назад

    only u have made me explained mam. great respect ... everyone is talking shit. Either they are making memoization tabel or they are explaining code.

  • @adarshgupta9272
    @adarshgupta9272 5 лет назад +3

    best lecture for algos on youtube

  • @khanf13
    @khanf13 3 года назад +1

    Hands down Jenny is the best CS teacher on RUclips, watched many videos but only your explaination is going in my head!

  • @annepuvijay3743
    @annepuvijay3743 2 года назад +4

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

  • @ritickmadaan
    @ritickmadaan 3 года назад +6

    Glad that I chose this video to understand the concept, nicely explained👌

  • @saptarshidas979
    @saptarshidas979 5 лет назад +7

    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 Год назад

      what are you doing currently?

  • @sachin1738
    @sachin1738 4 года назад

    Mam This Is One Of The Best Explanation Available Of 0/1 Knapsack Problem Available On RUclips. Thank You!

  • @parvezahmed4u
    @parvezahmed4u 3 года назад +1

    RUclips to Me :- Wake Up Early In The Morning And Do On Thing Learn Something From This Teacher #HighlyRecommended ♥️
    Me To RUclips :- Yes Sir..🌹

  • @karupallyphanikumar3122
    @karupallyphanikumar3122 3 года назад +2

    Understanding slowly but it's clearly understood 😇👌

  • @o__bean__o
    @o__bean__o 3 месяца назад

    It was a wonderful explanation ❤ it can be easily grasped by the people. Thank you for your great effort. Do more videos like this.

  • @ritumishra4303
    @ritumishra4303 3 года назад

    Waah bete wah
    Wah bete moz kardi...
    Tum to bade heavy driver ho

  • @duobrother913
    @duobrother913 Год назад

    Deep knowledge makes humans incredible 🙂

  • @saieedkaiser6966
    @saieedkaiser6966 2 года назад +1

    Thankyou so much mam ,the way u explain every point bit by bit in detail is simply brilliant.

  • @legend7890
    @legend7890 4 года назад +3

    You explained it in a very clear way than my professor. Thank you very much😊

  • @funny_Army007
    @funny_Army007 4 года назад +1

    Mam I am your big fan. After watching your lectures .thank you so much mam.what a explanation.amazing mam🙏

  • @aemanmustafa7296
    @aemanmustafa7296 11 месяцев назад

    Thank you Mam.....Your explanation is full deeply and your teaching way mind blowing....thanks love you mam

  • @srinivaskari
    @srinivaskari 5 месяцев назад

    Very well explained. I understood the concept fully and clearly.

  • @shashankshekhar1208
    @shashankshekhar1208 4 года назад +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 ♥️♥️

  • @sanjanams9676
    @sanjanams9676 4 года назад +1

    Madam you are wonderful your teaching is awesome

  • @shoaibrajput2664
    @shoaibrajput2664 3 года назад

    thanks Mam assignment solve hu gai. I don't know where u from India or Pakistan but respect from humanity.

  • @abdurrehmanansari2005
    @abdurrehmanansari2005 2 года назад +3

    27:14
    there is an mistake it's (1 0 1 0 ).
    you can cross verify if we are considering the object ( 1 0 0 1 ) its exeeds the knapsack capacity.

  • @reliablerupak6906
    @reliablerupak6906 4 года назад +6

    Jenny mam ,Iam learning alot in DS and DAA from your lectures.
    Thanks alot to you for your great work on providing best way.
    I found 0/1 knapsack problem please look that we would have xi={1, 0,1,0} you have written there xi={1,0,0,1} .

    • @sowjanya79
      @sowjanya79 2 года назад

      She checked the set given in the question

    • @FarmanOfficial777
      @FarmanOfficial777 2 года назад +1

      This is what for i was exploring comments thanks man

    • @AnuragKharade
      @AnuragKharade 10 месяцев назад

      Yes u r correct bro

  • @SivatejaMattaparthi
    @SivatejaMattaparthi Месяц назад

    Thank you very much respected madam, I watched a lot of videos and I was very nervous as I could not understand any other video but your explanation was pretty good, thanking you once again.

  • @AkashRai-by5qp
    @AkashRai-by5qp 2 года назад

    your way of teaching is awesome ma'am😄😄

  • @dheerajnemalikanti3703
    @dheerajnemalikanti3703 5 лет назад +1

    Didi this is the best video on knapsack problem. Keep posting more videos didi.

  • @praveenthakur6402
    @praveenthakur6402 5 лет назад +4

    Thanks for such a great lecture, the best explanation of the 0-1 Knapsack problem. Please start posting the algorithm also.

  • @rahulranjan6671
    @rahulranjan6671 4 года назад

    your teaching style is the best one...,and u r so quite

  • @sampathabhishek3826
    @sampathabhishek3826 11 месяцев назад

    I am really very happy i got to understand much better.Thank you so much for sharing such an amzing content.

  • @ayushgoyal1921
    @ayushgoyal1921 4 года назад +1

    Amazingly explained. This is so good. All The Best.

  • @luizdupont8791
    @luizdupont8791 4 года назад +1

    Thank you for your hard work by making educational videos. I always recommend my friends to watch your video

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

  • @anhhaopham7919
    @anhhaopham7919 3 года назад

    thank you so much, I watched a lot of videos about this problem, but this is the best !!!

  • @Mca_Abbay
    @Mca_Abbay Год назад

    i never forget that cute smile while saying till then bye bye . at the end of every video..😘

  • @vishalchauhan9832
    @vishalchauhan9832 5 лет назад +3

    Thank you SO much dear mam.. Your explanation is too good.. 🙂

  • @seemabkarim8674
    @seemabkarim8674 Год назад

    overall your videos are very nice and your way of teaching is amazing , you are my best teacher

  • @SunilKumar-yq2bz
    @SunilKumar-yq2bz 4 года назад +3

    Mam , Your voice is sooooooo, sweet .. I want to learn forever . Every time a new thing .

  • @Nehavlogs7678
    @Nehavlogs7678 3 года назад

    Thanks for your help 😘😘😘😘
    Your way of teaching is excellent...

  • @SunilRathod-d9r
    @SunilRathod-d9r 8 месяцев назад

    thanks for dropping such helpful videos, ma'am.

  • @mostwantedmusicc
    @mostwantedmusicc 2 года назад

    this is the best video for this problem !!! very good video !!!🤩

  • @devlooper2727
    @devlooper2727 3 года назад

    Thanks you 😊tomorrow is my exam this helps me alot👍👌

  • @afifafathima9042
    @afifafathima9042 Месяц назад

    Wonderful explanation ✨

  • @noufalbalwi173
    @noufalbalwi173 2 года назад

    Thank you so much it was the easiest way to do it with more sense. I LOVE YOU 🥺🥺🥺

  • @MR.TAMILNADU-y8c
    @MR.TAMILNADU-y8c 9 месяцев назад

    great explanation mam..... and clear understanding is there in ur teaching......

  • @zn4798
    @zn4798 4 года назад +1

    Hope you can publish more video! So helpful and best video!

  • @ahalyapotti9905
    @ahalyapotti9905 4 года назад

    I watched other videos to understand this problem but couldn't, but you explained so well ,, thank you ...🙂

  • @ayushmohanty9178
    @ayushmohanty9178 Месяц назад +4

    Ma'am, please create a proper playlist of DAA.

  • @azharmahmo0d
    @azharmahmo0d 4 года назад

    I'm in love
    with your teaching

  • @sachinrana3359
    @sachinrana3359 5 лет назад

    You are goddess Ma'am...
    just like musibatt me log bhagwan ko yaad krte h...
    ase he hum students Exam me aapko yaad krte hai...
    today is my exam of DAA...

  • @harshvardhan_singh1130
    @harshvardhan_singh1130 11 месяцев назад

    Mam ur explanation is better in English rather than English 😊😊

  • @Smile-si8xv
    @Smile-si8xv 6 месяцев назад +1

    You are the best you know 🥰

  • @ShrutiSheth-fs5et
    @ShrutiSheth-fs5et 3 года назад

    You are teaching very clearly thank you so much

  • @wasit-shafi
    @wasit-shafi 5 лет назад +1

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

  • @gaaraofddarkness
    @gaaraofddarkness 4 года назад +1

    Thank you jenny maam... very nice teaching 😃