码迷,mamicode.com
首页 > 其他好文 > 详细

Dynamic Programming

时间:2017-08-09 20:09:57      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:dep   problem   ble   do it   ons   express   seq   last   work   

First, think of solution as a linear sequence of decisions.

Second, work backward from the last decision to see: how a decision depends on previous decisions.

Third, introduce some notation to express the recursive relation,

Fourth, generate condition, find out boundary condition, find out how to do iteration

 

Typical problem: knapsack, longest common subsequence...

Dynamic Programming

标签:dep   problem   ble   do it   ons   express   seq   last   work   

原文地址:http://www.cnblogs.com/ariel-zhang/p/6902562.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!