arXiv:2611.06478cs.DSNov 2026

Manuscript Offprint

arXiv:2611.06478

Beyond Gomory-Hu: All-Pairs ×\times All-Pairs Mincuts in O(n)O(n) Space

Koustav Bhanja, Merav Parter, Asaf Petruschka

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Beyond Gomory-Hu: All-Pairs × All-Pairs Mincuts in O(n)O(n) Space

Koustav Bhanja*

Merav Parter†

Asaf Petruschka‡

Abstract

For over four decades, two classical structures have offered complementary views of minimum cuts. The Gomory–Hu tree gives a remarkably compact representation of minimum cuts in an undirected graph: using only O(n)O(n) space, it encodes one (x,y)(x,y)-mincut for every pair of vertices x,yx,y. Its limitation is that it retains only one mincut for each pair. In contrast, for a fixed terminal pair x,yx,y, the Picard–Queyranne representation admits an O(n)O(n) space ordering of vertices that can determine, for any additional pair u,vu,v, whether some (x,y)(x,y)-mincut separates uu and vv, and report such a cut whenever one exists. This raises a natural question: can these two complementary guarantees be achieved simultaneously while retaining the same O(n)O(n) space bound?

We show that they can. For every undirected weighted graph, we construct an O(n)O(n) space data structure that simultaneously encodes, for every choice of four vertices x,y,u,vx,y,u,v, an (x,y)(x,y)-mincut separating uu and vv whenever one exists. More precisely, given any terminal pair x,yx,y, the structure recovers in O(n)O(n) time the Picard–Queyranne ordering of vertices. After this update, any pair u,vu,v can be tested for separability in O(1)O(1) time, and a separating mincut CC can be reported in O(∣C∣)O(|C|) time. Thus, information concerning all Θ(n4)\Theta(n^4) choices of x,y,u,vx,y,u,v is represented using only O(n)O(n) space. This is essentially the strongest information of this form that can fit in O(n)O(n) space: if one additionally requires the separating mincut to place uu on the side of xx and vv on the side of yy, then Ω(n2)\Omega(n^2) space is necessary even for a fixed terminal pair x,yx,y.

As an immediate consequence, we obtain an O(n)O(n) space all-pairs mincuts sensitivity oracle for a single edge failure in undirected multigraphs, with worst-case optimal O(n)O(n) time for reporting a new mincut after the failure. This resolves an open question of Baswana and Pandey [SODA 2022], who asked whether subquadratic space and O(m)O(m) query time could be achieved simultaneously. Technically, our construction substantially generalizes the recent O(n)O(n) space nearest mincut hierarchy [SODA 2027], which reports only the nearest (x,y)(x,y)-mincut. Recovering instead the entire Picard–Queyranne ordering of vertices for an arbitrary terminal pair x,yx,y requires new structural properties of the Dinitz–Vainshtein [STOC 1994] connectivity carcass that extend its use beyond the Steiner mincuts it directly represents.

*Weizmann Institute of Science, Israel. Email: koustav.bhanja@weizmann.ac.il. Supported by the Koshland Prize fellowship, and Merav Parter's European Research Council (ERC) grant under the European Union's Horizon 2020 research and innovation programme, grant agreement No. 949083.

†Weizmann Institute of Science, Israel. Email: merav.parter@weizmann.ac.il. Supported partially by the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme, grant agreement No. 949083.

†Weizmann Institute of Science, Israel. Email: asaf.petruschka@weizmann.ac.il. Supported by an Azrieli Foundation fellowship, and by Merav Parter's European Research Council (ERC) grant under the European Union's Horizon 2020 research and innovation programme, grant agreement No. 949083.

Contents 1 Introduction 1 2 Preliminaries 3 3 Technical Overview 4 3.1 The skeleton hierarchy and LCAs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.2 The strategy: building up with representative projections . . . . . . . . . . . . . . . . . . . 6 3.3 Defining the representatives: the α-components of the skeleton Hµ . . . . . . . . . . . . . . 7 3.4 Determining the x, y-units of representatives with augmented projections . . . . . . . . . . 8 3.5 Topologically ordering the x, y-units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4 Completing the Structural Analysis for x, y-Units 12 4.1 Atomicity and cyclic consitency for α-components . . . . . . . . . . . . . . . . . . . . . . 13 4.2 Determining the dichotomy with one tied α-component . . . . . . . . . . . . . . . . . . . . 14 5 Data Structure for Reporting x, y-Units 15 5.1 Construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.2 Query algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6 Reporting a Topological Ordering of x, y-Units 20 6.1 Processing the LCA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.2 Processing a node above the LCA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 A Comparison with [BKP27] 31 B Missing Proofs 33 ii