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.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!