Concept Flow - Unbounded Knapsack Problem
Start
Initialize DP array with zeros
For each weight from 1 to W
For each item
If item weight <= current weight
Update DP[current weight
Repeat for all weights and items
Return DP[W
End
We fill a DP array from 0 to W, for each weight we try all items and update max value allowing unlimited item use.
