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

  Рет қаралды 90,972

Sudhakar Atchala

Sudhakar Atchala

2 жыл бұрын

#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

Пікірлер: 59
@akshaya5919
@akshaya5919 2 жыл бұрын
Nyc explanation. I clearly understood just by listening for first tym itself.Thank u sir.
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Glad to hear that. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@gvindya8488
@gvindya8488 2 жыл бұрын
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 2 жыл бұрын
Welcome vindya. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@azverndias913
@azverndias913 Жыл бұрын
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..
@yarramneninikhil1299
@yarramneninikhil1299 2 жыл бұрын
We have compare lower bound know sir c^n
@sidduroy9150
@sidduroy9150 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.
@challaanitha8834
@challaanitha8834 Жыл бұрын
Thank you sir .. Great explanation sir it was very understandable keep it up sir.
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@ritikakosigi9176
@ritikakosigi9176 10 ай бұрын
thank you sir!!! this was the most confusing topic. the explanation was very clear
@SudhakarAtchala
@SudhakarAtchala 10 ай бұрын
Glad to hear that. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@pavanganeshvodnala2550
@pavanganeshvodnala2550 11 ай бұрын
Thank you so much sir,for clear explanation 🎉❤
@SudhakarAtchala
@SudhakarAtchala 11 ай бұрын
Always welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@user-uv1ic3qw4g
@user-uv1ic3qw4g 11 ай бұрын
Iam passed many subjects by listening u r classes only sir
@SudhakarAtchala
@SudhakarAtchala 11 ай бұрын
Congratulations. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@user-uv1ic3qw4g
@user-uv1ic3qw4g 11 ай бұрын
U r explaination is good sir
@SudhakarAtchala
@SudhakarAtchala 11 ай бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@rajusiddi5726
@rajusiddi5726 5 ай бұрын
Thank you so much sir your vedios are me a lot for preparation 😊
@SudhakarAtchala
@SudhakarAtchala 5 ай бұрын
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
@bhargav5611
@bhargav5611 Жыл бұрын
Nice explanation sir thank you
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@makergamesop
@makergamesop 9 ай бұрын
And Thank u so much sir ❤
@SudhakarAtchala
@SudhakarAtchala 9 ай бұрын
You are most welcome.
@user-ml8fq8yd5o
@user-ml8fq8yd5o 7 ай бұрын
Thank u sooo much sir...
@SudhakarAtchala
@SudhakarAtchala 7 ай бұрын
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@Pgggg
@Pgggg 2 жыл бұрын
dear sir, also write the code if possible. it will help more in the explanation
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
In future definitely I will upload a video on algorithm but now because of lack of time I am unable to focus on code.
@user-um1el4ws7u
@user-um1el4ws7u 11 ай бұрын
Thank you sir😊
@SudhakarAtchala
@SudhakarAtchala 11 ай бұрын
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@trsk
@trsk Жыл бұрын
Thank you sir....
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@guddojiramesh3667
@guddojiramesh3667 10 ай бұрын
Please explain backtracking algorithms and Hamiltonian circuits
@SudhakarAtchala
@SudhakarAtchala 10 ай бұрын
Refer to the daa playlist once, kzbin.info/aero/PLXj4XH7LcRfAG09GbFgMOLACfvbMplHsW
@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..
@silentxmoon867
@silentxmoon867 Жыл бұрын
thank you sir
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@ostrich1233
@ostrich1233 2 жыл бұрын
Sir plzz explain travelling salesman problem in FIFO branch and bound
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Ya sure. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@ostrich1233
@ostrich1233 2 жыл бұрын
@@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..
@naninaresh7219
@naninaresh7219 11 ай бұрын
Sir, what is the difference between fifo and lcbb 0/1 knapsack problem
@SudhakarAtchala
@SudhakarAtchala 11 ай бұрын
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..
@rengarajansrinivasan4356
@rengarajansrinivasan4356 Жыл бұрын
Thanks a ton sir!!!
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@BhavyasriVangala-yk9ue
@BhavyasriVangala-yk9ue 3 ай бұрын
Superb explanation 🤌🥳
@SudhakarAtchala
@SudhakarAtchala 3 ай бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@adityadeshmukh5844
@adityadeshmukh5844 6 ай бұрын
Thank you sir👍.tomorrow is my exam
@SudhakarAtchala
@SudhakarAtchala 6 ай бұрын
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@sreeshanthreddykunta
@sreeshanthreddykunta Жыл бұрын
To further explore the node should we compare the u^n or c^ n sir...
@Oneman5333
@Oneman5333 11 ай бұрын
C^n
@Raju-qf6sy
@Raju-qf6sy Ай бұрын
I am going to have supply today sir😢
@SudhakarAtchala
@SudhakarAtchala Ай бұрын
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 Жыл бұрын
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 Жыл бұрын
@@SudhakarAtchala ok sir tqq..
@makergamesop
@makergamesop 9 ай бұрын
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
@SudhakarAtchala
@SudhakarAtchala 9 ай бұрын
So nice of you ❤️
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 1,9 МЛН
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 6 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
7.3 Traveling Salesman Problem - Branch and Bound
24:42
Abdul Bari
Рет қаралды 1,7 МЛН
I Played Fabiano Caruana
12:03
Anna Cramling
Рет қаралды 183 М.
0/1 knapsack problem-Dynamic Programming | Data structures and algorithms
27:31
Jenny's Lectures CS IT
Рет қаралды 1,1 МЛН
ЛЕТНИЕ КАНИКУЛЫ СО СТАРШИМ БРАТОМ
20:21
Сборник Имена - Уральские Пельмени
1:19:29
Уральские Пельмени
Рет қаралды 1 МЛН
4.8 0/1 knapsack problem using LCBB
15:59
OU Education
Рет қаралды 15 М.
No More Magnus. No More Hikaru.
33:26
GothamChess
Рет қаралды 270 М.
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 1,9 МЛН