NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deterministic Almost-Linear-Time Gomory-Hu Trees

Amir Abboud, Rasmus Kyng, Jason Li, Debmalya Panigrahi, Maximilian Probst Gutenberg, Thatchaphol Saranurak, Weixuan Yuan, Wuwei Yuan

TL;DR

This paper introduces the first deterministic, almost-linear-time ($m^{1+o(1)}$) algorithm for constructing Gomory-Hu trees in undirected, weighted graphs. By eliminating the reliance on randomization that characterized recent breakthroughs, the authors close a 60-year-old efficiency gap for deterministic all-pairs minimum cut problems and graph connectivity.

What Problem Does This Paper Address?

A Gomory-Hu tree is a classic data structure introduced in 1961 that compactly represents the minimum cuts (mincuts) between all pairs of vertices in an undirected graph. Finding these all-pairs mincuts is a foundational problem in combinatorial optimization, with applications ranging from network reliability to image segmentation and community detection.

For over half a century, the best deterministic algorithm for this problem was the original divide-and-conquer method by Gomory and Hu, which requires solving $n-1$ maxflow problems and runs in $nm^{1+o(1)}$ time using modern maxflow subroutines. While recent breakthroughs succeeded in bringing the runtime down to an almost-linear $m^{1+o(1)}$ time, these algorithms relied heavily on randomization to select well-balanced "pivot" vertices and to sample "guide trees" from complex tree packings. This paper tackles the long-standing challenge of achieving this optimal near-linear runtime completely deterministically.

Methods

The authors achieve their breakthrough by developing a fully deterministic framework that splits the problem into two main components:

  1. Deterministic Reduction from All-Pairs to Single-Source Mincuts (SSMC): Instead of randomly picking a pivot vertex to split the graph into smaller subproblems (which works because a constant fraction of vertices are good pivots), the authors exploit a new structural insight. They prove that for a specific connectivity threshold $\tau$, every vertex inside the largest $\tau$-connected component is a valid pivot. They locate this component deterministically using a combination of binary search and expander decompositions.

  2. Deterministic Almost-Linear-Time SSMC Algorithm: To solve the single-source mincut problem fast without randomness, the authors derandomize the process of generating "guide trees" from a Steiner tree packing. Instead of randomly sampling a few trees from a massive packing generated via Multiplicative Weight Updates (MWU), they use advanced dynamic tree data structures (augmenting Sleator-Tarjan trees and Euler tour trees) to maintain an implicit representation of the entire packing. From this, they deterministically construct a vertex sparsifier that preserves the essential cut information of the graph.

Datasets

Not discussed in the paper. This is a purely theoretical paper focused on algorithmic complexity and mathematical proofs; no empirical datasets or benchmarks were evaluated.

Key Insights and Ideas

  • The $\tau$-Connected Component Pivot Guarantee: The realization that if the largest $\tau$-connected component contains at least $3/4$ of the terminals, every vertex in that component is guaranteed to be a good pivot. This completely bypasses the need for random sampling.
  • Vertex Sparsification from Implicit Packings: Rather than explicitly generating or randomly subsampling trees from an MWU fractional packing (which is too large to store explicitly), the algorithm maintains the packing implicitly and uses it to build a small vertex sparsifier graph that deterministically satisfies the same cut-preservation guarantees.
  • Low-Congestion Dynamic Trees: By swapping out older randomized shortest-path data structures for a recent deterministic, low-congestion dynamic shortest-path toolbox, the authors made the deterministic maintenance of the Steiner subtrees computationally affordable.

Key Results

  • Optimal Deterministic Bound: The algorithm constructs a exact Gomory-Hu tree for any undirected, weighted graph with polynomially bounded weights in $m^{1+o(1)}$ time.
  • Fast $k$-Edge-Connected Components: As a direct corollary, this work provides the first deterministic almost-linear time algorithm to compute the $k$-edge-connected components of a graph for any arbitrary integer $k$.

The table below highlights how this work compares to prior state-of-the-art methods, successfully matching the best randomized runtimes deterministically:

Comparison of state-of-the-art Gomory-Hu tree algorithms.

Limitations and Future Work

While this paper successfully derandomizes the almost-linear-time construction of Gomory-Hu trees, a few open challenges remain:

  • Weight Restrictions: The algorithm assumes the graph has polynomially bounded weights. Extending this to arbitrarily large weights remains an open problem.
  • Simplifying Reductions: The authors note that while their method bridges the gap between randomized and deterministic all-pairs mincuts, it does not yet provide a simple, direct reduction from the all-pairs maxflow problem to the single-pair maxflow problem, which remains a holy grail in flow network theory.

Summary updated

BibTeX
@misc{abboud2025deterministic,
  author = {Amir Abboud and Rasmus Kyng and Jason Li and Debmalya Panigrahi and Maximilian Probst Gutenberg and Thatchaphol Saranurak and Weixuan Yuan and Wuwei Yuan},
  title = {{Deterministic Almost-Linear-Time Gomory-Hu Trees}},
  year = {2025},
  eprint = {2507.20354},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.20354},
}
Figure