3.4 Knapsack Problem | Greedy Method | Design and Analysis of Algorithms

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024
  • 📝 Talk to Sanchit Sir: forms.gle/WCAF...
    💻 KnowledgeGate Website: www.knowledgeg...
    📲 KnowledgeGate Android App: tiny.cc/KG_Offi...
    ➡ Do not miss our Bestseller Courses:
    🔴 GATE Guidance-2025: www.knowledgeg...
    🟠 GATE Guidance Plus-2025: www.knowledgeg...
    ➡ Contact Us:
    🟩 Whatsapp Chat: wa.me/91859512...
    📞Call on: +91-8000121313
    🟦 Telegram Updates: t.me/kg_gate
    🟩 Whatsapp Updates: www.whatsapp.c...
    📧 Email: contact@knowledgegate.in
    ➡ Our One Shot Semester Exam Videos: 👇
    ▶ Operating System: • Complete Operating Sys...
    ▶ DBMS: • Complete DBMS Data Bas...
    ▶ Computer Network: • Complete CN Computer N...
    ▶ Digital Electronics: • Complete DE Digital El...
    ▶ Computer Architecture: • Complete COA Computer ...
    ▶ Data Structure: • Complete DS Data Struc...
    ▶ Algorithm: • Complete DAA Design an...
    ▶ Software Engineering: • Complete Software Engi...
    ▶ Theory of Computation: • Complete TOC Theory of...
    ▶ Compiler: • Complete CD Compiler D...
    ▶ Discrete Maths: • Complete DM Discrete M...
    ➡ Free Subject-Wise Complete PlayList: 👇
    ▶️ DBMS: tiny.cc/kg_yt_DBMS
    ▶️ Operating System: tiny.cc/kg_yt_OS
    ▶️ TOC|Automata: tiny.cc/kg_yt_toc
    ▶️ Computer Networks: tiny.cc/kg_yt_CN
    ▶️ Digital Electronics: tiny.cc/kg_yt_D...
    ▶️ Compiler Design: tiny.cc/kg_yt_C...
    ▶️ Computer Architecture: tiny.cc/kg_yt_COA
    ▶️ Data Structure: tiny.cc/kg_yt_D...
    ▶️ Algorithms: tiny.cc/kg_yt_A...
    ▶️ Set, Relation, Function: tiny.cc/kg_yt_D...
    ▶️ Graph Theory: tiny.cc/kg_yt_g...
    ▶️ Group Theory: tiny.cc/kg_yt_g...
    ▶️ Proposition: tiny.cc/kg_yt_p...
    #knowledgegate #GATE #sanchitjain
    *********************************************************

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

  • @KNOWLEDGEGATE_kg
    @KNOWLEDGEGATE_kg  8 หลายเดือนก่อน +2

    For complete Algorithm, check out this video: th-cam.com/video/z6DY_YSdyww/w-d-xo.html

  • @pendlivijender
    @pendlivijender ปีที่แล้ว +20

    Profit/weight for objects are 5,3.75,2,3.6,3 so we have to take o1, o2 completely and fractional part of o4 which is (1*10)+(1*15)+(3/5*18) =35.8

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

    Ans: 35.8
    Sir ,fractional knapsack is also comes under greedy problem.I have studied somewhere it is dynamic.0/1 is greedy

  • @ayushiyadav1
    @ayushiyadav1 4 หลายเดือนก่อน +2

    15:30 Answer i.e P/W is 35.8 , we'll pick obj1, obj2 fully and obj4 3/5 parts. obj3 and obj5 contains 0 parts as we don't pick them.

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

    13:26 loved the explanation

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

    But KS weight is not given how to take obj's ??

  • @HarshKumar-yn3wo
    @HarshKumar-yn3wo 10 หลายเดือนก่อน +3

    35.8 is the answer

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

    very helpful tutorial for mca student

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

      Glad you think so! ❤ keep learning & supporting! Do visit our website www.knowledgegate.in for more amazing videos & contents👍

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

    Sir , is this a constraint to use any object once only ?

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

    sir Travelling Salesman problem ke upar b ek vidio bna do pls

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

    35.8

  • @javedakhter553
    @javedakhter553 29 วันที่ผ่านมา

    Answer-35.8

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

    It's done

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

    There is a condition mention in the question that only one unit of each item.
    So i just try =
    1*10+1*15+(1/3*6)+(1/5*18)+1*3= 33.6
    Is it right?

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

      There is only one unit of each item available to take.....but there is not such constraint that says at least one unit of each item should be taken....so the answer should be 35.8 (taking 1,1 and 3/5 units of O1, O2 and O4 respectively.

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

    Sir if I buy your course can I login in phone and pc both?

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

    Profile/weight =35.5 ans..

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

    Homework-35.8

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

    HW 35.8

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

    10×1+15×1+3.6×3=35.8 👍🏻

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

    15 +18 =33 is the maximum
    Weight 9

  • @HAARDIKAGARWAL-xp4ci
    @HAARDIKAGARWAL-xp4ci 9 หลายเดือนก่อน

    homework Q-Max Profit=34

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

    35.8 ✅

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

    We have to take objects Q1,Q2,Q4 (5, 3.75, 3.6) . Therefore max profit= (10+15+10.8)= 35.8

  • @relatable.world04
    @relatable.world04 2 หลายเดือนก่อน

    Sir chor ke pass itna time hota hai kya 😅

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

    43.5

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

    greedy by profit == 33 like
    greedy y weight == 19
    geedy by profit/weight == 25
    am I right or not

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

    50

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

    28

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

    Sir your contact number on app is not working

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

      Dear Hardik, our team was on Diwali off, we have started working, you can contact us now, sorry for the inconvenience !

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

    35.8

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

    35.8

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

    35.8