Faster approximation of distances in graphs

  • Authors:
  • Piotr Berman;Shiva Prasad Kasiviswanathan

  • Affiliations:
  • Computer Science and Engineering, Pennsylvania State University;Computer Science and Engineering, Pennsylvania State University

  • Venue:
  • WADS'07 Proceedings of the 10th international conference on Algorithms and Data Structures
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Let G = (V,E) be a weighted undirected graph on n vertices and m edges, and let dG be its shortest path metric. We present two simple deterministic algorithms for approximating all-pairs shortest paths in G. Our first algorithm runs in Õ (n2 time, and for any u, v ∈ V reports distance no greater than 2dG(u, v) + h(u, v). Here, h(u, v) is the largest edge weight on a shortest path between u and v. The previous algorithm, due to Baswana and Kavitha that achieved the same result was randomized. Our second algorithm for the all-pairs shortest path problem uses Boolean matrix multiplications and for any u, v ∈ V reports distance no greater than (1 + ε)dG(u, v) + 2h(u, v). The currently best known algorithm for Boolean matrix multiplication yields an O(n2.24+o(1)ε-3 log(nε-1)) time bound for this algorithm. The previously best known result of Elkin with a similar multiplicative factor had a much bigger additive error term. We also consider approximating the diameter and the radius of a graph. For the problem of estimating the radius, we present an almost 3/2-approximation algorithm which runs in Õ(m √n + n2) time. Aingworth, Chekuri, Indyk, and Motwani used a similar approach and obtained analogous results for the diameter approximation problem. Additionally, we show that if the graph has a small separator decomposition a 3/2-approximation of both the diameter and the radius can be obtained more efficiently.