Concept Flow - Fractional Knapsack Problem
Start with items sorted by value/weight ratio
Initialize total_weight=0, total_value=0
For each item in sorted list
Can full item fit?
No→Take fraction to fill knapsack
|Yes
Add full item value and weight
Update total_weight and total_value
Knapsack full?
No→Next item
|Yes
Done
The flow shows sorting items by value/weight, then adding full or fractional parts until the knapsack is full.
