The main time taking step in fractional knapsack problem is ___________
(a) Breaking items into fraction
(b) Adding items into knapsack
(c) Sorting
(d) Looping through sorted items
This question was posed to me in homework.
My question comes from Greedy Algorithms topic in division Greedy Algorithms of Data Structures & Algorithms II