Till KTH:s startsida Till KTH:s startsida

Ändringar mellan två versioner

Här visas ändringar i "Dynamic programming" mellan 2015-02-12 11:18 av Johan Montelius och 2015-11-24 17:22 av Johan Montelius.

Visa < föregående | nästa > ändring.

Dynamiskc programmering

Dynamiskc programmering är en inte enis not a programmerings teknik utan ett strategi för att optimera eller hitta en lösning till ett komplext systchnique but rather a strategy to find an optimal solution to a problem. MaIn talar omhe same way as "linear programmering" när man löser ett system av linjära ekvationer för att maximera en vinst eller minimera en resurs. Dcan be used to find optimal solutions given a set of linear equation we can use dynamiskc programmering är inom samma. The strategy can be used to skola därve a problemen kan delas upp i steg som tar oss närmare en lösning och det ur alla möjliga lösningar gäller att hittat den bästa.¶ Vi skall titta på olika problem och hur man använder tekniken för att hitta en lösning som inte är exponentiell utan polynominell eller i bästa fall linjär. Kunskapen från Algoritmer och Datastrukturer är nödvändig så läs på om grafer och hur man hittar k if we can define a solution to the problem in terms of one smal step and the solution to a smaller problem; we thus use recursion as the tool. To find a solution in exponential time is often easy but if do it right we will be able to find a solution in polynomial time.¶

In order understand what we are talking about you should repeat the chapters on graph theory in the previous courses and how you can find the sh
ortaeste vägen path between two vertices.


* dynamic.pdf