
Dynamic Programming refers to a very large class of algorithms.
The idea is to break a large problem down (if possible)
into incremental steps so that, at any given stage,
optimal solutions are known to subproblems.
When the technique is applicable,
this condition can be extended incrementally without
having to alter previously computed optimal solutions to subproblems.
Eventually the condition applies to all of the data and,
if the formulation is correct,
this together with the fact that nothing remains untreated
gives the desired answer to the complete problem.
It is often the case in D.P. that the intermediate desirable condition
implies more than seems to be strictly needed for the final answer.
For example, the lineartime
Fibonacci
function, recursive or iterative, could be said to be a DPA.
It holds (at least) two values, fib(i1) and fib(i).
When `i' gets to `n', only one of these values is needed, fib(i)=fib(n).
However it is possession of the two values
that allows the lineartime algorithm.
Examples of dynamic programming include
 [editdistance],
longest common subsequence, spelling correction,
and similar problems on strings;
also Hirschberg's spaceefficient
[version],
a functional programming
[version]
and
a longest common subsequence (LCS) (LCSS),
algorithm using bit operations for speedup
[HTML],
 shortest path algorithms on
[graphs],
 [segmentation]
of a time series,
 some
[spanningtree]
algorithms.
L.A., Department of Computer Sci. University of Western Australia 19841986,
Department of Computer Sci. Monash University 1986, and
(HTML) School of Comp Sci & SWE, Monash University 1999

window on the wide world:

