2011年8月23日

算法之美:动态规划

摘要: 前言和分治法一样,动态规划(dynamic programing)是通过组合子问题的解而解决整个问题的。注意这里的programing翻译成立规划而不是编程。维基百科上写道This is also usually done in a tabular form by iteratively generating solutions to bigger and bigger subproblems by using the solutions to small subproblems.这说明动规的关键是table,是子问题。而且动规的子问题是相互关联的。而分治算法是将问题划分成相对独立的子问题,递 阅读全文

posted @ 2011-08-23 22:15 Bourbon 阅读(37732) 评论(14) 推荐(10) 编辑

导航