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

基于Floyd方法的最短路径算法优化算法
引用本文:王荣,江东,韩惠.基于Floyd方法的最短路径算法优化算法[J].甘肃科学学报,2012,24(4):110-114.
作者姓名:王荣  江东  韩惠
作者单位:1. 兰州交通大学数理与软件工程学院,甘肃兰州 730070;中国科学院地理科学与资源研究所资源与环境信息系统国家重点实验室,北京 100101
2. 中国科学院地理科学与资源研究所资源与环境信息系统国家重点实验室,北京,100101
3. 兰州交通大学数理与软件工程学院,甘肃兰州,730070
基金项目:中国科学院重点部署项目"周边国家及全球资源环境科学数据库建设与决策支持研究",地震行业科研专项"中国地震应急救援的区域差异性分析"
摘    要:最短路径算法在各领域广泛应用,传统研究方法主要集中在算法应用及单一优化,将两种优化方法集于一体的算法很少.以兰州—北京的铁路运输系统实例,利用Floyd与Dijkstra算法结合、代码优化的方法优化传统Floyd算法.结果表明:优化后的算法在很大程度上减少了运算次数和时间,提高了算法的时间及空间复杂度,算法效率较高.

关 键 词:Floyd算法  算法优化  时空复杂度  最短路径

An Optimized Approach for Shortest Path Determination Based on Floyd Algorithm
WANG Rong , JIANG Dong , HAN Hui.An Optimized Approach for Shortest Path Determination Based on Floyd Algorithm[J].Journal of Gansu Sciences,2012,24(4):110-114.
Authors:WANG Rong  JIANG Dong  HAN Hui
Institution:1.School of Mathematical and Software Engineering,Lanzhou Jiaotong University,Lanzhou 730070,China; 2.State Key Laboratory of Resources and Environmental Information System,Research Institute of Geographic Sciences and Natural Resources,CAS,Beijing 100101,China)
Abstract:The Floyd and Dijkstra shortest path algorithms are classical algorithms which have been widely used in spatial analysis and other areas.Traditional research of the shortest path algorithm focuses on the application of the algorithm and the optimization of one kind of algorithm;the combination of two kinds of optimized methods is rarely seen.This paper attempts to use the method of combining the Floyd algorithm with Dijkstra algorithm and the optimization of the code of traditional Floyd algorithm by taking the Lanzhou—Beijing railway transportation system as an example.The spatial-temporal complexities before and after the optimization of the algorithm,are compared.The experimental results show that the optimized algorithm has greatly reduced the computational count and the operational time.As a result,the algorithm efficiency is improved.
Keywords:Floyd algorithm  optimization  spatial-temporal complexity  shortest path
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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