Question: 3. Assume every item has two basic properties: weight and value. Given 4 items as followings and a knapsack of capacity 12 . (1) Please

3. Assume every item has two basic properties: weight and value. Given 4 items as followings and a knapsack of capacity 12 . (1) Please apply brute force algorithm to list all possible knapsack combinations and find the most valuable one. (2) Please shows how you find the most valuable knapsack (may be not globally most valuable) by applying greedy algorithm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
