Approximate Gomory-Hu Tree Is Faster Than n-1 Max-Flows

11/03/2021
by   Jason Li, et al.
0

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 and single source mincut 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).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/04/2021

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

We give an n^2+o(1)-time algorithm for finding s-t min-cuts for all pair...
research
04/21/2022

A computational study of Gomory-Hu tree algorithms

We present an experimental study of algorithms for computing the Gomory-...
research
08/09/2021

Improved Feature Importance Computations for Tree Models: Shapley vs. Banzhaf

Shapley values are one of the main tools used to explain predictions of ...
research
11/09/2021

Gomory-Hu Tree in Subcubic Time

In 1961, Gomory and Hu showed that the max-flow values of all n 2 pairs ...
research
11/02/2022

A New Approach to Estimating Effective Resistances and Counting Spanning Trees in Expander Graphs

We demonstrate that for expander graphs, for all ϵ > 0, there exists a d...
research
02/05/2023

Maximal k-Edge-Connected Subgraphs in Weighted Graphs via Local Random Contraction

The maximal k-edge-connected subgraphs problem is a classical graph clus...
research
06/02/2018

Sequential sampling of junction trees for decomposable graphs

The junction tree representation provides an attractive structural prope...

Please sign up or login with your details

Forgot password? Click here to reset