INCREMENTAL ALGORITHMS FOR MINIMAL LENGTH PATHS

被引:77
|
作者
AUSIELLO, G
ITALIANO, GF
SPACCAMELA, AM
NANNI, U
机构
[1] UNIV ROME LA SAPIENZA, DIPARTIMENTO INFORMAT & SIST, I-00185 ROME, ITALY
[2] COLUMBIA UNIV, DEPT COMP SCI, NEW YORK, NY 10027 USA
[3] UNIV LAQUILA, DIPARTIMENTO MATEMAT PURA & APPL, I-67100 LAQUILA, ITALY
基金
美国国家科学基金会;
关键词
D O I
10.1016/0196-6774(91)90036-X
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We consider the problem of maintaining on-line a solution to the All Pairs Shortest Paths Problem in a directed graph G = (V,E) where edges may be dynamically inserted or have their cost decreased. For the case of integer edge costs in a given range [1...C], we introduce a new data structure which is able to answer queries concerning the length of the shortest path between any two vertices in constant time and to trace out the shortest path between any two vertices in time linear in the number of edges reported. The total time required to maintain the data structure under a sequence of at most O(n2) edge insertions and at most O(Cn2) edge cost decreases is O(Cn3 log(nC)) in the worst case, where n is the total number of vertices in G. For the case of unit edge costs, the total time required to maintain the data structure under a sequence of at most O(n2) insertions of edges becomes O(n3 logn) in the worst case. The same bounds can be achieved for the problem of maintaining on-line longest paths in directed acyclic graphs. All our algorithms improve previously known algorithms and are only a logarithmic factor away from the best possible bounds. © 1991.
引用
收藏
页码:615 / 638
页数:24
相关论文
共 50 条