Abstract
We present an approximation algorithm for the all pairs shortest paths (APSP) problem in weighed graphs. Our algorithm solves the APSP problem for weighted directed graphs, with real (positive or negative) weights, up to an additive error of ε. For any pair of vertices u,v, the algorithm finds a path whose length is at most δ(u,v)+ε. The algorithm is randomized and runs in Õ(n(ω+3)/2)<O(n2.688) time, where n is the number of vertices and ω is the matrix multiplication exponent. The absolute weights are allowed to mildly depend upon n, being at most no(1) (we note that even if the weights are constants, δ(u,v) can be linear in n, while the error requirement ε is a small constant independent of n). Clearly, ε-additive approximations generalize exact algorithms for integer weighted instances. Hence, if ω=2+o(1), this algorithm is as fast as any algorithm known for integer APSP in directed graphs, and is more general.
Original language | English |
---|---|
Pages (from-to) | 632-637 |
Number of pages | 6 |
Journal | Journal of Computer and System Sciences |
Volume | 78 |
Issue number | 2 |
DOIs | |
State | Published - Mar 2012 |
Keywords
- Approximation
- Shortest path
- Weighted graph
ASJC Scopus subject areas
- Theoretical Computer Science
- Computer Networks and Communications
- Computational Theory and Mathematics
- Applied Mathematics