首页 | 本学科首页   官方微博 | 高级检索  
     检索      

Floyd算法的改进与优化
引用本文:代修宇,程国忠.Floyd算法的改进与优化[J].西昌学院学报(自然科学版),2012(1):63-65.
作者姓名:代修宇  程国忠
作者单位:西华师范大学数学与信息学院,四川南充637002
摘    要:介绍一个改进的Floyd算法。本文综合运用C++语言编程技术,设计并实现了求带权有向图中各个顶点之间最短路径的算法,反映了最短路径序列上前后两个顶点之间的先后关系。本算法从顶点出发,每次在求各顶点间最短路径的时候,都进行路径优化。改进后的Floyd算法,迭代速度快,计算量一定程度减少。

关 键 词:FlOyd算法  最短路径  带权有向图

Improvement and Optimization of Floyd Algorithm
DAI Xiu-yu and CHENG Guo-zhong.Improvement and Optimization of Floyd Algorithm[J].Journal of Xichang College,2012(1):63-65.
Authors:DAI Xiu-yu and CHENG Guo-zhong
Institution:(College of Mathematic & Information,China West Normal University,Nanchong,Sichuan 637002)
Abstract:This paper introduces an improved Floyd algorithm.By comprehensively using C ++ Language Programming Techniques,we design and achieve the algorithm of the shortest path among the vertexes in a weighted directed graph,which reflects the sequential relationships between two vertexes before and after the shortest path. Started from the vertexes,the improved algorithm would make paths optimization when we calculate the shortest path among the vertexes every time.What' s more,the improved Floyd algorithm has a rapid iterative speed and its calculated quantity has been reduced to a certain extent.
Keywords:Floyd algorithm  The shortest path  Weighted directed graph
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《西昌学院学报(自然科学版)》浏览原始摘要信息
点击此处可从《西昌学院学报(自然科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号