A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple Graphs

Jason Li, Debmalya Panigrahi, Thatchaphol Saranurak

Introduction

The All-Pairs Min-Cuts (APMC) problem is a fundamental challenge in combinatorial optimization. It requires finding the minimum cut—the smallest set of edges whose removal disconnects two nodes—for every possible pair of vertices $s$ and $t$ in a graph. For a graph with $n$ vertices, there are $\binom{n}{2}$ such pairs, meaning the output size is $\Theta(n^2)$. Consequently, a runtime of $n^2$ is considered the "Gold Standard" for efficiency in this domain.

For over sixty years, the standard approach to this problem has been the construction of a Gomory-Hu tree. Introduced in 1961, this structure represents all $\binom{n}{2}$ min-cut values using a single tree with only $n-1$ edges. However, the traditional construction of this tree required $n-1$ separate max-flow computations. While modern max-flow algorithms are highly efficient, performing them $n$ times on dense graphs resulted in cubic ($n^3$) or high-subcubic runtimes. Recent theoretical work had stalled at a runtime of $O(n^{2.5})$, leading some to speculate that a fundamental lower bound existed. This paper successfully breaks that barrier for simple graphs, achieving a nearly optimal runtime of $n^{2+o(1)}$.

Algorithmic Framework

The authors move away from the traditional method of adding one edge at a time to the Gomory-Hu tree. Instead, they employ an iterative refinement strategy that adds multiple edges in each step. The algorithm's efficiency is derived from several key technical innovations:

Partial Gomory-Hu Trees and Iterative Refinement

The algorithm maintains a "partial" tree that accurately captures all min-cuts up to a specific size $d$. It then iteratively refines this structure to capture cuts up to size $2d$. This doubling approach allows the algorithm to converge on the full tree much faster than sequential methods.

Well-Linked Decomposition

The core innovation of the paper is the use of well-linked sets. The authors prove that vertices with high degrees can be partitioned into a small number of sets that are internally "sturdy." These sets are difficult to bisect into large components, allowing the algorithm to focus its computational resources on the most critical parts of the graph structure.

Connectivity Certificates and Sparsification

To maintain speed, the algorithm utilizes "sparsifiers"—subgraphs that preserve all cuts up to a certain size while significantly reducing the number of edges. By working on $O(nd)$ edges rather than the full graph in each iteration, the computational overhead is kept to a minimum.

The Isolating Cuts Lemma

Leveraging recent developments by Li and Panigrahi (2020), the authors use the Isolating Cuts Lemma to find min-cuts for many terminals simultaneously. This technique reduces the number of required max-flow calls to a logarithmic factor, a significant improvement over the linear number of calls required by the classic Gomory-Hu algorithm.

Key Results and Theoretical Impact

The primary contribution of this research is Theorem 1.1, which provides an algorithm to compute the Gomory-Hu tree of a simple $n$-vertex graph in $n^{2+o(1)}$ time. This result is significant for several reasons:

  1. Refuting Lower Bounds: It proves that the previously suggested conditional lower bound of $n^{2.5}$ for Gomory-Hu trees does not apply to simple graphs.
  2. Near-Optimality: Since the output of the APMC problem is $\Theta(n^2)$, an $n^{2+o(1)}$ runtime is nearly optimal, leaving very little room for further improvement in the simple graph case.
  3. Sparse Graph Improvements: The paper also offers Theorem 1.2, which improves the runtime bounds for graphs that are not dense, providing a more efficient path for sparse graph analysis.
  4. Unconditional Efficiency: Unlike other recent breakthroughs that rely on the assumption of a linear-time max-flow algorithm, these results are unconditional and stand on their own merits.

Limitations and Future Directions

While this paper represents a major leap forward, it is currently constrained to simple graphs—those without weights or parallel edges. The "simple graph" property is vital to the current proof because it allows the authors to bound the number of well-linked sets to $O(n/d)$. In weighted graphs, this relationship breaks down, as the number of such sets could be significantly larger.

Generalizing these techniques to weighted graphs remains the "Holy Grail" of this research area. The authors suggest that achieving even a subcubic runtime for unweighted multigraphs would be a major milestone. Additionally, while the current algorithm is fast, it still relies on multiple max-flow calls; a future goal is to construct an exact Gomory-Hu tree using only a polylogarithmic number of max-flow calls, a feat currently only possible for approximate versions of the tree.

Summary updated

BibTeX
@inproceedings{li2021nearly,
  author = {Jason Li and Debmalya Panigrahi and Thatchaphol Saranurak},
  title = {{A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple Graphs}},
  booktitle = {FOCS},
  year = {2021},
  doi = {10.1109/focs52979.2021.00111},
}
Figure