Skip to main content
edited tags
Link
Raphael
  • 72.9k
  • 30
  • 181
  • 393
Tweeted twitter.com/#!/StackCompSci/status/643942183180091392
Source Link
hey hey
  • 463
  • 4
  • 5

What is dynamic programming about?

Sorry in advance if this question sounds dumb...

As far as I know, building an algorithm using dynamic programming works this way:

  1. express the problem as a recurrence relation;
  2. implement the recurrence relation either via memoization or via a bottom up approach.

As far as I know, I have said everything about dynamic programming. I mean: dynamic programming does not give tools/rules/methods/theorems for expressing recurrence relations, nor for turning them into code.

So, what's special about dynamic programming? What does it give you, other than a vague method for approaching a certain kind of problems?