MST-最小生成树课件.ppt
《MST-最小生成树课件.ppt》由会员分享,可在线阅读,更多相关《MST-最小生成树课件.ppt(20页珍藏版)》请在三一办公上搜索。
1、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
2、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
3、 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
4、 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 t
5、ree 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 .,-,MS
6、TP: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
7、 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
8、 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
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- MST 最小 生成 课件
链接地址:https://www.31ppt.com/p-1286578.html