Computer Science ›› 2014, Vol. 41 ›› Issue (6): 180-184.doi: 10.11896/j.issn.1002-137X.2014.06.035

Previous Articles     Next Articles

Analysis and Improvement of SPFA Algorithm

XIA Zheng-dong,BU Tian-ming and ZHANG Ju-yang   

  • Online:2018-11-14 Published:2018-11-14

Abstract: SPFA (Shortest Path Faster Algorithm) algorithm is a kind of single-source shortest path algorithm for digraphs.Because its easy implementation and good performance,SPFA has a large influence in the Domestic.But unfortunately,it lacks of correct theoretical analysis.This paper analysed this algorithm both in theoretical and experimental.The paper pointed out that the worst-case running time of SPFA algorithm is Θ(|V||E|) in the case of digraphs with no negative-weight cycle reachable from the source.In the case of digraphs with negative-weight cycle reachable from the source,the algorithm will run indefinitely.This paper then revisesd the algorithm so that it is O(|V||E|) for any digraphs.Finally,this paper compared SPFA in experiment with other shortest path algorithms which are based on the same idea.

Key words: Combinational algorithm,Single-source shortest paths,SPFA algorithm,Bellman-Ford algorithm

[1] 段凡丁.关于最短路径的SPFA快速算法[J].西南交通大学学报,1994,29(2):207-212
[2] Cherkassky B V,Goldberg A V,Radzik T.Shortest paths algorithms:Theory and experimental evalutation [J].Mathematical Programming,1996,73(2):129-174
[3] 姜碧野.SPFA的优化与应用[C]∥国家集训队2009年论文集.2009
[4] Cormen T H,Leiserson C E,Rivest R L,et al.Introduction to Algorithms(Third Edition) [M].MIT Press,Cambridge,MA,2009:651-655
[5] Chen Z L,Powell W B.A note on bertsekas’ small-label-firststrategy [J].Networks,1997,29:111-116

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!