版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1Minimum Spanning Tree 2Flight Path Problem3Flight Path Problem Consider the graph representing the airline connections between seven cities.abcdefg65916131215837the least flight pathsthe least cost Flight Path ProblemMinimum Spanning Tree4Minimum Spanning Tree Introduction Problem Definition Boruvk
2、as algorithm Conclusion5Introduction 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.
3、 6Problem 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.7Problem Definition A spanning tree in G is an acyclic subgraph
4、 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.8MSTP: The Minimal Spanning Tree problem (MSTP)is: Input: A
5、 weighted graphG=(v,e ,w). Output: The Unique spanning tree T that minimizes .)(ewTe9MSF 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 tre
6、es are spanning trees for the connected components of the graph G.10MSF 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
7、spanning tree if and only if the graph is connected. 11MSTa 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.12MST2nn Given an edge-weighted graph, this problem calls for finding a subtree spanning all the
8、 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? 13MSTP The MSTP is one of the best-studied problems in combinatorial opt
9、imization. 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.14Boruvkas algorithm The first MST algorithm was devised by Boruvka ,the algori
10、thm is based on the greedy strategy. The basic step in Boruvkas algorithm is the heart of many MST algorithms till to day. 15Boruvkas algorithmV we start with one-vertex trees; for each vertex v, we look for an edge(vw) of minimum weight among all edges outgoing from v create small trees by includin
11、g 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.16The process of Boruvkas algorithm abcdefgabcdefgabcdefg6591613121583756783122.For this graph, out of seven one-vertex ,two trees are create
12、d 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 con
13、nects these two trees, resulting in one spanning tree.3875617pseudocode: 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 tr
14、ee by combining t and the tree that includes u if such a tree does not exist yet;18Boruvkas 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 t
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 工业菜油销售合同范本
- 乡村公路改造施工合同范本
- 正规的房屋拆迁合同范本
- 四年级数学上册月考培优提升试卷(含解析)
- 山西省大同市矿区2027届九年级数学第一学期期末教学质量检测试题含解析
- 2027届重庆市江北区新区联盟八年级数学第一学期期末达标测试试题含解析
- 供应链抗风险能力与绿色运营协同发展研究
- 数字技能培训体系对劳动力适应性提升与产业转型支撑作用研究
- 肋骨结核模拟试题及答案详解
- 计算机考试1级模拟试题及答案详解
- 医院咨询服务解决方案
- 高中军训军事理论课件
- bot项目建设合同范本
- 项目四流量检测仪表任务7认识靶式流量计26课件
- 质量管理五大工具培训教材
- 肩袖损伤中西医结合诊疗指南
- 血流导向装置治疗动脉瘤
- 肝脓肿术后的护理查房
- 教师系列任现职以来教学工作情况证明材料
- GB/T 19183.1-2024电气和电子设备机械结构户外机壳第1部分:设计导则
- 绿网苫盖合同范例
评论
0/150
提交评论