2025-01-22 13:41:46
This commit is contained in:
@@ -34,3 +34,5 @@ Given a set S of n items, with each item i having a positive benefit factor, b,
|
||||
Goal: Choose items with maximum total benefit but with weight at most W.
|
||||
|
||||
If we are allowed to take factional amounts, then this is the fractional knapsack problem. The objective is to maximize the benefit given the amount divided by the weight, with the constraint that the amount is less than the total amount W.
|
||||
|
||||
### Interval Partitioning: Greedy
|
||||
|
Reference in New Issue
Block a user