Dynamic programming: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<!-- | <!-- | ||
" | In an overly-broad sense, "dynamic programming" is sometimes used in "what exactly it will execute depends in part on the data we handed in this time" in any sense. | ||
...but that describes so much code that the term is usually more specific. | |||
(It is often contrasted with "do exactly this with the input" in a way that will never behave fundamentally differently with with what data you give it (beyond some basic if-else branching)). | |||
It often suggests optimization problems that are best tackled by transforming the question into some data to be handled by subtasks. | |||
To which there ''may'' be no best solution and this is merely a very practical approach, | |||
: but there is further typology about whether solving the sub-problems can be optimal -- see terms like [https://en.wikipedia.org/wiki/Optimal_substructure optimal substructure]. | |||
--> | --> |