Mental Model
We solve problems by breaking them down into smaller parts. Recursion tries all ways, greedy picks the best now, and DP remembers past results to avoid repeats.
Analogy: Imagine climbing stairs: recursion tries every path, greedy picks the easiest step each time, and DP remembers which steps cost less to avoid repeating work.
Recursion Tree:
root
/ \
... ...
Greedy Path:
start -> best choice -> best choice -> end
DP Table:
Index: 0 1 2 3
Value:25 15 20 0
Memo: [check] [check] [check] [check]