0/1 Knapsack Problem using Least Cost Branch and Bound ( LCBB ) || Design and Analysis of Algorithms

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ต.ค. 2024
  • #sudhakaratchala #daavideos #daaplaylist
    In 0/1 knapsack problem. We define upper(the global variable) and c’(x) and u(x) for each node.
    c’(x) is the used to find the cost of the node(or effort) starting from the root.
    In 0/1 knapsack c’(x) means the maximum profit at that node(with fractions ).
    u(x) is used to find an improved upper bound value.
    In 0/1 knapsack u(x) means the maximum profit at that node (without fractions).
    After the E-node is expanded
    It generates a list of live nodes
    c’(x) and u(x) is calculated for each generated live node.
    If an improved u(x) is generated for any newly generated live node then, update upper to u(x).
    Kill the nodes whose c’(x) is greater than upper(updated)
    The selection of next E-node is depends on the approach used.
    LC BB - selects whose live nodes cost is least
    FIFO BB - selects from next live node from the queue
    LIFO BB- selects from next live node from the stack

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

  • @DurgaBhavaninindrakollu
    @DurgaBhavaninindrakollu 10 ชั่วโมงที่ผ่านมา +1

    Thank you very much sir 😊 excellent teaching 🎉

    • @SudhakarAtchala
      @SudhakarAtchala  7 ชั่วโมงที่ผ่านมา

      All the best. Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.

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

    Nyc explanation. I clearly understood just by listening for first tym itself.Thank u sir.

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

      Glad to hear that. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

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

    Sheesh keep it up , easily understood this thanks to you. God bless you

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

      Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    Thank you so much for the videos sir. They are a life saver 💯💯 wouldn't have passed my COA exam without these videos

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

      Welcome vindya. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

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

    Thank you sir .. Great explanation sir it was very understandable keep it up sir.

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

      Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

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

    Iam passed many subjects by listening u r classes only sir

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

      Congratulations. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    thank you sir!!! this was the most confusing topic. the explanation was very clear

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

      Glad to hear that. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    We have compare lower bound know sir c^n

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

    Thank you so much sir your vedios are me a lot for preparation 😊

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

      All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...

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

    Great Work sir, keep doing all the best

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

      Thanks a lot. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

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

    U r explaination is good sir

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

      Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    Thank you so much sir,for clear explanation 🎉❤

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

      Always welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    Thank you Sir 😊

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

      So nice of you. Please like the video, subscribe to the channel, and share it with your friends. Thanks in advance.

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

    Sir, what is the difference between fifo and lcbb 0/1 knapsack problem

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

      Fifo doesn't guarantee optimal sol where as lcbb guarantees optimal sol. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    Sir nice explanation

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

      Thanks and welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @Bhargav1245-g7dc
    @Bhargav1245-g7dc 2 ปีที่แล้ว

    Nice explanation sir thank you

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

      Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

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

    To further explore the node should we compare the u^n or c^ n sir...

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

    dear sir, also write the code if possible. it will help more in the explanation

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

      In future definitely I will upload a video on algorithm but now because of lack of time I am unable to focus on code.

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

    State space tree is taken upto which number

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

      for least cost nodes, no need to explore. Please like the video, subscribe to the channel, and share it with your friends. Thanks in advance.

  • @BhavyasriVangala-yk9ue
    @BhavyasriVangala-yk9ue 7 หลายเดือนก่อน

    Superb explanation 🤌🥳

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

      Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    Thank you sir👍.tomorrow is my exam

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

      All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    Please explain backtracking algorithms and Hamiltonian circuits

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

      Refer to the daa playlist once,
      th-cam.com/play/PLXj4XH7LcRfAG09GbFgMOLACfvbMplHsW.html

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

    Thank you sooo much sir

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

      Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

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

    Thank u sooo much sir...

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

      Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    Sir plzz explain travelling salesman problem in FIFO branch and bound

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

      Ya sure. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

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

      @@SudhakarAtchala already subscribed sir. Sir can u plzz explain implementing L attributed sdd . U explained entire chapter but didn't explain that topic. N i can't understand any others explanation..

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

    And Thank u so much sir ❤

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

    Thank you sir....

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

      Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    thank you sir

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

      Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    I am going to have supply today sir😢

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

      All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

    Sir at 23:11 what if both lower bound and upper bound is same for 6th node and 7th node..?? Then which we have to choose

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

      Then it is your choice, you can choose one of them. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

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

      @@SudhakarAtchala ok sir tqq..

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

    Thanks a ton sir!!!

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

      Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

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

    Guys please like the video ur waching the video one day before the exam and forget to thank the sir like the video guys it will help them

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

    Explain more in Telugu sir plss avoid English 🥲🤌🏻

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

      This is English Channel and I will upload only English videos in this channel. for Telugu videos refer my Telugu channel computer panthulu. Thanks

  • @Vennela-n7z
    @Vennela-n7z ปีที่แล้ว

    Thank you sir😊

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

      Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..