Question: 21 - Show how the knapsack algorithm would work with the items below, assuming that you can take any number of each of the items
21 - Show how the knapsack algorithm would work with the items below, assuming that you can take any number of each of the items (i.e., not only 0 or 1), but that you cannot take a fraction of an item. You should build the table manually (only one is necessary), and then explain which cells you are traversing when doing the trace back, for each of the maximum weights (W) listed below. a) W=20 b) W=19 c) W=18 d) W=11 e) W=10 Note: fill only one table for all W above. If there is more than one solution for a particular W, provide all solutions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
