Mental Model
We want to fill a bag with items to get the most value, and we can take parts of items if needed.
Analogy: Imagine you have a backpack and different jars of honey. Each jar has a weight and sweetness. You want to fill your backpack with the sweetest honey possible, and you can pour some honey from a jar if it doesn't fit fully.
Items: [weight: 10, value: 60] -> [weight: 20, value: 100] -> [weight: 30, value: 120] Knapsack capacity: 50 Knapsack: empty ↑
