Question:medium

In the fractional knapsack problem, the greedy choice is based on ($i^{th}$ item has worth/value as $V_i$ and weight as $W_i$) :

Show Hint

Always think of "Value per kg." If Gold is \$60/g and Silver is \$1/g, you pick the Gold first because its $V/W$ ratio is higher.
Updated On: Jun 6, 2026
  • Maximum value ($V_i$)
  • Minimum weight ($W_i$)
  • Maximum value/weight ($V_i/W_i$) ratio
  • Random choice
Show Solution

The Correct Option is C

Solution and Explanation

Was this answer helpful?
0

Top Questions on Algorithm


Questions Asked in CUET (PG) exam