Mental Model
Greedy picks the best choice now, hoping it leads to the best overall. DP looks at all choices and remembers past results to find the best overall.
Analogy: Choosing snacks: greedy is like grabbing the tastiest snack first without thinking ahead; DP is like planning your snacks for the whole day to maximize happiness.
Choices: [1] -> [2] -> [3] -> [4] -> null Greedy: picks one step at a time -> DP: remembers best results from previous steps ↑
