现代计算机2024,Vol.30Issue(1) :66-69.DOI:10.3969/j.issn.1007-1423.2024.01.011

Floyd多源最短路径算法的并行化研究

Research on parallelization of Floyd-Warshall algorithm

龚宁静
现代计算机2024,Vol.30Issue(1) :66-69.DOI:10.3969/j.issn.1007-1423.2024.01.011

Floyd多源最短路径算法的并行化研究

Research on parallelization of Floyd-Warshall algorithm

龚宁静1
扫码查看

作者信息

  • 1. 湖北警官学院信息技术系,武汉 430034
  • 折叠

摘要

首先对现有的Floyd多源最短路径算法进行分析,指出了该算法执行效率低下,无法在数据量大的稠密图上高效运行这一问题.为解决这一问题,从并行计算的角度着手研究,将算法中插入点给定时进行一次矩阵迭代并逐条刷新所有当前最短路径的顺序过程优化为基于并行计算的同步刷新过程.该优化使得Floyd算法的时间复杂度由原来的立方阶降低为线性阶,从理论上提高了算法的执行效率,使该算法对数据量大的稠密图顺利进行计算和求解成为了可能.

Abstract

This article first analyzes the existing Floyd-Warshall algorithm and points out the problem of low execution effi-ciency and inability to run efficiently on dense graphs with large amounts of data.To solve this problem,this article studies from the perspective of parallel computing,optimizing the sequential process of performing a matrix iteration with a given insertion point in the algorithm and refreshing all the current shortest paths one by one to a synchronous refreshing process based on parallel comput-ing.This optimization reduces the time complexity of Floyd algorithm from the original cubic order to the linear order,improves the execution efficiency of the algorithm theoretically,and makes it possible for the algorithm to calculate and solve the dense graph with large amount of data smoothly.

关键词

Floyd算法/并行计算/最短路径/多源/矩阵运算

Key words

Floyd-Warshall algorithm/parallel computing/shortest path/multiple sources/matrix operation

引用本文复制引用

出版年

2024
现代计算机
中大控股

现代计算机

影响因子:0.292
ISSN:1007-1423
参考文献量7
段落导航相关论文