




已阅读5页,还剩15页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
MinimumSpanningTree,1,FlightPathProblem,2,FlightPathProblem,Considerthegraphrepresentingtheairlineconnectionsbetweensevencities.,a,b,c,d,e,f,g,6,5,9,16,13,12,15,8,3,7,theleastflightpaths,theleastcost,FlightPathProblem,MinimumSpanningTree,3,MinimumSpanningTree,IntroductionProblemDefinitionBoruvkasalgorithmConclusion,4,Introduction,Theminimumspanningtreeproblemisoneoftheoldestandmostbasicgraphproblemsintheoreticalcomputerscience.ItshistorydatesbacktoBoruvkasalgorithmin1926andtilltodayitisaextensivelyresearchedproblemwithnewbreakthroughsonlyrecently.,5,ProblemDefinition,Allthegraphsinthisreportarefinite,simple,andundirected.Wedenotebynthenumberofvertices,mthenumberofedgesinagraphG=(V,E).Ourgraphsareweighted,w(e)denotingthedistinctweightoftheedgee.,6,ProblemDefinition,AspanningtreeinGisanacyclicsubgraphofGthatincludeseveryvertexofGandisconnected;everyspanningtreehasexactlyn-1edges.Theweightofatreeisdefinedtobethesumoftheweightsofitsedges.Aminimumspanningtree(MST)isaspanningtreeofminimumweight.,7,MSTP:,TheMinimalSpanningTreeproblem(MSTP)is:Input:AweightedgraphG=(v,e,w).Output:TheUniquespanningtreeTthatminimizes.,8,MSF,WhentheinputgraphGisnotconnected,aspanningtreedoesnotexistandwegeneralizethenotionofaminimumspanningtreetothatofaminimumspanningforest(MSF).AspanningforestisaforestwhosetreesarespanningtreesfortheconnectedcomponentsofthegraphG.,9,MSF,SowhenGisnotconnectedwefindtheminimalspanningforestMSF:Asetoftrees,oneineachoftheconnectedcomponentofG,eachtreebeingaminimalspanningtreeofthegraphinducedbythecomponent.Aspanningforestisaspanningtreeifandonlyifthegraphisconnected.,10,MST,aspanningtree:ahbcigfedtheweightsofthistree:8+11+8+2+6+2+10+9=56.minimalspanningtree:abcifghdetheweightsofMST:4+8+7+2+4+9+2+1=3756.,11,MST,Givenanedge-weightedgraph,thisproblemcallsforfindingasubtreespanningallthevertices,whosetotalweightisminimal.Foran-degreecompletegraph,therearespanningtrees.Thenthecentralopenquestionis:Doesthereexistalineartimedeterministicalgorithmthatfindstheminimalspanningtree?,12,MSTP,TheMSTPisoneofthebest-studiedproblemsincombinatorialoptimization.Avarietyofalgorithmshavebeendevelopedforthisproblem,mostofwhicharebasedonagreedystrategyandruninnear-linearO(mlogn)time,e.g.,Boruvkasalgorithm,Kruskalsalgorithm,Primsalgorithm.,13,Boruvkasalgorithm,ThefirstMSTalgorithmwasdevisedbyBoruvka,thealgorithmisbasedonthegreedystrategy.ThebasicstepinBoruvkasalgorithmistheheartofmanyMSTalgorithmstilltoday.,14,Boruvkasalgorithm,westartwithone-vertextrees;foreachvertexv,welookforanedge(vw)ofminimumweightamongalledgesoutgoingfromvcreatesmalltreesbyincludingtheseedges.Then,welookforedgesofminimalweightthatcanconnecttheresultingtreetolargertrees.Theprocessisfinishedwhenonetreeiscreated.,15,TheprocessofBoruvkasalgorithm,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.Forthisgraph,outofsevenone-vertex,twotreesarecreatedbecause,forverticesaandc,edge(ac)ischosen,forvertexb,edge(ab)ischosen,forvertexd,edge(df)ischosen,forvertexe,edge(eg)ischosen,andforverticesfandg,edge(fg)ischosen.,3.forthetree(abc)andthetree(defg),edge(cf)isselected,sinceitistheshortestedgethatconnectsthesetwotrees,resultinginonespanningtree.,3,8,7,5,6,16,pseudocode:,BoruvkaAlgorithnm(weightedconnectedundirectedgraph)makeeachvertextherootofaone-nodetree;WhilethereismorethanonetreeForeachtreete=minimumweightedge(vu)wherevisincludedintanduisnot;createatreebycombiningtandthetreethatincludesuifsuchatreedoesnotexistyet;,17,Boruvkasalgorithm,Doesthisalgorithmruninalineartime?BoruvkasalgorithmthusreducestheMSTprobleminann-vertexgraphwithmedgestotheMSTprobleminan(n/2)-vertexgraphwithatmostmedges.ThetimerequiredforthereductionisonlyO(m+n).Itfollowsthattheworst
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 耶鲁斯坦福课件
- 耐药菌知识培训课件
- 福建-全国名校联盟2026届高三联合开学摸底考试物理(含答案)
- 2026届上海市上海市三林中学化学高三第一学期期中考试模拟试题含解析
- 基于敏捷方法的软件项目管理中的风险识别与评估研究与实践案例分析
- 羊奶粉知识培训心得
- 海康威视门禁考勤机广告传媒考勤方案计划
- 香薰蜡烛基础知识培训班课件
- 实验活动5一定溶质质量分数的氯化钠溶液的配制说课稿-2023-2024学年九年级化学人教版下册
- 企业培训师德师风心得体会
- 绿化养护服务投标方案(技术标)
- 小区物业服务投标方案(技术标)
- 单位资产清查工作实施方案
- 天路男声合唱谱
- 电网工程劳务分包 投标方案(技术方案)
- DB32T3916-2020建筑地基基础检测规程
- 护理专业实训室设备管理制度
- 2024届陕西省渭南市临渭区小升初语文重难点模拟卷含答案
- 配电自动化终端缺陷处理
- 小学道德与法治六年级上册第三单元《我们的国家机构》单元整体分析 大单元整体教学设计
- 《电力系统治安反恐防范要求 第4部分:风力发电企业》
评论
0/150
提交评论