- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
2007-2008-01《Design and Analysis of Algorithms》SCUEC Goals of This Lecture At the end of this lecture, you should Understand the basic idea and general solving process of greedy approach Master the properties and greedy selection strategies of MST problem Master Dijkstra algorithm and its application Example: Change-Making Problem The solution is optimal for any amount and “normal’’ set of denominations may not be optimal for arbitrary money denominations Greedy Technique For some problems, yields an optimal solution for every instance. For most, does not but can be useful for fast approximations. Greedy Technique (cont.) Given a positive answer is very hard, but generally speaking, the problem has two important properties: Optimal substructure property: the optimal solution of the problem contains the optimal solution of its subproblem Greedy selection property: the global optimal solution of the problem can be achieved through a series of local optimal choice Solving Process of Greedy Approach MST Problem (Concept) Minimum spanning tree of a weighted, connected graph G: a spanning tree of G of minimum total weight Discussion Is the minimum spanning tree of graph always unique? yes, provide examples no, why? try to find out what kind of graphs has a unique mst Optimal substructure property MSTs satisfy the optimal substructure property: an optimal tree is composed of optimal subtrees Let T be an MST of G with an edge (u,v) in the middle Removing (u,v) partitions T into two trees T1 and T2 Claim: T1 is an MST of G1 = (V1,E1), and T2 is an MST of G2 = (V2,E2) (Do V1 and V2 share vertices? Why?) Proof: w(T) = w(u,v) + w(T1) + w(T2) Greedy selection strategy The shortest edge strategy (kruskal algorithm): in each greedy selection step, choose the shortest edge, if not generate cycle when add it to the edge set of the spanning tree, then add it to the edge set of the spanning tree. Single-Source Shortest Path E.g., a road map: what is the shortest path from Wuh
您可能关注的文档
最近下载
- 新能源汽车整车控制系统检测与维修高职PPT完整全套教学课件.pptx VIP
- 人教版一年级数学上册《比大小》课件(共38张PPT).pptx VIP
- 血管活性药物静脉输注护理---团体标准解读.pptx VIP
- 2025年全国质量月培训讲座PPT课件.pptx VIP
- 自考《文学概论》第五章-抒情作品教学课件.ppt VIP
- 北师大版九年级数学上册全册教案教学设计.pdf VIP
- 恶心与呕吐腹泻.ppt VIP
- 2025年中国学生床上用品数据监测研究报告.docx
- 1.1 地球的自转和公转 课件-2024-2025学年中图版初中地理八年级上册.pptx VIP
- EduSoho系统功能说明书v7.2(1231).doc VIP
文档评论(0)