Mental Model
We want to pick items with weights and values to maximize value without exceeding a weight limit. Each item can be chosen only once.
Analogy: Imagine packing a backpack for a trip. You have limited space (weight limit) and many items with different usefulness (value). You want to pack the most useful combination without overloading.
Backpack capacity: 5 Items: [Item1: weight=2, value=3] [Item2: weight=3, value=4] [Item3: weight=4, value=5] Backpack (capacity slots): [ ] [ ] [ ] [ ] [ ] We try to fill these slots with items without exceeding capacity.