Dynamic Programming 动态规划 最优化理论与方法课件(英文版-南京大学).ppt

Dynamic Programming 动态规划 最优化理论与方法课件(英文版-南京大学).ppt

  1. 1、本文档共39页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Dynamic Programming 动态规划 最优化理论与方法课件(英文版-南京大学)

Dynamic Programming 动态规划 * Two Well-known Puzzles Example 1 Suppose there are 30 matches on a table. I begin by picking up 1, 2 or 3 matches. Then my opponent must pick up 1, 2 or 3 matches. We continue in this fashion until the last match is picked up. The player who picks up the last match is the loser. How can I (the first player) be sure of winning the game? Example 2 I have a 9-liter and a 4-liter cup. If I want to bring home exactly 6 liters of milk, how can I accomplish this? * A Network Problem Joe lives in Newyork city and plans to drive to Los Angeles. What is the shortest route that he can travel? Many applications of DP reduce to finding the shortest path (or longest) that joins two points in a given network. * A Network Problem Let’s find the shortest path between Newyork and LA by going backward. * A Network Problem * A Network Problem – Stage 4 We first determine the shortest path to Los Angeles from each stage 4 city. * A Network Problem – Stage 3 We now go backward one stage and find the shortest path from each stage 3 city. * A Network Problem – Stage 3 * A Network Problem – Stage 2 Path 3: * A Network Problem – Stage 1 Optimal Path: 1?2?5?8?10 * Computational Efficiency of DP For the above network example, it is easy to enumerate all the possible paths. (There are 3x3x2=18 paths). For larger problems, DP is much more efficient than the enumeration of all paths. Suppose, we have network consisting of 7 stages, and stage 2 through stage 6 consisting of 5 nodes each. * Computational Efficiency of DP There are 55 possible paths from node 1 to node 27. It requires 5 additions to determine the length of each path: Therefore, the total number of additions needed in explicit enumeration is 5(55)=56 Suppose we use DP to determine the shortest path from node 1 to node 27, how many additions are required? * Computational Efficiency of DP In total, DP requires 4(25)+5=105 additions to find the shortest path from node 1 to node 27 Beside

文档评论(0)

qiwqpu54 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档