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

Поделиться
HTML-код
  • Опубликовано: 2 окт 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

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

  • @yarramneninikhil1299
    @yarramneninikhil1299 2 года назад +11

    We have compare lower bound know sir c^n

  • @naninaresh7219
    @naninaresh7219 Год назад +2

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

    • @SudhakarAtchala
      @SudhakarAtchala  Год назад +2

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

  • @akshaya5919
    @akshaya5919 3 года назад +10

    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.

  • @VmalaMurugan
    @VmalaMurugan Месяц назад +1

    Thank you Sir 😊

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

      So nice of you. Please like the video, subscribe to the channel, and share it 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..

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

  • @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 Месяц назад

    State space tree is taken upto which number

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

      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.

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

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

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

  • @Priya_honey_30
    @Priya_honey_30 2 месяца назад

    Explain more in Telugu sir plss avoid English 🥲🤌🏻

    • @SudhakarAtchala
      @SudhakarAtchala  2 месяца назад +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

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

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

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

    Please explain backtracking algorithms and Hamiltonian circuits

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

      Refer to the daa playlist once,
      ruclips.net/p/PLXj4XH7LcRfAG09GbFgMOLACfvbMplHsW

  • @sreeshanthreddykunta
    @sreeshanthreddykunta Год назад +2

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

  • @rajusiddi5726
    @rajusiddi5726 8 месяцев назад

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

    • @SudhakarAtchala
      @SudhakarAtchala  8 месяцев назад +1

      All the best. 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..

  • @adityadeshmukh5844
    @adityadeshmukh5844 9 месяцев назад

    Thank you sir👍.tomorrow is my exam

    • @SudhakarAtchala
      @SudhakarAtchala  9 месяцев назад

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

  • @BhavyasriVangala-yk9ue
    @BhavyasriVangala-yk9ue 6 месяцев назад

    Superb explanation 🤌🥳

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

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

  • @althafbashamohammad7551
    @althafbashamohammad7551 2 месяца назад

    Thank you sooo much sir

    • @SudhakarAtchala
      @SudhakarAtchala  2 месяца назад

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

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

    And Thank u so much sir ❤

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

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

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

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

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

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

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

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

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