欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > PPT文档下载  

    MST-最小生成树课件.ppt

    • 资源ID:1286578       资源大小:413.14KB        全文页数:20页
    • 资源格式: PPT        下载积分:20金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要20金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    MST-最小生成树课件.ppt

    Minimum Spanning Tree,-,Minimum Spanning Tree,Flight Path Problem,-,Flight Path Problem-,Flight Path Problem,Consider the graph representing the airline connections between seven cities.,a,b,c,d,e,f,g,6,5,9,16,13,12,15,8,3,7,the least flight paths,the least cost,Flight Path Problem,Minimum Spanning Tree,-,Flight Path ProblemConsider th,Minimum Spanning Tree,IntroductionProblem DefinitionBoruvkas algorithmConclusion,-,Minimum Spanning TreeIntroduct,Introduction,The minimum spanning tree problem is one of the oldest and most basic graph problems in theoretical computer science. Its history dates back to Boruvkas algorithm in 1926 and till to day it is a extensively researched problem with new breakthroughs only recently.,-,Introduction The minimu,Problem Definition,All the graphs in this report are finite,simple,and undirected.We denote by n the number of vertices, m the number of edges in a graph G=(V,E).Our graphs are weighted,w(e)denoting the distinct weight of the edge e.,-,Problem DefinitionAll the grap,Problem Definition,A spanning tree in G is an acyclic subgraph of G that includes every vertex of G and is connected; every spanning tree has exactly n-1 edges. The weight of a tree is defined to be the sum of the weights of its edges. A minimum spanning tree (MST) is a spanning tree of minimum weight.,-,Problem DefinitionA spanning t,MSTP:,The Minimal Spanning Tree problem (MSTP)is: Input: A weighted graphG=(v,e ,w). Output: The Unique spanning tree T that minimizes .,-,MSTP:The Minimal Spanning Tree,MSF,When the input graph G is not connected, a spanning tree does not exist and we generalize the notion of a minimum spanning tree to that of a minimum spanning forest (MSF).A spanning forest is a forest whose trees are spanning trees for the connected components of the graph G.,-,MSFWhen the input graph G is n,MSF,So when G is not connected we find the minimal spanning forest MSF: A set of trees,one in each of the connected component of G,each tree being a minimal spanning tree of the graph induced by the component.A spanning forest is a spanning tree if and only if the graph is connected.,-,MSFSo when G is not connected,MST,a spanning tree: ahbcigfedthe weights of this tree: 8+11+8+2+6+2+10+9=56.minimal spanning tree: abcifghdethe weights of MST: 4+8+7+2+4+9+2+1=3756.,-,MSTa spanning tree:,MST,Given an edge-weighted graph, this problem calls for finding a subtree spanning all the vertices, whose total weight is minimal. For a n-degree complete graph, there are spanning trees .Then the central open question is: Does there exist a linear time deterministic algorithm that finds the minimal spanning tree?,-,MSTGiven an edge-weighted grap,MSTP,The MSTP is one of the best-studied problems in combinatorial optimization. A variety of algorithms have been developed for this problem, most of which are based on a greedy strategy and run in near-linear O(m log n) time, e.g.,Boruvkas algorithm , Kruskals algorithm , Prims algorithm.,-,MSTPThe MSTP is one of the bes,Boruvkas algorithm,The first MST algorithm was devised by Boruvka ,the algorithm is based on the greedy strategy. The basic step in Boruvkas algorithm is the heart of many MST algorithms till to day.,-,Boruvkas algorithm The f,Boruvkas algorithm,we start with one-vertex trees; for each vertex v, we look for an edge(vw) of minimum weight among all edges outgoing from vcreate small trees by including these edges. Then, we look for edges of minimal weight that can connect the resulting tree to larger trees. The process is finished when one tree is created.,-,Boruvkas algorithmwe start wi,The process of Boruvkas algorithm,a,b,c,d,e,f,g,a,b,c,d,e,f,g,a,b,c,d,e,f,g,6,5,9,16,13,12,15,8,3,7,5,6,7,8,3,12,2.For this graph, out of seven one-vertex ,two trees are created because, for vertices a and c,edge( ac) is chosen, for vertex b, edge(ab) is chosen, for vertex d, edge(df) is chosen, for vertex e, edge(eg) is chosen, and for vertices f and g, edge(fg) is chosen.,3.for the tree(abc) and the tree(defg), edge(cf)is selected, since it is the shortest edge that connects these two trees, resulting in one spanning tree.,3,8,7,5,6,-,The process of Boruvkas algor,pseudocode:,BoruvkaAlgorithnm(weighted connected undirected graph) make each vertex the root of a one-node tree; While there is more than one tree For each tree t e=minimum weight edge(vu) where v is included in t and u is not; create a tree by combining t and the tree that includes u if such a tree does not exist yet;,-,pseudocode: BoruvkaAlgorithnm,Boruvkas algorithm,Does this algorithm run in a linear time?Boruvkas algorithm thus reduces the MST problem in an n-vertex graph with m edges to the MST problem in an (n/2)-vertex graph with at most m edges. The time required for the reduction is only O(m+n). It follows that the worst-case running time of this algorithm is O(m log n).,-,Boruvkas algorithm Does th,Conclusion,Boruvkas method lends itself very nicely to parallel processing, since for each tree, a minimum edge has to be found independently.,-,ConclusionBoruvkas method le,Thats all!Thank you!,-,Thats all!Thank you!,

    注意事项

    本文(MST-最小生成树课件.ppt)为本站会员(牧羊曲112)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开