(7.8.1)--ch7-12-图的单源最短路径-Dijkstra思想.pdf

上传人:奉*** 文档编号:50072176 上传时间:2022-10-12 格式:PDF 页数:9 大小:678.59KB
返回 下载 相关 举报
(7.8.1)--ch7-12-图的单源最短路径-Dijkstra思想.pdf_第1页
第1页 / 共9页
(7.8.1)--ch7-12-图的单源最短路径-Dijkstra思想.pdf_第2页
第2页 / 共9页
点击查看更多>>
资源描述

《(7.8.1)--ch7-12-图的单源最短路径-Dijkstra思想.pdf》由会员分享,可在线阅读,更多相关《(7.8.1)--ch7-12-图的单源最短路径-Dijkstra思想.pdf(9页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、 Data Structures and Algorithms Single Source Shortest Path of Graphs Dijkstra IdeaData Structures and AlgorithmsData Structures and Algorithms1Chapter7 Graphs7.5 Application of graphData Structures and AlgorithmsData Structures and Algorithms2the shortest path problem of the weighted graphs In the

2、path from one vertex(source point)to another vertex(destination point),The path with the smallest sum of the weights of each side(or arc)is called the shortest path.the shortest path from one single source vertex to other vertexes in the graph Dijkstra algorithm(Dijkstra).the shortest path problem b

3、etween each pair of vertexes Floyd algorithm(Floyd)Chapter7 Graphs7.5 Application of graphData Structures and AlgorithmsData Structures and Algorithms*Dijkstra algorithm(Dijkstra)basic thought:Each path is calculated in order of increasing length of the shortest path。V0vivjThe shortest path form sou

4、rce point v0 to the vertex vi is the shortest length in the set of path lengths from the source point v0 to the points.the shortest path problem of the weighted graphsChapter7 Graphs7.5 Application of graphData Structures and AlgorithmsData Structures and Algorithms*Dijkstra algorithm(Dijkstra)The c

5、haracteristic of shortest path with shortest path length:On this path.It must contain only one arc and the weight of this arc should be the smallest.(Lets say v0 vi)The characteristic of shortest paths with the shortest length of the next path:There are only two possibilities:Or you could go directl

6、y from the source to the point vi which is just one arc.Or the vertex vk of the shortest path from the sourceChapter7 Graphs7.5 Application of graphData Structures and AlgorithmsData Structures and Algorithms*The characteristic of the rest of the shortest path:The characteristic of the next path,the

7、 shortest path with the shortest length:could be one of two things:Or you could just go from the source point to the point with just one arc.Or you can go from the source to the vertex vk,vi to the vertex.There is only one arc directly from the source to the point.Or the vertex in the shortest path

8、from the source And then you go to that vertex数数 据据 结结 构构Dijkstra algorithm(Dijkstra)Chapter7 Graphs7.5 Application of graphData Structures and AlgorithmsData Structures and Algorithms*Dijkstra algorithm(Dijkstra)Chapter7 Graphs7.5 Application of graphData Structures and AlgorithmsData Structures an

9、d Algorithms*v5v2v41003060101055020v3v1v0destination distV1V2V3V4V512345/60(V0,V4,V3,V5)/90(V0,V4,V5)/50(V0,V4,V3)/100(V0,V5)30(V0,V4)60(V0,V2,V3)/100(V0,V5)30(V0,V4)10(V0,V2)the shortest path lengh (v0,v2)10v5v2v4301020v3v1v010(v0,v4)30(v0,v4,v3)50(v0,v4,v3,v5)60 v0v1 无无D Da at ta a S St tr ru uc ct tu ur re es s a an nd d A Al lg go or ri it th hm ms s Thanks!

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 大学资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁