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

dynamic programming

时间:2014-08-26 11:17:25      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:os   io   for   ar   sp   on   c   type   app   

Dynamic programming, or the "put shit in a table" technique, is an optimization for certain types of recurrence problems (specifically, those with overlapping subproblems). So the first thing I would say is think recursion, don‘t think dynamic programming at first. Once you solve the recurrence, dynamic programming is just an extra step at the end.

To solve recurrences, I like to pretend that I have an oracle that will tell me the answer to every question except for the one I want to know. When thinking about it like that, I find that the recurrence becomes clear much more quickly.

dynamic programming

标签:os   io   for   ar   sp   on   c   type   app   

原文地址:http://www.cnblogs.com/miaoz/p/3936720.html

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