Question: Consider the KNAPSACK problem, but now instead of implementing the PTAS algorithm given in the book, we use a greedy approach of always picking the
Consider the KNAPSACK problem, but now instead of implementing the PTAS algorithm given in the book, we use a greedy approach of always picking the next item that maximizes the ratio of value over weight (as in the optimal way to solve the fractional version of the KNAPSACK problem). Show that this approach does not produce a c-approximation algorithm, for any fixed value of c.
Step by Step Solution
3.48 Rating (161 Votes )
There are 3 Steps involved in it
This approach does not produce a capproximation algorithm for any fixed value of c because the g... View full answer
Get step-by-step solutions from verified subject matter experts
