Concept Flow - Unbounded Knapsack Problem
Start
Initialize DP array with 0
For each weight from 1 to W
For each item
If item weight <= current weight
Update DP[current weight
Repeat for all weights
Result is DP[W
End
We fill a DP array from 0 to W, for each weight checking all items to find the best value by possibly taking items multiple times.
