Dynamic Programming Flashcards

1
Q

What is dynamic programming?

A

a method for solving a complex problem by breaking it down into a collection of simpler subproblems, solving each of those subproblems just once, and storing their solutions using a memory-based data structure (array, map, etc.). So the next time the same sub-problem occurs, instead of recomputing its solution, one simply looks up the previously computed solution, thereby saving computation time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly