Skip to main content
QUICK REVIEW

[Paper Review] Approximating the diameter of a graph

Liam Roditty, Virginia Vassilevska Williams|arXiv (Cornell University)|Jul 16, 2012
Complexity and Algorithms in GraphsComputer Science18 references4 citations
TL;DR

This paper presents a deterministic algorithm that approximates the diameter of unweighted graphs in Õ(m²⁻¹⁄⁽²ʰ⁺³⁾) time for graphs of diameter D = 3h + z, achieving a (2h + z)-approximation. It improves upon prior Õ(m√n + n²) methods by exploiting vertex out-degree thresholds and targeted BFS computations, and provides strong evidence that better approximations in subquadratic time would refute the Strong Exponential Time Hypothesis.

ABSTRACT

In this paper we consider the fundamental problem of approximating the diameter $D$ of directed or undirected graphs. In a seminal paper, Aingworth, Chekuri, Indyk and Motwani [SIAM J. Comput. 1999] presented an algorithm that computes in $\Ot(m\sqrt n + n^2)$ time an estimate $\hat{D}$ for the diameter of an $n$-node, $m$-edge graph, such that $\lfloor 2/3 D floor \leq \hat{D} \leq D$. In this paper we present an algorithm that produces the same estimate in $\Ot(m\sqrt n)$ expected running time. We then provide strong evidence that a better approximation may be hard to obtain if we insist on an $O(m^{2-\eps})$ running time. In particular, we show that if there is some constant $\eps>0$ so that there is an algorithm for undirected unweighted graphs that runs in $O(m^{2-\eps})$ time and produces an approximation $\hat{D}$ such that $ (2/3+\eps) D \leq \hat{D} \leq D$, then SAT for CNF formulas on $n$ variables can be solved in $O^{*}((2-δ)^{n})$ time for some constant $δ>0$, and the strong exponential time hypothesis of [Impagliazzo, Paturi, Zane JCSS'01] is false. Motivated by this somewhat negative result, we study whether it is possible to obtain a better approximation for specific cases. For unweighted directed or undirected graphs, we show that if $D=3h+z$, where $h\geq 0$ and $z\in {0,1,2}$, then it is possible to report in $ ilde{O}(\min{m^{2/3} n^{4/3},m^{2-1/(2h+3)}})$ time an estimate $\hat{D}$ such that $2h+z \leq \hat{D}\leq D$, thus giving a better than 3/2 approximation whenever $z eq 0$. This is significant for constant values of $D$ which is exactly when the diameter approximation problem is hardest to solve. For the case of unweighted undirected graphs we present an $ ilde{O}(m^{2/3} n^{4/3})$ time algorithm that reports an estimate $\hat{D}$ such that $\lfloor 4D/5 floor \leq \hat{D}\leq D$.

Motivation & Objective

  • To design a faster algorithm for approximating the diameter of sparse, unweighted graphs, especially when the diameter is small.
  • To improve upon the Õ(m√n + n²) running time of the Aingworth et al. algorithm for diameter approximation.
  • To investigate the limits of efficient diameter approximation, particularly whether subquadratic time algorithms can achieve better than 3/2-approximation.
  • To provide conditional lower bounds showing that better approximations in subquadratic time would imply breakthroughs in CNF-SAT complexity.

Proposed method

  • The algorithm selects a set H of high-out-degree vertices (out-degree ≥ Δ) to reduce the number of BFS computations.
  • It computes outgoing BFS from all vertices in H and incoming distances to H via a super-source node, in O(m) time.
  • It selects the vertex w farthest from H and computes its outgoing BFS tree to estimate the diameter.
  • It then computes incoming BFS trees from vertices within a bounded depth of w’s BFS tree to refine the estimate.
  • The algorithm uses a parameter Δ = m¹⁄⁽²ʰ⁺³⁾ to balance the time between BFS computations from H and from the BFS tree vertices.
  • The final estimate is the maximum depth among all computed BFS trees, ensuring a lower bound of 2h + z on the diameter.

Experimental results

Research questions

  • RQ1Can the diameter of an unweighted graph be approximated in subquadratic time with better approximation than 2/3D?
  • RQ2Is there a deterministic algorithm that achieves a (2h + z)-approximation for graphs of diameter D = 3h + z in Õ(m²⁻¹⁄⁽²ʰ⁺³⁾) time?
  • RQ3What are the conditional hardness limits for achieving a (3/2 − ε)-approximation in O(m²⁻ε) time?
  • RQ4Can the Strong Exponential Time Hypothesis be refuted if a faster diameter approximation algorithm exists?

Key findings

  • The proposed algorithm runs in Õ(m²⁻¹⁄⁽²ʰ⁺³⁾) expected time and returns an estimate D̂ satisfying 2h + z ≤ D̂ ≤ D for graphs of diameter D = 3h + z.
  • For constant diameter D = 3h + z, the algorithm provides a better-than-3/2 approximation when z ≠ 0, improving over the 2/3D lower bound of prior work.
  • The algorithm achieves a (4/5)D approximation for unweighted undirected graphs in Õ(m²⁄³n⁴⁄³) time, improving on the 2/3D bound for this class.
  • The paper shows that a (3/2 − ε)-approximation algorithm for undirected unweighted graphs in O(m²⁻ε) time would imply a subexponential algorithm for CNF-SAT, contradicting the Strong Exponential Time Hypothesis.
  • The running time of the algorithm is minimized at Õ(m²⁻¹⁄⁽²ʰ⁺³⁾) by setting Δ = m¹⁄⁽²ʰ⁺³⁾, balancing the cost of BFS from H and from the BFS tree vertices.
  • The method is deterministic and does not require fast matrix multiplication, making it practical for sparse graphs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.