All-pairs almost shortest paths

被引:165
作者
Dor, D [1 ]
Halperin, S [1 ]
Zwick, U [1 ]
机构
[1] Tel Aviv Univ, Dept Comp Sci, IL-69978 Tel Aviv, Israel
关键词
graph algorithms; shortest paths; approximation algorithms; spanners; emulators;
D O I
10.1137/S0097539797327908
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Let G = (V, E) be an unweighted undirected graph on n vertices. A simple argument shows that computing all distances in G with an additive one-sided error of at most 1 is as hard as Boolean matrix multiplication. Building on recent work of Aingworth et al. [SIAM J. Comput., 28 (1999), pp. 1167 1181], we describe an (O) over tilde(min{n(3/2)m(1/2),n(7/3)})-time algorithm APASP(2) for computing all distances in G with an additive one-sided error of at most 2. Algorithm APASP(2) is simple, easy to implement, and faster than the fastest known matrix-multiplication algorithm. Furthermore, for every even k > 2, we describe an (O) over tilde(min{n(2-2/(k+2))m(2/(k+2)),n(2+2/(3k-2))})-time algorithm APASP(k) for computing all distances in G with an additive one-sided error of at most k. We also give an (O) over tilde(n(2))-time algorithm APASP(infinity) for producing stretch 3 estimated distances in an unweighted and undirected graph on n vertices. No constant stretch factor was previously achieved in (O) over tilde(n(2)) time. We say that a weighted graph F = (V, E') k-emulates an unweighted graph G = (V, E) if for every u, v is an element of V we have delta(G)(u, v) less than or equal to delta(F)(u, v) less than or equal to delta(G)(u, v) + k. We show that every unweighted graph on n vertices has a 2-emulator with (O) over tilde(n(3/2)) edges and a 4-emulator with (O) over tilde(n(4/3)) edges. These results are asymptotically tight. Finally, we show that any weighted undirected graph on n vertices has a 3-spanner with (O) over tilde(n(3/2)) edges and that such a 3-spanner can be built in (O) over tilde(mn(1/2)) time. We also describe an (O) over tilde(n(m(2/3)+n))-time algorithm for estimating all distances in a weighted undirected graph on n vertices with a stretch factor of at most 3.
引用
收藏
页码:1740 / 1759
页数:20
相关论文
共 33 条
[1]  
Aho A.V., 1974, The Design and Analysis of Computer Algorithms
[2]   Fast estimation of diameter and shortest paths (without matrix multiplication) [J].
Aingworth, D ;
Chekuri, C ;
Indyk, P ;
Motwani, R .
SIAM JOURNAL ON COMPUTING, 1999, 28 (04) :1167-1181
[3]   On the exponent of the all pairs shortest path problem [J].
Alon, N ;
Galil, Z ;
Margalit, O .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1997, 54 (02) :255-262
[4]   Derandomization, witnesses for Boolean matrix multiplication and construction of perfect hash functions [J].
Alon, N ;
Naor, M .
ALGORITHMICA, 1996, 16 (4-5) :434-449
[5]   ON SPARSE SPANNERS OF WEIGHTED GRAPHS [J].
ALTHOFER, I ;
DAS, G ;
DOBKIN, D ;
JOSEPH, D ;
SOARES, J .
DISCRETE & COMPUTATIONAL GEOMETRY, 1993, 9 (01) :81-100
[6]   COMPLEXITY OF NETWORK SYNCHRONIZATION [J].
AWERBUCH, B .
JOURNAL OF THE ACM, 1985, 32 (04) :804-823
[7]   Near-linear time construction of sparse neighborhood covers [J].
Awerbuch, B ;
Berger, B ;
Cowen, L ;
Peleg, D .
SIAM JOURNAL ON COMPUTING, 1998, 28 (01) :263-277
[8]  
Chvatal V., 1979, Mathematics of Operations Research, V4, P233, DOI 10.1287/moor.4.3.233
[9]   Fast algorithms for constructing t-spanners and paths with stretch t [J].
Cohen, E .
SIAM JOURNAL ON COMPUTING, 1998, 28 (01) :210-236
[10]  
Cohen E, 1997, PROCEEDINGS OF THE EIGHTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P93