Question: Design a local search algorithm for the 0-1 knapsack problem. Assume there are n items xi..n each with weight w and value v,. The knapsack

Design a local search algorithm for the 0-1 knapsack problem. Assume there are n items xi..n each with weight w and value v,. The knapsack can have at most one of each item and the total weight cannot exceed W. You want to maximize the total value in the knapsack. Question 1: (7 points) Show the psuedocode/explanation for your algorithm. Question 2. (3 points) Is it guaranteed to find an optimal solution Justify your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
