Fractional knapsack problem is solved most efficiently by which of the following algorithm?
Fractional knapsack problem is solved most efficiently by which of the following algorithm? Correct Answer Greedy algorithm
Greedy algorithm is used to solve this problem. We first sort items according to their value/weight ratio and then add item with highest ratio until we cannot add the next item as a whole. At the end, we add the next item as much as we can.
মোঃ আরিফুল ইসলাম
Feb 20, 2025