0/1 Knapsack Problem Using Dynamic Programming || Design and Analysis of Algorithms || DAA

  Рет қаралды 213,361

Sudhakar Atchala

Sudhakar Atchala

Күн бұрын

#sudhakaratchala #daavideos #daaplaylist
We are having ‘n’ objects and a knapsack or a bag in which the object ‘i’ has weight ‘wi’ is to be placed. And the knapsack has capacity ‘M’.
The profit pixi can be earned, if an object ‘i’ has to be placed into the knapsack.
The objective of the knapsack problem is to fill the knapsack with maximum profitable objects and the sum of the weights of the object is lessthan or equal to the capacity of the knapsack. That is
Maximize ∑2_(𝑖=0)^𝑛▒"pixi"
Purging rule (or) Dominance rule
If Si+1 contains (pj, wj) and (pk, wk) two pairs such that (pj ≤ pk ) and (wj ≥ wk)
then (pj, wj) pair can be eliminated. This purging rule is also called "dominance rule”.
In purging rule basically the dominated tuples get purged that is remove the pair with less profit and more weight.
The formula for solving the problem is
Si+1 = Si U S1i

Пікірлер: 83
@dabbiruhaneesh2714
@dabbiruhaneesh2714 3 жыл бұрын
Happy Teachers day sir.. without you there would be many backlogs in my btech but you made me clear all in the first attempt itself! thank you so much sir for teaching many students like us and helping them to pass their exams ❤️
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Thanks
@VINAY-wg4ul
@VINAY-wg4ul Жыл бұрын
Your explanation outstanding sir. Thank you sir thank you sooo much❤
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
You are most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@rampandusatla
@rampandusatla 5 ай бұрын
Never understood this tricky concepts in entire sem , what a detail and clear explanation sir our exams doesn't ends with your clases .... tqqq you 😇♥you sir
@SudhakarAtchala
@SudhakarAtchala 5 ай бұрын
All the best. Please like the video, subscribe to the channel, and share it with your friends. Thanks in advance.
@KukuluriSravani
@KukuluriSravani 4 ай бұрын
Sir , meeru lekapothe memu mamimun kuda pass avvamu sir , u r my real god of teacher sir ....
@SudhakarAtchala
@SudhakarAtchala 4 ай бұрын
All the best. Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.
@k.venkatamuni943
@k.venkatamuni943 3 жыл бұрын
Ur videos are most useful to btech students sir thank you so much sir ur videos are useful in my exams for that tq so much sir 🙏🙏🙏🙏
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
So nice of you
@mahim8853
@mahim8853 Ай бұрын
Thankyou very much sir , many students are depending on your class videos .
@SudhakarAtchala
@SudhakarAtchala Ай бұрын
You're welcome! 🙏 Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.
@bharathbunny12
@bharathbunny12 6 ай бұрын
Sir thankyou so much your classes are very clear and understandable 🙏
@SudhakarAtchala
@SudhakarAtchala 6 ай бұрын
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@allurivishnuvardhanvarma3091
@allurivishnuvardhanvarma3091 3 жыл бұрын
Happy teacher's day sir ❤️ Best teacher ever 😃
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Thanks
@madhubtech1805
@madhubtech1805 2 ай бұрын
Understood clearly thank you so much sir❤❤😊😊
@SudhakarAtchala
@SudhakarAtchala 2 ай бұрын
Welcome. Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.
@sonufazi8977
@sonufazi8977 5 ай бұрын
Sir you're a saviour ❤
@SudhakarAtchala
@SudhakarAtchala 5 ай бұрын
So nice of you. Please like the video, subscribe to the channel, and share it with your friends. Thanks in advance.
@kimalice19
@kimalice19 Ай бұрын
Thank You Sir For Your Efforts and Support. I really Appreciate it..
@SudhakarAtchala
@SudhakarAtchala Ай бұрын
I'm glad you found it helpful! Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.
@harshvardhantandon8278
@harshvardhantandon8278 Жыл бұрын
Thank you sir this is the best explanation on KZbin thanks a lot 😊❤
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
You are most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@harshvardhantandon8278
@harshvardhantandon8278 Жыл бұрын
@@SudhakarAtchala already subscribed your channel 3 years ago and shared with friends as well carry on the good work 😉😄 but plz also tell that how to represent these types of questions in exam question paper in your videos thanks a lot once again 🙂
@dchxmonster.845
@dchxmonster.845 2 ай бұрын
Thank you sir for this kind of explanation❤❤❤ I hope in future our college faculty can teach like you 😢😢
@SudhakarAtchala
@SudhakarAtchala 2 ай бұрын
welcome. Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.
@s.mahaboobbasha7820
@s.mahaboobbasha7820 2 жыл бұрын
U R REALLY GREAT SIR 💕
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Thank you so much 😀 Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
@siddireddyvignesh
@siddireddyvignesh Жыл бұрын
Very good explanation sir!! Thank you
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
You are 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 жыл бұрын
welcome
@Cleo0777
@Cleo0777 2 ай бұрын
very good and nice explanation sir thank u
@SudhakarAtchala
@SudhakarAtchala 2 ай бұрын
You're most welcome. Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.
@veerabhadrareddy2133
@veerabhadrareddy2133 9 ай бұрын
Thank you so much sir, your videos are very useful for many b-tech students, keep rocking sir....🤝
@SudhakarAtchala
@SudhakarAtchala 9 ай бұрын
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
@khabylamefan48
@khabylamefan48 3 жыл бұрын
Happy Teachers day sir ❤️
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Thanks
@Lohitha-v7j
@Lohitha-v7j Жыл бұрын
Thank a lot sir😇😇😇your video lectures are very helpful for us......... And your teaching was too good sir......
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
It's my pleasure. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@rithvikreddychantigari716
@rithvikreddychantigari716 3 жыл бұрын
Happy Teachers Day sir...😊
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Thanks
@vpranathi1237
@vpranathi1237 Жыл бұрын
Tq for teaching knapsack problem
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
It's my pleasure. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@modemharikumar9232
@modemharikumar9232 3 жыл бұрын
happy teacher's day sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Thanks
@vpranathi1237
@vpranathi1237 Жыл бұрын
In this video so useful for me
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Glad it helped. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@k.venkatamuni943
@k.venkatamuni943 3 жыл бұрын
Tq for giving useful information
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@varungoud2803
@varungoud2803 Жыл бұрын
Saviour 🙏❤️
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@adarinikhil1262
@adarinikhil1262 2 жыл бұрын
Sir what if profits are not in order of purging rule
@commando8822
@commando8822 3 жыл бұрын
HAPPY TEACHER'S DAY SIR
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Thanks
@sivarajupunju7793
@sivarajupunju7793 2 жыл бұрын
TQ so much sir all ur videos are sooo useful to mee
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
So nice of you. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@Karnatakam134
@Karnatakam134 3 ай бұрын
Thank you so much sir
@SudhakarAtchala
@SudhakarAtchala 3 ай бұрын
Welcome. Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.
@amitha1135
@amitha1135 Жыл бұрын
Thank you sir
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
So nice of you. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@SangeethaMalavath
@SangeethaMalavath 2 ай бұрын
Tq so much sir
@SudhakarAtchala
@SudhakarAtchala 2 ай бұрын
welcome. Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.
@techwithongolian
@techwithongolian Жыл бұрын
Thank you
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
You're welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@vanireddypunyala7880
@vanireddypunyala7880 Жыл бұрын
for example p1>=p2 what operation we perform sir
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
No need to remove the dominant pair. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@aishwaryaabburu
@aishwaryaabburu 10 ай бұрын
Sir your explanatiom is excellent but video length is so much 😢 please try to say fast
@SudhakarAtchala
@SudhakarAtchala 10 ай бұрын
Okay, noted. Plz subscribe to the channel and if possible share with your friends. Thanks in advance...
@aishwaryaabburu
@aishwaryaabburu 10 ай бұрын
@@SudhakarAtchala Ok sir🤩
@sumanthvarma772
@sumanthvarma772 3 жыл бұрын
Happy Teacher's Day...
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
T
@LokeshKumar-jg8md
@LokeshKumar-jg8md Жыл бұрын
For the same problem can you Please explain tabular method
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Okay sure. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@yp1603
@yp1603 3 жыл бұрын
Happy teachers day sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Thanks
@chiranjeevisaibhuvanagiri9975
@chiranjeevisaibhuvanagiri9975 2 жыл бұрын
You want to do video on reliability design problem
@SudhakarAtchala
@SudhakarAtchala 2 жыл бұрын
Ya sure. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@RithikasreeMaddala
@RithikasreeMaddala 2 ай бұрын
thanks ra babu
@SudhakarAtchala
@SudhakarAtchala 2 ай бұрын
welcome. Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.
@sairamg2007
@sairamg2007 Ай бұрын
Anyone from mbnr jpnce
@SudhakarAtchala
@SudhakarAtchala 27 күн бұрын
All the best. Please like the videos, subscribe to the channel, and share it with your friends. Thanks in advance.
4.5 0/1 Knapsack - Two Methods - Dynamic Programming
28:24
Abdul Bari
Рет қаралды 3,1 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
0/1 knapsack problem-Dynamic Programming | Data structures and algorithms
27:31
Jenny's Lectures CS IT
Рет қаралды 1,4 МЛН
these are the habits of the top 1% students, that you can do.
12:58
3.1 Knapsack Problem - Greedy Method
15:30
Abdul Bari
Рет қаралды 2,5 МЛН