Lecture 19: Dynamic Programming I: Fibonacci, Shortest Paths
MIT OpenCourseWareYouTube ↗
Further reading 1
Caption notes
Fibonacci exposes repeated calls to the same subproblem. After memoization, count distinct subproblems and the work performed within each call.
Video or transcript source ↗Original passages · 2
split it into subproblems, solve those subproblems, and reuse the solutions to your subproblems.So I count how many different subproblems do I need to do?