Concept Flow - Unbounded Knapsack Problem
Start with empty DP array
For each capacity from 1 to W
For each item
If item weight <= capacity
Update DP[capacity
Repeat for all capacities
DP[W
Return DP[W
We build a table where each capacity stores the best value possible by trying all items repeatedly.
