New Algorithms and Lower Bounds for All-Pairs Max-Flow in Undirected Graphs

We investigate the time-complexity of the All-Pairs Max-Flow problem: Given a graph with $n$ nodes and $m$ edges, compute for all pairs of nodes the maximum-flow value between them. If Max-Flow (the version with a given source-sink pair $s,t$) can be solved in time $T(m)$, then an $O(n^2) \cdot T(m)$ is a trivial upper bound. But can we do better? For directed graphs, recent results in fine-grained complexity suggest that this time bound is essentially optimal. In contrast, for undirected graphs with edge capacities, a seminal algorithm of Gomory and Hu (1961) runs in much faster time $O(n)\cdot T(m)$. Under the plausible assumption that Max-Flow can be solved in near-linear time $m^{1+o(1)}$, this half-century old algorithm yields an $nm^{1+o(1)}$ bound. Several other algorithms have been designed through the years, including $\tilde{O}(mn)$ time for unit-capacity edges (unconditionally), but none of them break the $O(mn)$ barrier. Meanwhile, no super-linear lower bound was shown for undirected graphs. We design the first hardness reductions for All-Pairs Max-Flow in undirected graphs, giving an essentially optimal lower bound for the $\textit{node-capacities}$ setting. For edge capacities, our efforts to prove similar lower bounds have failed, but we have discovered a surprising new algorithm that breaks the $O(mn)$ barrier for graphs with unit-capacity edges! Assuming $T(m)=m^{1+o(1)}$, our algorithm runs in time $m^{3/2 +o(1)}$ and outputs a cut-equivalent tree (similarly to the Gomory-Hu algorithm). Even with current Max-Flow algorithms we improve state-of-the-art as long as $m=O(n^{5/3-\varepsilon})$. Finally, we explain the lack of lower bounds by proving a $\textit{non-reducibility}$ result. This result is based on a new quasi-linear time $\tilde{O}(m)$ $\textit{non-deterministic}$ algorithm for constructing a cut-equivalent tree and may be of independent interest.

[1]  W. Mayeda,et al.  On Oriented Communication Nets , 1962 .

[2]  Lap Chi Lau,et al.  Graph Connectivities, Network Coding, and Expander Graphs , 2011, 2011 IEEE 52nd Annual Symposium on Foundations of Computer Science.

[3]  Robert Krauthgamer,et al.  Faster Algorithms for All-Pairs Bounded Min-Cuts , 2018, ICALP.

[4]  Piotr Sankowski,et al.  Single Source -- All Sinks Max Flows in Planar Digraphs , 2012, 2012 IEEE 53rd Annual Symposium on Foundations of Computer Science.

[5]  Jack Edmonds,et al.  Submodular Functions, Matroids, and Certain Polyhedra , 2001, Combinatorial Optimization.

[6]  Yin Tat Lee,et al.  Path Finding Methods for Linear Programming: Solving Linear Programs in Õ(vrank) Iterations and Faster Algorithms for Maximum Flow , 2014, 2014 IEEE 55th Annual Symposium on Foundations of Computer Science.

[7]  Vijay V. Vazirani,et al.  Planar Graph Perfect Matching Is in NC , 2017, 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS).

[8]  F. Jelinek,et al.  On the Maximum Number of Different Entries in the Terminal Capacity Matrix of Oriented Communication Nets , 1963 .

[9]  Christos D. Zaroliagis,et al.  All-Pairs Min-Cut in Sparse Networks , 1995, FSTTCS.

[10]  Richard Cole,et al.  A fast algorithm for computing steiner edge connectivity , 2003, STOC '03.

[11]  Ryan Williams,et al.  A new algorithm for optimal 2-constraint satisfaction and its implications , 2005, Theor. Comput. Sci..

[12]  Giuseppe F. Italiano,et al.  All-Pairs 2-Reachability in O(n^w log n) Time , 2017, ICALP.

[13]  Andrew V. Goldberg,et al.  Cut Tree Algorithms: An Experimental Study , 2001, J. Algorithms.

[14]  Richard Ryan Williams,et al.  Strong ETH Breaks With Merlin and Arthur: Short Non-Interactive Proofs of Batch Evaluation , 2016, CCC.

[15]  Robert T. Chien,et al.  Synthesis of a Communication Net , 1960, IBM J. Res. Dev..

[16]  Kevin Tian,et al.  Coordinate Methods for Accelerating ℓ∞ Regression and Faster Approximate Maximum Flow , 2018, 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS).

[17]  Amir Abboud,et al.  Tight Hardness Results for LCS and Other Sequence Similarity Measures , 2015, 2015 IEEE 56th Annual Symposium on Foundations of Computer Science.

[18]  Karl Bringmann,et al.  More consequences of falsifying SETH and the orthogonal vectors conjecture , 2018, STOC.

[19]  Harold N. Gabow A matroid approach to finding edge connectivity and packing arborescences , 1991, STOC '91.

[20]  Marvin Künnemann,et al.  On Nondeterministic Derandomization of Freivalds' Algorithm: Consequences, Avenues and Algorithmic Progress , 2018, ESA.

[21]  Russell Impagliazzo,et al.  Completeness for First-order Properties on Sparse Structures with Algorithmic Applications , 2017, SODA.

[22]  David Eppstein,et al.  All-Pairs Minimum Cuts in Near-Linear Time for Surface-Embedded Graphs , 2016, Symposium on Computational Geometry.

[23]  Richard M. Leahy,et al.  An Optimal Graph Theoretic Approach to Data Clustering: Theory and Its Application to Image Segmentation , 1993, IEEE Trans. Pattern Anal. Mach. Intell..

[24]  Russell Impagliazzo,et al.  On the Complexity of k-SAT , 2001, J. Comput. Syst. Sci..

[25]  Refael Hassin,et al.  Flow trees for vertex-capacitated networks , 2007, Discret. Appl. Math..

[26]  Dan Gusfield,et al.  Very Simple Methods for All Pairs Network Flow Analysis , 1990, SIAM J. Comput..

[27]  Huacheng Yu,et al.  Matching Triangles and Basing Hardness on an Extremely Popular Conjecture , 2015, STOC.

[28]  T. C. Hu,et al.  Multi-Terminal Network Flows , 1961 .

[29]  Aleksander Madry,et al.  Computing Maximum Flow with Augmenting Electrical Flows , 2016, 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS).

[30]  Robert Krauthgamer,et al.  Conditional Lower Bounds for All-Pairs Max-Flow , 2018, ACM Trans. Algorithms.

[31]  Debmalya Panigrahi Gomory-Hu Trees , 2008, Encyclopedia of Algorithms.

[32]  W. Mayeda Terminal and Branch Capacity Matrices of a Communication Net , 1960 .

[33]  Russell Impagliazzo,et al.  Nondeterministic Extensions of the Strong Exponential Time Hypothesis and Consequences for Non-reducibility , 2016, Electron. Colloquium Comput. Complex..

[34]  Refael Hassin,et al.  Multi-terminal maximum flows in node-capacitated networks , 1986 .

[35]  Kurt Mehlhorn,et al.  Certifying algorithms , 2011, Comput. Sci. Rev..

[36]  Kurt Mehlhorn,et al.  Verification of Certifying Computations , 2011, CAV.

[37]  D. R. Fulkerson,et al.  Maximal Flow Through a Network , 1956 .

[38]  Debmalya Panigrahi,et al.  An Õ(mn) Gomory-Hu tree construction algorithm for unweighted graphs , 2007, STOC '07.

[39]  Debmalya Panigrahi,et al.  Efficient algorithms for computing all low s-t edge connectivities and related problems , 2007, SODA '07.

[40]  András Frank,et al.  Preserving and Increasing Local Edge-Connectivity in Mixed Graphs , 1995, SIAM J. Discret. Math..