How is dynamic programming similar to divide and conquer?
Both solve complex problems by breaking them into smaller, easier to solve subproblems.
How is dynamic programming different to divide and conquer?
The subproblems solved by dynamic programming are not independent, and are repeatedly encountered in different contexts.
What is Dynamic Programming effective for?
Problems where the same subproblem needs to be solved repeatedly.
Every dynamic programming algorithm uses:
A table that has one entry for each subproblem.
The development of a dynamic programming has 3 Key components:
Longest common String Running Time
O(m*n)