Knapsack in Greedy
Knapsack in Greedy
Knapsack in Greedy
At each phase:
future consequences
choosing a local optimum at each step, and end up
at a
global optimum solution.
KNAPSACK PROBLEM
1. Max Value(V): Sort the objects from the highest value to the lowest,
then pick them in that order.
2. Min Weight(W) :Sort the objects from the lowest weight to the
highest, then pick them in that order.