Concept Flow - Unbounded Knapsack Problem
Start
Initialize DP array with 0
For each capacity from 1 to W
For each item
If item weight <= capacity
Update DP[capacity
Repeat for all capacities
Result = DP[W
End
We fill a DP array where each index represents capacity. For each capacity, we try all items and update the max value possible by including items multiple times.
