arXiv:2609.31290cs.DSSep 2026

Manuscript Offprint

arXiv:2609.31290

An Optimal Structure for All-Pairs Nearest Mincuts and Sensitivity Oracles for Edge Insertions

Koustav Bhanja, Yotam Kenneth-Mordoch, Asaf Petruschka

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

Abstract

Given an undirected weighted graph G=(V,E)G = (V, E) on nn vertices, the classical Gomory-Hu tree of GG is a structure that encodes an arbitrary minimum s,ts, t-cut for every s,t∈Vs, t \in V using just O(n)O(n) space. In this work, we address whether the same compactness is achievable for the natural and structured family of all-pairs nearest minimum cuts. The nearest minimum (s,t)(s, t)-cut is the unique inclusion-wise minimal one among all minimum s,ts, t-cuts containing ss. This family has proven useful in a wide range of applications, including fault-tolerant reachability, minimum cut sensitivity oracles, cactus representations, and fast Gomory-Hu tree constructions. Despite its fundamental role, no subquadratic-space representation is known for all-pairs nearest minimum cuts to date. Representations using O(n)O(n) space are known only in the restricted single-source setting, where given a source ss one can report the nearest minimum (t,s)(t, s)-cut for any t∈V∖{s}t \in V \setminus \{s\}.

We close this gap by presenting the first optimal-space representation of all-pairs nearest minimum cuts, providing a natural analogue of the Gomory-Hu tree. Our main result is an O(n)O(n) space structure that encodes the nearest minimum cut between every pair of vertices. Furthermore, given any pair s,t∈Vs, t \in V, it can report the nearest minimum s,ts, t-cut in O(n)O(n) time. Both bounds match those of the Gomory-Hu tree and are worst-case optimal. As an application, we leverage this data structure to design an all-pairs minimum cut sensitivity oracle for edge insertion: a data structure that occupies O(n)O(n) space and, given a query edge ee, can determine for all pairs s,t∈Vs, t \in V whether the minimum s,ts, t-cut value increases upon insertion of ee in O(n2)O(n^2) total time, i.e., amortized O(1)O(1) time per vertex pair. Existing insertion sensitivity oracles were either limited to the single-source setting or used O(n2)O(n^2) space for all-pairs [Baswana, Gupta, and Knollmann, Algorithmica'22; Baswana and Pandey, SODA'22]. Technically, our results heavily utilize the sophisticated connectivity carcass data structure for Steiner mincuts [Dinitz and Vainshtein, STOC'94], highlighting its usefulness in compactly representing minimum cuts.

*Weizmann Institute of Science, Israel. Email: koustav.bhanja@weizmann.ac.il. Supported by the Koshland 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.

†^{\dagger}Weizmann Institute of Science, Israel. Email: yotam.kenneth@weizmann.ac.il.

‡^{\ddagger}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 4
3 Technical Overview 5
3.1 The Nearest Mincut Hierarchy 5
3.2 The Base Case: LCA T(x,y)_{\mathcal{T}}(x, y) 7
3.3 The First Step: Parent of LCA T(x,y)_{\mathcal{T}}(x, y) 7
3.4 The Generic Steps: Any ancestor of LCA T(x,y)_{\mathcal{T}}(x, y) 8
4 Chain Maximizers for a Family of Nearest Mincuts 12
5 Data Structure: Nearest Mincut Hierarchy 14
6 A Characterization of Skeleton Subtrees 16
7 Algorithm for Reporting the Nearest Mincut for a Pair of Vertices 17
7.1 Query Algorithm 17
7.2 Correctness 18
8 Reporting the Nearest Mincut Tree of a Vertex 20
9 Sensitivity Oracles for the Insertion of an Edge 26
10 Minimal Gomory-Hu Tree Lower Bound 26
11 Conclusion and Future Works 28
A Missing Proofs 31

References (40)