版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026-2031年中国知识付费行业市场调查研究与发展前景研究报告
- 2026年宁夏小升初语文真题试卷带答案
- 老师讲课单招试题及答案
- 2026年江苏徐州市鼓楼区开发区中学中考生物仿真模拟测试(四)(文字版含答案)
- 高中语文跟踪训练:必修一+第11课+包身工(无答案)
- 中学班主任主题班会课件:感恩教育主题班会
- 湖南省湘西土家族苗族自治州2025-2026学年高一下学期期末政治试卷 含答案
- 东南亚跨境互联网数字皮影制作文化中跨国雕刻版权-基于印尼及泰国皮影数字工艺档案实证
- 扎囊县2025届三年级数学下学期期中调研模拟试题(含答案)
- ISO 232562023 水质.选定的多氯联苯二苯并对二恶英和多氯联苯同源物的检测.流动免疫传感器技术的方法标准立项发展报告
- 卫生监督协管员培训考试题及答案
- 床轮椅转移课件
- 专升本《西方经济学》模拟试题和答案
- 厨房油烟机清洗培训课件
- 西藏招商引资管理办法
- 质量管理五大工具培训教材
- 物资采购服务投标方案
- 高血钾急救流程标准化处理
- 压力容器制造质量管理体系2025年内审资料
- 16G362钢筋混凝土结构预埋件(详细书签)图集
- 湖北省武汉市2024年中考英语模拟试卷(含答案)
评论
0/150
提交评论