- 1、本文档共39页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- Dealing With AIDS 大学英语精读 教学课件.ppt
- Deductive Research 大学论文写作课课件(英文).ppt
- denisi_HR_1e_PPTs_ch02 人力资源管理 外教 课件.ppt
- denisi_HR_1e_PPTs_ch01 人力资源管理 外教 课件.ppt
- denisi_HR_1e_PPTs_ch05 人力资源管理 外教 课件.ppt
- denisi_HR_1e_PPTs_ch06 人力资源管理 外教 课件.ppt
- denisi_HR_1e_PPTs_ch07 人力资源管理 外教 课件.ppt
- DES 信息安全概论课件与复习提纲.ppt
- Deutschland 德语教学课件.doc
- Dickinson 高等教育出版社 美国文学选读课件.ppt
最近下载
- (415)动物生理与生物化学真题及解析-中国农业大学.pdf
- 第五单元说明文大单元教学设计课件 部编版语文八年级上册.pptx
- 标准图集-08CJ17快速软帘卷门 透明分节门 滑升门 卷帘门.pdf
- (最新)技能考试企业技能等级认定质量督导员公共知识真题练习试卷附答案.docx
- 全文解读2022年新制订全国护理事业发展规划(2021-2025年)课件.pptx VIP
- 北京屋顶光伏实施方案.docx
- 党务知识试题.doc VIP
- 北师大版数学五年级上册全册课件ppt完整版.ppt
- 2024年可持续航空燃料发展路径研究报告-GSTIKC&空中客车&中国南方航空.docx
- 幼儿园:融合教育教案《面具》.doc
文档评论(0)