Chapter 5: Problem 30
Use the Backtracking algorithm for the \(0-1\) Knapsack problem (Algorithm 5.7) to maximize the profit for the following problem instance. Show the actions step by step. $$\begin{array}{ccccc} i & p_{i} & w_{i} & \frac{p_{i}}{w_{i}} & \\ 1 & \$ 20 & 2 & 10 & \\ 2 & \$ 30 & 5 & 6 & \\ 3 & \$ 35 & 7 & 5 & W=19 \\ 4 & \$ 12 & 3 & 4 & \\ 5 & \$ 3 & 1 & 3 & \end{array}$$
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.