Fast shortest-paths algorithms in the presence of few destinations of negative-weight arcs

被引:2
|
作者
Cantone, Domenico [1 ]
Faro, Simone [1 ]
机构
[1] Univ Catania, Dept Math & Comp Sci, Viale Andrea Doria 6, I-95125 Catania, Italy
关键词
Shortest path; Negative edges; Computational complexity;
D O I
10.1016/j.jda.2013.03.005
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
In this paper we present hybrid algorithms for the single-source shortest-paths (SSSP) and for the all-pairs shortest-paths (APSP) problems, which are asymptotically fast when run on graphs with few destinations of negative-weight arcs. Plainly, the case of graphs with few sources of negative-weight arcs can be handled as well, using reverse graphs. With a directed graph with n nodes and m arcs, our algorithm for the SSSP problem has an O(l (m + n logn + l(2)))-time complexity, where l is the number of destinations of negative-weight arcs in the graph. In the case of the APSP problem, we propose an O(nm* + n(2) logn + ln(2)) algorithm, where m* is the number of arcs participating in shortest paths. Notice that m* is likely to be small in practice, since m* = O(n logn) with high probability for several probability distributions on arc weights. (C) 2013 Elsevier B.V. All rights reserved.
引用
收藏
页码:12 / 25
页数:14
相关论文
共 23 条