9-2. Five items are to be loaded in a vessel. The weight w, volume v, and value r for item i are ...
You want to put your valuable items into a box. The maximum capacity of the box is 4. The table below shows the values and weights for items 1, 2, 3 and 4 respectively. Item i Value Vi Weight Wi 1 15 1 2 10 5 3 9 3 4 5 2 (i) Use recursion strategy to put the items into the box such that it holds the highest value (ii) Repeat (i) above using backtracking approach.
Please help with question 2 (c). (2) Suppose, the game is updated so that every item, i, now has weight, wi], in kilograms (you can assume you are passed the item weights in an array, w, of size m). You can only carry n kilograms of weight. (a) (1 point) Example: Let n Ξ 15, m 5. If the item values are v (5.30, 17, 32, 40) and the item weights are w - 2,4, 3,6,15} which should you choose...