- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
动态规划总结(Dynamic programming summary)
动态规划总结(Dynamic programming summary)
Although all are used to the previous results
But the way of dealing is very different. Greed is the best choice for each one, producing an optimal result
The dynamic programming is to calculate the optimal results produced by all the choices at each step. Finally, the optimal results are obtained
-----------------------------------------------------------------
Greedy algorithm is a strategy, thinking...
It does not have a fixed pattern
For example, the simplest knapsack problem
There are probably many ways to do it with greed
Of the highest value, value, or weight
And you cant make sure that the greedy policy you choose is absolutely optimal for all situations
The idea of dynamic programming is divide and conquer + solve sink
Break a complex problem into small pieces
The optimal solution is obtained for every small problem
And get better answers from these optimal solutions
Typical examples of number tower problems
Draw a picture and youll see it
-----------------------------------------------------------------
The difference between dynamic programming and greedy algorithms
Dynamic programming and greedy algorithm are recursive algorithms
The local optimum solution is used to derive the global optimum
Difference:
Greedy algorithm:
1. the greedy algorithm, make every step of the greedy decision can be changed, because the greedy strategy is the optimal one step optimal solution is the next step of the solution, and the optimal solution before a no reservation.
2. from the introduction of (1), we can know that the correct condition of greedy method is that the optimal solution of each step must contain the best solution of the previous step.
Dynamic programming algorithm:
1., the global optimal solution must contain a local optimal solution, but it does not necessarily contain the previous local optimal solution. Therefore, all the prior optimal solutions need to be recorded
2., the key of dynamic programming is the state transit
您可能关注的文档
- 光伏发电市场已成为逆变器供应商兵家必争之地(PV inverter supplier military market has become a hotly contested spot).doc
- 先进班级申报材料(Advanced class declaration materials).doc
- 光伏建筑一体化(二)(Photovoltaic building integration (two)).doc
- 光传输常用概念(Common concepts in optical transmission).doc
- 光伏组件玻璃研究(Study on photovoltaic module glass).doc
- 光域网(Optical domain network).doc
- 光头党(skinheads)(Skinheads (skinheads)).doc
- 光学常用术语(Optical terminology).doc
- 光影与色彩在室内设计中的结合与运用研究(Research on the combination and application of light and shadow in interior design).doc
- 光模块常用知识(Common knowledge of optical modules).doc
最近下载
- 华中师范大学介绍.pptx
- 02 高考60篇古诗文(必修上12首)必背诗歌速记及易错字标识-2026年高考语文一轮复习之古诗文专题(全国通用).docx
- 第3讲基本体和组合体的三视图.ppt VIP
- (2024秋新版)部编版一年级语文上册《 两件宝》PPT课件.pptx VIP
- 生产制造部年终工作总结报告PPT模板.pptx VIP
- 通信铁塔设施运营维护支撑系统用户操作手册.doc VIP
- 教科版四年级科学下册第一单元植物的生长变化2单元作业设计.pdf VIP
- 南京邮电大学2021-2022学年第1学期《高等数学(上)》期末考试试卷(A卷)及标准答案.pdf
- 口腔不良习惯导致错颌畸形.pptx VIP
- 报关与报检实务(第3版)课件 第3、4章 一般进出口货物报关程序、 保税进出口货物报关程序.ppt
原创力文档


文档评论(0)