Mental Model
Greedy picks the best choice now, hoping it leads to the best overall. DP tries all choices carefully and remembers results to find the best overall.
Analogy: Imagine choosing snacks from a buffet: greedy is like grabbing the tastiest snack you see first, while DP is like trying small bites of all snacks and remembering which combination tastes best together.
Choices: [1] [2] [3] [4] Greedy: pick -> [2] -> [4] DP: explore all combos -> [1,3] or [2,4]
