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

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • 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/...
    Instagram: / jayantikhatrilamba

ความคิดเห็น • 725

  • @furkanozbudak4440
    @furkanozbudak4440 4 ปีที่แล้ว +192

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

    • @sanketkoli2958
      @sanketkoli2958 ปีที่แล้ว +13

      ​@@ay9523 his explanation with solving seems difficult came to Jenny Mam understand successfully

    • @amancollege9064
      @amancollege9064 9 หลายเดือนก่อน +1

      same

    • @lakshya.feel2207
      @lakshya.feel2207 8 หลายเดือนก่อน +1

      true

    • @gamerzvilla8217
      @gamerzvilla8217 4 หลายเดือนก่อน +1

      Yes , absolutely right 👍🏻▶️

    • @DunkMuvhimi
      @DunkMuvhimi 3 หลายเดือนก่อน +1

      true!

  • @fastwork1396
    @fastwork1396 5 ปีที่แล้ว +69

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

  • @permmy
    @permmy ปีที่แล้ว +6

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

  • @deveshdubey6776
    @deveshdubey6776 3 ปีที่แล้ว +247

    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 ปีที่แล้ว +12

      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

  • @mehtabhabib
    @mehtabhabib 4 ปีที่แล้ว +23

    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

  • @zubairkhan72762
    @zubairkhan72762 5 ปีที่แล้ว +58

    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 ปีที่แล้ว +7

    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 8 หลายเดือนก่อน

      Yes bro correct ek dam🥳

  • @sushanthraju3215
    @sushanthraju3215 4 ปีที่แล้ว +42

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

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

  • @username_0_0
    @username_0_0 3 ปีที่แล้ว +1

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

  • @kamleshnaik1290
    @kamleshnaik1290 3 ปีที่แล้ว +207

    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 ปีที่แล้ว +4

      I feel the same....

    • @harshpatel3989
      @harshpatel3989 3 ปีที่แล้ว +15

      Now that is called attention😂😂

    • @rehankarol7453
      @rehankarol7453 3 ปีที่แล้ว +1

      Jenny mam is awesome

    • @kamleshnaik1290
      @kamleshnaik1290 3 ปีที่แล้ว +1

      @@rehankarol7453 😂😂

    • @davidjonson303
      @davidjonson303 3 ปีที่แล้ว +5

      Wahh betai tu toh moz kar diya
      Line maar rahe ho...😂😜

  • @raghavchandel1835
    @raghavchandel1835 2 ปีที่แล้ว +34

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

  • @indianguide259
    @indianguide259 4 ปีที่แล้ว +14

    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.

  • @rohithrr7079
    @rohithrr7079 ปีที่แล้ว +4

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

  • @jashmehta3536
    @jashmehta3536 3 ปีที่แล้ว +4

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

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

  • @sachalraja1054
    @sachalraja1054 2 ปีที่แล้ว +16

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

  • @AhmedMostafa-so2jp
    @AhmedMostafa-so2jp 3 ปีที่แล้ว +2

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

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

  • @rd_HIND
    @rd_HIND 2 ปีที่แล้ว +12

    Good teachers need to be valued. Subscribed ✅

  • @ritickmadaan
    @ritickmadaan 3 ปีที่แล้ว +6

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

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

  • @Priya_happyface
    @Priya_happyface 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 4 ปีที่แล้ว

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

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

  • @zantramte3515
    @zantramte3515 4 หลายเดือนก่อน

    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!

  • @Morimove
    @Morimove ปีที่แล้ว +4

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

  • @rockysingh5578
    @rockysingh5578 4 ปีที่แล้ว +3

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

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

  • @sadbinshakil1955
    @sadbinshakil1955 5 ปีที่แล้ว +10

    Its just amazing. So much love and respect from Bangladesh

  • @hrushikeshmandekar6572
    @hrushikeshmandekar6572 4 ปีที่แล้ว +1

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

  • @ashishrohit-jy7np
    @ashishrohit-jy7np 3 หลายเดือนก่อน

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

  • @legend7890
    @legend7890 4 ปีที่แล้ว +3

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

  • @abdurrehmanansari2005
    @abdurrehmanansari2005 ปีที่แล้ว +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.

    • @JitendraSingh-qd7jk
      @JitendraSingh-qd7jk ปีที่แล้ว

      True I was thinking the same

    • @AnuragKharade
      @AnuragKharade 7 หลายเดือนก่อน

      Yes u r right bro

    • @AnuragKharade
      @AnuragKharade 7 หลายเดือนก่อน

      Actually 3rd and 4th value was swapped

  • @saptarshidas979
    @saptarshidas979 4 ปีที่แล้ว +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 10 หลายเดือนก่อน

      what are you doing currently?

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

  • @nureyna629
    @nureyna629 5 ปีที่แล้ว +2

    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 👏

  • @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 ปีที่แล้ว +1

      This is what for i was exploring comments thanks man

    • @AnuragKharade
      @AnuragKharade 7 หลายเดือนก่อน

      Yes u r correct bro

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

  • @safeerahmedx11
    @safeerahmedx11 หลายเดือนก่อน

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

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

  • @adarshgupta9272
    @adarshgupta9272 4 ปีที่แล้ว +3

    best lecture for algos on youtube

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

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

  • @sachin1738
    @sachin1738 4 ปีที่แล้ว

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

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

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

  • @luizdupont8791
    @luizdupont8791 4 ปีที่แล้ว +1

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

  • @oshoconner4003
    @oshoconner4003 ปีที่แล้ว +2

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

    • @anantmouraya8113
      @anantmouraya8113 ปีที่แล้ว

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

    • @girishbhargava6367
      @girishbhargava6367 ปีที่แล้ว

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

  • @harshpanwar1550
    @harshpanwar1550 3 ปีที่แล้ว +1

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

  • @o__bean__o
    @o__bean__o 10 วันที่ผ่านมา

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

  • @a.m.4154
    @a.m.4154 2 หลายเดือนก่อน

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

  • @narayanadhurti1603
    @narayanadhurti1603 3 ปีที่แล้ว

    Very Useful for people who are appearing for Interviews.

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

  • @abhaydwivedi6354
    @abhaydwivedi6354 5 ปีที่แล้ว +1

    best explanation of 0/1 knapsack problem in youtube

    • @JennyslecturesCSIT
      @JennyslecturesCSIT  5 ปีที่แล้ว +2

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

  • @karupallyphanikumar3122
    @karupallyphanikumar3122 3 ปีที่แล้ว +2

    Understanding slowly but it's clearly understood 😇👌

  • @abhishek_kumarvelloreinsti1866
    @abhishek_kumarvelloreinsti1866 4 ปีที่แล้ว

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

  • @chudamaniadhikari6744
    @chudamaniadhikari6744 5 ปีที่แล้ว +9

    wow finally after many lectures of others here i understand everything

  • @Sourav9063
    @Sourav9063 3 ปีที่แล้ว +13

    6:33
    No, it doesn't need to be in ascending order!!!!!

    • @abdullahalmasum5542
      @abdullahalmasum5542 3 ปีที่แล้ว

      *I think* it should be in increasing order since we are giving priority of each objects so it's better to write that way.

    • @Sourav9063
      @Sourav9063 3 ปีที่แล้ว +2

      @@abdullahalmasum5542 No, the algorithm works whether it is sorted or not. Sorting the linked value is not easy to program.

    • @abdullahalmasum5542
      @abdullahalmasum5542 3 ปีที่แล้ว +3

      @@Sourav9063 you are correct,bro. I made a mistake but learn something good. thnx😊
      The answer is here also:
      stackoverflow.com/questions/29853579/do-you-need-to-sort-inputs-for-dynamic-programming-knapsack

    • @amarthakur093
      @amarthakur093 3 ปีที่แล้ว +1

      @@abdullahalmasum5542 Just a suggestion. If you understand the algorithm instead of remembering the steps or formula, it will be easy to get why the order is not important :) . Most of the online lectures I found don't do this.

  • @lakshya.feel2207
    @lakshya.feel2207 8 หลายเดือนก่อน

    saw 2 other TH-cam videos and yours is the easiest and best.

  • @saieedkaiser6966
    @saieedkaiser6966 2 ปีที่แล้ว +1

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

  • @parvezahmed4u
    @parvezahmed4u 2 ปีที่แล้ว +1

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

  • @funny_Army007
    @funny_Army007 3 ปีที่แล้ว +1

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

  • @sanjanams9676
    @sanjanams9676 4 ปีที่แล้ว +1

    Madam you are wonderful your teaching is awesome

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

  • @vishalchauhan9832
    @vishalchauhan9832 5 ปีที่แล้ว +3

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

  • @ahalyapotti9905
    @ahalyapotti9905 4 ปีที่แล้ว

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

  • @srinivaskari
    @srinivaskari 3 หลายเดือนก่อน

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

  • @dheerajnemalikanti3703
    @dheerajnemalikanti3703 5 ปีที่แล้ว +1

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

  • @seemabkarim8674
    @seemabkarim8674 ปีที่แล้ว

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

  • @ritumishra4303
    @ritumishra4303 3 ปีที่แล้ว

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

  • @QuranTheUltimateRevelation
    @QuranTheUltimateRevelation 4 ปีที่แล้ว +1

    toughest problem solved in the simplest way!! Thanks mam.

  • @SunilKumar-yq2bz
    @SunilKumar-yq2bz 3 ปีที่แล้ว +3

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

  • @zn4798
    @zn4798 4 ปีที่แล้ว +1

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

  • @duobrother913
    @duobrother913 ปีที่แล้ว

    Deep knowledge makes humans incredible 🙂

  • @sumedh87
    @sumedh87 4 ปีที่แล้ว +7

    Ma'am the method that we have been provided in our university book that we usually refer is so long , whereas yours method is simple and short which I would like to prefer it , but my question. is ,Will I get full marks by referring your method in exam?😅😅

    • @SRK8338
      @SRK8338 2 ปีที่แล้ว

      Placement hogya?🤔

  • @abdurrehmanshahid9728
    @abdurrehmanshahid9728 4 หลายเดือนก่อน

    You're a lifesaver Jenny.

  • @aemanmustafa7296
    @aemanmustafa7296 8 หลายเดือนก่อน

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

  • @anhhaopham7919
    @anhhaopham7919 3 ปีที่แล้ว

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

  • @khanf13
    @khanf13 3 ปีที่แล้ว +1

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

  • @ayushgoyal1921
    @ayushgoyal1921 4 ปีที่แล้ว +1

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

  • @sampathabhishek3826
    @sampathabhishek3826 8 หลายเดือนก่อน

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

  • @bhargavdasgupta6580
    @bhargavdasgupta6580 3 ปีที่แล้ว +1

    Very nicely explained.
    Although I don’t think the sorting of the items according to the ascending order of their weights is necessary.

  • @shoaibrajput2664
    @shoaibrajput2664 3 ปีที่แล้ว

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

  • @sagniklaskar3493
    @sagniklaskar3493 4 หลายเดือนก่อน +1

    Watching this 30 min before the exam 😅

  • @satyamkumar2820
    @satyamkumar2820 4 ปีที่แล้ว

    I was not getting the formula how it came. But, now it's so easy. Thank you Mam. You are beautiful.

  • @ShrutiSheth-fs5et
    @ShrutiSheth-fs5et 3 ปีที่แล้ว

    You are teaching very clearly thank you so much

  • @SunilRathod-d9r
    @SunilRathod-d9r 5 หลายเดือนก่อน

    thanks for dropping such helpful videos, ma'am.

  • @VinodThakurGaming
    @VinodThakurGaming 5 ปีที่แล้ว +5

    Amazing explanation mam...👌

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

  • @AkashRai-by5qp
    @AkashRai-by5qp ปีที่แล้ว

    your way of teaching is awesome ma'am😄😄

  • @PulakMehta
    @PulakMehta 4 ปีที่แล้ว

    Such an amazing video explaining the topic. Thank you so much. Watching it one night before my exam. Very helpful..

  • @dheepang224
    @dheepang224 4 ปีที่แล้ว

    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

  • @aneeshkumar9018
    @aneeshkumar9018 4 ปีที่แล้ว

    mam is this the best example to learn 0/1 knapsack problem
    you teach in an easy way

  • @sujoyseal195
    @sujoyseal195 4 ปีที่แล้ว

    Thank you very much. Simple,short ,concise ....

  • @rahulranjan6671
    @rahulranjan6671 4 ปีที่แล้ว

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

  • @mdsaymon2490
    @mdsaymon2490 4 ปีที่แล้ว +1

    Thank you so much mam...to explain this topic so much easyly

  • @Mridulmishra06
    @Mridulmishra06 4 หลายเดือนก่อน

    thnx mam bahut achhe se smjh aaya concept

  • @ShaileshKumar-gn3pd
    @ShaileshKumar-gn3pd 4 ปีที่แล้ว +4

    Hi Jenny, Thanks for videos on Dynamic programming. you are doing a great job.
    I have one question
    from where we got this formula ? How it was derived?

  • @rajnaren4912
    @rajnaren4912 5 ปีที่แล้ว +6

    Good explanation but logic seems to be slightly wrong. For example, (2, 8) value should be 6 as we can have 2*4 -> 2*3= 6. Why 5? Seems like taking value from above row and adding seems to be wrong, you need to take it from same row. Also, adding 0th row and column is not much useful. Thanks for sharing your knowledge!

  • @chanduc2000
    @chanduc2000 5 ปีที่แล้ว +5

    ma'am i think no need to sort w[ ] array