Concept Flow - Overlapping Subproblems and Optimal Substructure
Problem
→Break into Subproblems
Check if Subproblem
Use stored solution
| No
Compute Subproblem
Combine Subproblem Solutions
Final Solution
The problem is broken into smaller subproblems. If a subproblem repeats, reuse its solution (overlapping subproblems). Combine these solutions to solve the main problem (optimal substructure).
