What is Dynamic Programming??

Write here if you have problems with your C source code

Moderator: Board moderators

Post Reply
Melon Melon
New poster
Posts: 17
Joined: Fri May 31, 2002 6:30 pm
Contact:

What is Dynamic Programming??

Post by Melon Melon »

:roll: As topic.
Stefan Pochmann
A great helper
Posts: 284
Joined: Thu Feb 28, 2002 2:00 am
Location: Germany
Contact:

Post by Stefan Pochmann »

It's a general, very useful technique. You'll find it in every good general algorithm book, for example Skiena or CLRS. It exploits optimal substructure and overlapping subproblems of problems and usually involves having a large table of answers for subproblems so that they're computed only once and in subsequent request just looked up in the table.
Ming Han
Learning poster
Posts: 77
Joined: Thu Jun 06, 2002 7:10 pm
Location: Singapore
Contact:

Dynamic Programming

Post by Ming Han »

Dynamic Programming

Definition: An algorithmic technique in which an optimization problem is solved by caching subproblem solutions (memoization) rather than recomputing them.

see http://www.nist.gov/dads/HTML/dynamicprog.html
Stefan Pochmann
A great helper
Posts: 284
Joined: Thu Feb 28, 2002 2:00 am
Location: Germany
Contact:

Post by Stefan Pochmann »

Hmm, I'm not sure if I'd accept that as a "definition". One thing that both you and I missed is that it's not only applied to optimization problems. Or is it only called DP when it is? Hmm...

Btw, has anybody read the book by Bellman and understood it? I looked into it once, but didn't get too far. It's pretty abstract, I think.
Moebius
New poster
Posts: 2
Joined: Sat Nov 02, 2002 1:47 am
Location: Galicia, Spain
Contact:

Post by Moebius »

Conclusion: it's just the ancient technique of making tables of precomputed values, but with a nifty name :wink:
Post Reply

Return to “C”