Question: Subject: Design Analysis Algorithm Your friend Ali is coming home from Dubai and wants to pack his bag that gives him maximum benefit. He has
Subject: Design Analysis Algorithm

Your friend Ali is coming home from Dubai and wants to pack his bag that gives him maximum benefit. He has one bag with capacity W=13 and he want to utilize that to carry maximum number of items with overall best benefit in terms of value. He is having trouble filling the bag to maximize benefit. He has called you for some provide him a quick solution to his problem. Following table shows the list of 6 items (i) along with corresponding weights (w;) and values (b;). Help him out in getting the maximum benefit out of it as you yourself want maximum value gifts from him. Item # 1 I 13 Wi (weight of ith item) 2 3 5 4 7 1 bi (value of ith item) 6 4 9 5 Is 16 3 a) What is the maximum value/benefit (B) that can be achieved? b) Item number/s that can be added in the bag to achieve the above max value/benefit (B)? c) If an item 17 is introduced with W7 = 3 and bz = 5. What effect would this item have on the value of B? Show your working
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
