Given items as {value,weight} pairs {{40,20},{30,10},{20,5}}. The capacity of knapsack=20. Find the maximum value output assuming items to be divisible.
(a) 60
(b) 80
(c) 100
(d) 40
The question was posed to me in an internship interview.
I want to ask this question from Greedy Algorithms in division Greedy Algorithms of Data Structures & Algorithms II