Tight conditional lower bounds for approximating diameter in directed graphs

Mina Dalirrooyfard, Nicole Wein

TL;DR

This paper proves that the simple "folklore" algorithm used to estimate the diameter of a directed graph is mathematically optimal. By establishing new conditional lower bounds under the Strong Exponential Time Hypothesis (SETH), the authors show that any algorithm providing better than a 2-approximation for the diameter must take significantly more than linear time.

What Problem Does This Paper Address?

The Diameter of a graph is the longest shortest path between any two nodes. It is a fundamental metric for understanding network structure, but computing it exactly is computationally expensive. For a graph with $m$ edges, the best exact algorithms take roughly $O(m^2)$ time. On massive modern datasets (like social networks or web graphs), quadratic time is a dealbreaker.

To solve this, researchers use approximation algorithms. A "2-approximation" means the algorithm returns a value that is at most twice the true diameter. There is a well-known "folklore" algorithm that achieves a 2-approximation in near-linear time ($\tilde{O}(m)$) by simply running a Breadth-First Search (BFS) from a single arbitrary node.

While more accurate approximations exist (like a 3/2-approximation), they are slower. The central question this paper tackles is: Can we do better than a 2-approximation in linear time? This has been a nagging open problem in the field of fine-grained complexity for years.

Methods

The authors use a technique called fine-grained reduction. They don't prove the problem is hard in a vacuum; instead, they show that if you could solve the diameter problem faster, you could also solve a famously difficult problem called the Strong Exponential Time Hypothesis (SETH) faster than anyone believes is possible.

Specifically, they reduce the $k$-Orthogonal Vectors ($k$-OV) problem to the Directed Diameter problem. Their core contribution is a novel graph construction (a "gadget") consisting of:

  • Multiple Layers: A structure of $k+1$ layers where nodes represent tuples of vectors.
  • Intricate "Back Edges": Unlike previous undirected constructions, they use directed edges that allow paths to jump backward between layers under specific conditions.
  • Coordinate Encoding: They use a sophisticated system to encode vector orthogonality into path lengths, ensuring that if a set of orthogonal vectors exists (a "YES" instance of $k$-OV), the graph diameter is large ($2k-1$), and if not ("NO" instance), the diameter is small ($k$).

Datasets

Not discussed in the paper. This is a theoretical work focused on mathematical proofs and computational complexity analysis. It does not use empirical datasets or benchmarks.

Key Insights and Ideas

  • The "Folklore" is Optimal: The most surprising insight is that the simplest possible approach—picking a random node and looking at its furthest neighbor—is essentially the best we can do in linear time for directed graphs.
  • The Power of Direction: The authors show that directed graphs are fundamentally "harder" to approximate than undirected ones. The one-way nature of the edges allowed them to build "back edge" gadgets that are impossible in undirected graphs, leading to tighter lower bounds.
  • A Complete Trade-off Curve: The paper doesn't just provide a single bound. It provides a "staircase" of bounds. For any integer $k$, it shows that to get an approximation factor better than $(2k-1)/k$, you need at least $m^{k/(k-1)}$ time. This creates a complete map of the trade-off between speed and accuracy.

Key Results

The paper provides a definitive answer to the "Main Question" posed in several previous works:

  • Theorem 1.1: Under SETH, for any $k \ge 4$, any algorithm that achieves a $(\frac{2k-1}{k} - \delta)$-approximation for the diameter of a directed unweighted graph requires $m^{\frac{k}{k-1} - o(1)}$ time.
  • Linear Time Limit: As $k$ becomes very large, the approximation factor approaches 2. This proves that any algorithm better than a 2-approximation requires more than linear time (specifically, it approaches the $O(m^2)$ limit as you demand more accuracy).
  • Closing the Gap: This work bridges the gap between the known 3/2-approximation lower bounds and the folklore 2-approximation, effectively "completing" the complexity landscape for directed diameter approximation.

Limitations and Future Work

  • Conditional Nature: Like all results in fine-grained complexity, these bounds are "conditional." They rely on the assumption that SETH is true. While SETH is a standard assumption in the field, its proof remains elusive.
  • The Undirected Gap: While this paper "completely resolves" the question for directed graphs, a gap still exists for undirected unweighted graphs. Currently, for undirected graphs, we know a 5/3-approximation is hard in $m^{1.5}$ time, but we don't know if a 2-approximation is hard in linear time. The "back edge" techniques used here rely on directed edges and do not directly translate to the undirected setting.

Summary updated

BibTeX
@inproceedings{dalirrooyfard2021tight,
  author = {Mina Dalirrooyfard and Nicole Wein},
  title = {{Tight conditional lower bounds for approximating diameter in directed graphs}},
  booktitle = {STOC},
  year = {2021},
  doi = {10.1145/3406325.3451130},
}
Figure