Approximate Gomory-Hu tree is faster than n - 1 max-flows
Jason Li, Debmalya Panigrahi
Abstract
The Gomory-Hu tree or cut tree (Gomory and Hu, 1961) is a classic data structure for reporting (s, t) mincuts (and by duality, the values of (s, t) maxflows) for all pairs of vertices s and t in an undirected graph. Gomory and Hu showed that it can be computed using n -1 exact maxflow computations. Surprisingly, this remains the best algorithm for Gomory-Hu trees more than 50 years later, even for approximate mincuts. In this paper, we break this longstanding barrier and give an algorithm for computing a (1 + )-approximate Gomory-Hu tree using polylog(n) maxflow computations. Specifically, we obtain the runtime bounds we describe below.
We obtain a randomized (Monte Carlo) algorithm for undirected, weighted graphs that runs in Õ(m + n 3/2 ) time and returns a (1 + )-approximate Gomory-Hu tree algorithm w.h.p. Previously, the best running time known was Õ(n 5/2 ), which is obtained by running Gomory and Hu's original algorithm on a cut sparsifier of the graph.
Next, we obtain a randomized (Monte Carlo) algorithm for undirected, unweighted graphs that runs in m 4/3+o(1) time and returns a (1 + )-approximate Gomory-Hu tree algorithm w.h.p. This improves on our first result for sparse graphs, namely m = o(n 9/8 ). Previously, the best running time known for unweighted graphs was Õ(mn) for an exact Gomory-Hu tree (Bhalgat et al., STOC 2007); no better result was known if approximations are allowed.
As a consequence of our Gomory-Hu tree algorithms, we also solve the (1 + )-approximate all pairs mincut (APMC) and single source mincut (SSMC) problems in the same time bounds. (These problems are simpler in that the goal is to only return the (s, t) mincut values, and not the mincuts.) This improves on the recent algorithm for these problems in Õ(n 2 ) time due to Abboud et al. (FOCS 2020).
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
19 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- All-Pairs Max-Flow is no Harder than Single-Pair Max-Flow: Gomory-Hu Trees in Almost-Linear Time cites A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple Graphs
- All-Pairs Max-Flow is no Harder than Single-Pair Max-Flow: Gomory-Hu Trees in Almost-Linear Time cites Cut-Equivalent Trees are Optimal for Min-Cut Queries
- All-Pairs Max-Flow is no Harder than Single-Pair Max-Flow: Gomory-Hu Trees in Almost-Linear Time cites New Algorithms and Lower Bounds for All-Pairs Max-Flow in Undirected Graphs
- Breaking the Cubic Barrier for All-Pairs Max-Flow: Gomory-Hu Tree in Nearly Quadratic Time cites Maximum Flow and Minimum-Cost Flow in Almost-Linear Time
- Maximum Flow and Minimum-Cost Flow in Almost-Linear Time cites Breaking the Cubic Barrier for All-Pairs Max-Flow: Gomory-Hu Tree in Nearly Quadratic Time
- Breaking the Cubic Barrier for All-Pairs Max-Flow: Gomory-Hu Tree in Nearly Quadratic Time cites A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple Graphs
- Breaking the Cubic Barrier for All-Pairs Max-Flow: Gomory-Hu Tree in Nearly Quadratic Time cites Cut-Equivalent Trees are Optimal for Min-Cut Queries
- Breaking the Cubic Barrier for All-Pairs Max-Flow: Gomory-Hu Tree in Nearly Quadratic Time cites New Algorithms and Lower Bounds for All-Pairs Max-Flow in Undirected Graphs
- Breaking the Cubic Barrier for All-Pairs Max-Flow: Gomory-Hu Tree in Nearly Quadratic Time cites Deterministic Min-cut in Poly-logarithmic Max-flows
- Maximum Flow and Minimum-Cost Flow in Almost-Linear Time cites Deterministic Min-cut in Poly-logarithmic Max-flows
- A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple Graphs cites Cut-Equivalent Trees are Optimal for Min-Cut Queries
- A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple Graphs cites New Algorithms and Lower Bounds for All-Pairs Max-Flow in Undirected Graphs
- A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple Graphs cites Deterministic Min-cut in Poly-logarithmic Max-flows
- Deterministic Min-cut in Poly-logarithmic Max-flows cites A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple Graphs
- Cut-Equivalent Trees are Optimal for Min-Cut Queries cites New Algorithms and Lower Bounds for All-Pairs Max-Flow in Undirected Graphs
Cited by top-tier papers19
- Maximum Flow and Minimum-Cost Flow in Almost-Linear TimeLi Chen, Rasmus Kyng, Yang P. Liu, Richard Peng et al.FOCS 2022 · 135 citations
- Deterministic Min-cut in Poly-logarithmic Max-flowsJason Li, Debmalya PanigrahiFOCS 2020 · 36 citations
- A Nearly Optimal All-Pairs Min-Cuts Algorithm in Simple GraphsJason Li, Debmalya Panigrahi, Thatchaphol SaranurakFOCS 2021 · 19 citations
- Breaking the Cubic Barrier for All-Pairs Max-Flow: Gomory-Hu Tree in Nearly Quadratic TimeAmir Abboud, Robert Krauthgamer, Jason Li, Debmalya Panigrahi et al.FOCS 2022 · 16 citations
- All-Pairs Max-Flow is no Harder than Single-Pair Max-Flow: Gomory-Hu Trees in Almost-Linear TimeAmir Abboud, Jason Li, Debmalya Panigrahi, Thatchaphol SaranurakFOCS 2023 · 11 citations
Builds on3
- Deterministic Min-cut in Poly-logarithmic Max-flowsJason Li, Debmalya PanigrahiFOCS 2020 · 36 citations
- New Algorithms and Lower Bounds for All-Pairs Max-Flow in Undirected GraphsAmir Abboud, Robert Krauthgamer, Ohad TrabelsiSODA 2020 · 22 citations
- Cut-Equivalent Trees are Optimal for Min-Cut QueriesAmir Abboud, Robert Krauthgamer, Ohad TrabelsiFOCS 2020 · 20 citations
Related papers
- Deterministic Almost-Linear-Time Gomory-Hu TreesAmir Abboud, Rasmus Kyng, Jason Li, Debmalya Panigrahi et al.FOCS 2025 · 10 citations
- A Simple and Fast Reduction from Gomory-Hu Trees to Polylog MaxflowsMaximilian Probst Gutenberg, Rasmus Kyng, Weixuan Yuan, Wuwei YuanSODA 2026
- Subcubic algorithms for Gomory-Hu tree in unweighted graphsAmir Abboud, Robert Krauthgamer, Ohad TrabelsiSTOC 2021 · 2 citations
- All-Pairs Minimum Cut using Õ(n7/4) Cut QueriesYotam Kenneth-Mordoch, Robert KrauthgamerSODA 2026
- APMF < APSP? Gomory-Hu Tree for Unweighted Graphs in Almost-Quadratic TimeAmir Abboud, Robert Krauthgamer, Ohad TrabelsiFOCS 2021 · 5 citations
