# Difference between fractional knapsack & greedy solution

I am trying to understand what the difference is between the fractional knapsack problem using dynamic programming, and the greedy solution version. Im looking at an example of the fractional problem which looks like:

What's the difference between that and the greedy solution? Are you not just taking the value-per-pound in this example too but it's just not explicitly stated?

• The greedy solution to what? To fractional knapsack or regular knapsack? Mar 30 '17 at 7:43
• What you mean by "the difference"? The two algorithms are very obviously not the same.
– Raphael
Apr 29 '17 at 8:30

The fractional Knapsack problem isn't solved using Dynamic Programming, but can be solved using a greedy algorithm. Item A is \$50/unit, B is \$5/unit and C is \\$40/unit. The greedy method is to use as much of the highest value items as possible, which gives the solution on the image.