next up previous
Next: Up: Previous:

Example: Fractional Knapsack Problem

A thief considers taking W pounds of loot. The loot is in the form of n items, each with weight wi and value vi. Any amount of an item can be put in the knapsack as long as the weight limit W is not exceeded.


next up previous
Next: Up: Previous: