alphaFeedback

WorksComputer Science

Finding and Certifying Weighted Minimum Cuts with Cut Queries

AI contributions
Not recorded for this paper
View details
Ancillary data
1 code link
View

Abstract

We study the deterministic and nondeterministic cut query complexity of minimum cut in undirected graphs with arbitrary nonnegative edge weights. For the nondeterministic case, we show that every nn-vertex graph has an O(nlog⁡2(2n))O(n\log^2(2n))-query certificate of its exact global minimum-cut value, such that any other nonnegatively weighted graph on the same vertex set that agrees on these queries has the same minimum cut value. A key ingredient is a way to certify a maximum ss–tt flow value with only O(n)O(n) cut queries. For the deterministic case we give an algorithm that finds an exact global minimum cut using O(n3/2log⁡3(2n)(log⁡log⁡(2n))2)O(n^{3/2}\log^3(2n)(\log\log(2n))^2) cut queries. Previously no O(n2−ε)O(n^{2-\varepsilon}) deterministic bound was known for arbitrary nonnegatively weighted graphs. The algorithm follows Karger's two-respecting tree approach. The key new ingredient is a deterministic construction of a weak skeleton of the input graph GG: an explicit weighted graph HH in which every minimum cut of GG is a 5/45/4-approximate minimum cut.

Introduction

In this paper we study the problem of finding the global minimum-cut value of an undirected graph with arbitrary nonnegative real edge weights using cut queries. A cut query to a graph G=(V,w)G=(V,w) specifies some subset S⊆VS\subseteq V and returns the total weight cG(S)=w(S,V∖S)c_G(S)=w(S,V\setminus S) of edges with exactly one endpoint in SS. Write n=∣V∣≥2n=|V|\ge2 and λ(G)=min⁡∅≠S⊊VcG(S)\lambda(G)=\min_{\emptyset\ne S\subsetneq V}c_G(S). We give new upper bounds for computing λ(G)\lambda(G) in both the deterministic and nondeterministic cut query models. As usual in the cut query setting, we count only oracle calls; exact arithmetic and offline computation are unrestricted.

Minimum cuts have repeatedly shown themselves to have a great deal of structure that allows for efficient descriptions. One result of this form concerns the cut dimension. For a graph GG with mm positive-weight edges, represent each minimum cut by the characteristic vector of its edges in {0,1}m\{0,1\}^{m}. The cut dimension of GG is the dimension of the span of these vectors over all minimum cuts. Graur, Pollner, Ramaswamy, and Weinberg [11] introduced the cut dimension as a lower-bound technique for the deterministic cut-query complexity of global minimum cut. They proved an n+1n+1 upper bound for the analogous dimension of minimum ss–tt cuts, even in directed weighted graphs, but left open the question of how large the cut dimension of global minimum cuts could be. Lee, Li, Santha, and Zhang [15] then showed that the cut dimension of global minimum cuts is at most 2n−32n-3, and that this bound is tight. Faced with this obstruction to proving larger lower bounds, they introduced the ℓ1\ell_1-approximate cut dimension, a generalization with the potential to give stronger lower bounds. They showed an infinite family of nn-vertex graphs, with n=3k+1n=3k+1, whose ℓ1\ell_1-approximate cut dimension is 2n−22n-2 and left showing larger lower bounds as an open question.

Later, Auza and Lee [4] showed that, up to an additive term of at most one, the ℓ1\ell_1-approximate cut dimension equals the linear-query certificate complexity of minimum cut. A linear query is more general than a cut query and may ask for any linear combination of the edge weights. Here we study certificates restricted to cut queries, resulting in a potentially even larger quantity that is still a lower bound on deterministic cut query complexity. A cut-query certificate for a graph GG is a set of queries QQ such that every nonnegatively weighted graph G′G' on the same vertex set that agrees with GG on all queries in QQ has the same minimum-cut value. The certificate queries may be chosen with full knowledge of GG. Certifying that the minimum-cut value is at most λ(G)\lambda(G) is easy: just query a shore realizing it. The hard part is certifying that no shore can achieve a smaller value.

We show that the cut-query certificate complexity of minimum cut is O(nlog⁡2(2n))O(n\log^2(2n)). Consequently, neither cut-query certificate complexity nor ℓ1\ell_1-approximate cut dimension can yield a larger deterministic query lower bound for minimum cut. This is yet another way in which minimum cuts are simple: a nearly-linear number of cut queries suffices to fix the minimum cut value in a graph. The key ingredient in our proof is a way to certify the existence of an ss–tt flow of a given feasible value using just O(n)O(n) cut queries.

With another lower bound route blocked off, we turn to deterministic algorithms for finding a global minimum cut. In the randomized case, this question has essentially been solved. We know randomized O~(n)\widetilde{O}(n) cut query algorithms for both simple unweighted graphs [RSW18] and weighted graphs [MN20]; for simple graphs the bound was improved to O(n)O(n) in [AEG+22].

In the deterministic case, a simple graph can be reconstructed with O(n2/log⁡n)O(n^2/\log n) cut queries by simulating the additive queries of Grebinski and Kucherov [9], and this was the best bound known until Anand, Saranu­rak, and Wang [5] gave an O~(n5/3)\widetilde{O}(n^{5/3}) algorithm. Kenneth-Mordoch [KM26] recently improved this to O(n3/2log⁡2(2n))O(n^{3/2}\log^2(2n)) cut queries.

For arbitrary nonnegative real weights, however, the best previously known upper bound was the trivial one from reconstructing the graph, which uses Θ(n2)\Theta(n^2) cut queries, far from the lower bound of 2n−22n-2. We give a deterministic algorithm using O(n3/2log⁡3(2n)(log⁡log⁡(2n))2)O(n^{3/2}\log^3(2n)(\log\log(2n))^2) cut queries for the weighted case, within a log⁡(2n)(log⁡log⁡(2n))2\log(2n)(\log\log(2n))^2 factor of the current best unweighted bound. With the same number of queries the algorithm can return every minimum cut of GG, not just one.

The recent deterministic algorithms for simple graphs [5 KM26] use maximum-flow and minimum ss–tt-cut algorithms. Our algorithm instead follows the two-respecting-cut approach of Karger [12]. Karger’s nearly-linear time randomized algorithm finds O(log⁡n)O(\log n) spanning trees of the input graph such that, with high probability, some minimum cut contains at most two edges of one of these trees; such a cut two-respects the tree. This reduces the problem to finding a minimum cut among those that two-respect a given tree. Gawrychowski, Mozes, and Weimann [10], building on Mukhopadhyay and Nanongkai [MN20], gave a simple deterministic algorithm for this fixed-tree problem. While they did not explicitly state the algorithm in the cut query model, it is easily adapted to this model: we show in § 12 how to implement their reduction with O(nlog⁡n)O(n\log n) deterministic cut queries, even when the supplied tree has edges absent from the input graph. Thus the remaining problem is to find a small family of trees such that a minimum cut two-respects at least one of them.

Karger obtains the trees by sparsifying the graph with random sampling and using a spanning-tree packing [12]. We do not know how to construct such a sparsifier with a comparable deterministic cut-query bound. Instead, we construct a weaker object, a weak skeleton. After handling zero minimum cuts separately, we use O(n3/2log⁡3(2n)(log⁡log⁡(2n))2)O(n^{3/2}\log^3(2n)(\log\log(2n))^2) cut queries to construct an explicit nonnegative weighted graph HH on V(G)V(G) such that λ(H)≥λ(G)\lambda(H)\ge\lambda(G) and every minimum cut shore S∗S^* of GG satisfies cH(S∗)≤54λ(G)c_H(S^*)\le\frac{5}{4}\lambda(G). In particular, every minimum cut shore S∗S^* of GG is a 5/45/4-approximate minimum cut of HH. We then construct a family of O(log⁡n)O(\log n) spanning trees of HH such that every 5/45/4-approximate minimum cut of HH crosses at most two edges of some tree in the family (Lemma 17). This step uses only the explicit graph HH and requires no further queries to GG. Searching these trees with cut queries to GG finds an exact minimum cut in another O(nlog⁡2n)O(n\log^2 n) queries.

§ 2 gives an overview of the certificate proof. § 3 gives a roadmap of the deterministic algorithm, and § 4 and § 5 explain how we construct a weak skeleton via a tree cut sparsifier. Complete proofs are given in § 6 to § 12.

Lean Formalization As part of this work we have developed a library for cut-query algorithms in Lean 4 [14], available at https://github.com/troyjlee/cut-query-complexity. The library formalizes the main certificate and deterministic cut-query theorems of this paper together with their central ingredients, as well as many previous cut-query results on global minimum cut, ss–tt minimum cut and all-pairs minimum cut. We hope that this library will make it easier for others working on cut-query algorithms to formalize their results in Lean. Appendix § 15 records the correspondence between the named results of this paper and the Lean statements, including differences in formulation and the few claims that are not formalized.

Certifying a lower bound with few cut values

Define cert⁡(G)\operatorname{cert}(G) to be the minimum size of a family Q\mathcal{Q} of cuts such that

cG′(Q)=cG(Q)(Q∈Q),wG′≥0⟹λ(G′)=λ(G).(1)c_{G'}(Q)=c_G(Q)\quad(Q\in\mathcal{Q}),\qquad w_{G'}\ge0\quad\Longrightarrow\quad\lambda(G')=\lambda(G). \tag*{(1)}

The competing graph G′G' has the same vertex set and may put positive weight on any pair, including a nonedge of GG. Equivalently, cert⁡(G)\operatorname{cert}(G) is the nondeterministic cut-query complexity of determining λ(G)\lambda(G) on input GG: the query shores may be provided by an all-knowing prover with knowledge of GG, but their answers must determine the minimum-cut value uniquely. In particular cert⁡(G)\operatorname{cert}(G) is a lower bound on the number of cut queries that any deterministic algorithm computing λ\lambda on nonnegatively weighted graphs makes on input GG: the shores it asks on GG are answered identically by every consistent G′G', so its output, which is λ(G′)\lambda(G'), equals λ(G)\lambda(G).

Theorem 1 (Near-linear certificates). Every nonnegatively weighted undirected graph GG on n≥2n \ge2 vertices satisfies

cert⁡(G)=O(nlog⁡2(2n)).\operatorname{cert}(G) = O(n \log^{2}(2n)).

The certificate can be chosen to contain a shore S∗S^* that remains a minimum cut in every consistent nonnegatively weighted graph on V(G)V(G). If λ(G)=0\lambda(G) = 0, the single query S∗S^* suffices.

Fix λ=λ(G)\lambda= \lambda(G) and query an optimum shore for the upper bound. If λ=0\lambda= 0, this already certifies the optimum by nonnegativity. Otherwise, the difficulty is to force every nontrivial cut to have value at least λ\lambda.

For ss–tt cuts there is a clear strategy to lower bound their value: a feasible ss–tt flow of value cc certifies that every ss–tt cut has value at least cc. A first thought is to exhibit such a flow edge-by-edge, but in some weighted graphs every maximum ss–tt flow uses Ω(n2)\Omega(n^{2}) edges, making this strategy too expensive.

Our key ingredient is a way to certify the existence of a feasible ss–tt flow of value cc using O(n)O(n) cut queries. We describe the flow implicitly through an optimal dual solution to an auxiliary minimum-cost flow problem. The dual solution is represented by one potential per vertex, and a carefully chosen tree TT encodes these potentials. Complementary slackness then forces every non-tree edge to carry its full capacity in a direction determined by TT. We learn the total incoming and outgoing non-tree flow at each vertex using a constant number of cut queries. These totals determine the remaining divergence that the tree must supply so that the full flow has divergence cc at ss, −c-c at tt, and zero elsewhere. We explicitly learn the tree-edge capacities with O(n)O(n) cut queries and check that the uniquely determined tree flow respects them. We describe this certificate in the next subsection.

We certify that every nontrivial cut has value at least λ\lambda by combining the flow certificate with the isolating-cut framework of Li and Panigrahi [17]. The obstacle in adapting their terminal reduction is that it relies on expansion guarantees, which we do not know how to certify cheaply with cut queries. We instead use a terminal-halving argument whose key guarantee is witnessed by a feasible flow, so each halving step can be certified with O(n)O(n) cut queries. Specifically, given a terminal set UU, we retain at most half its terminals in R⊆UR \subseteq U and certify a feasible flow sending λ/2\lambda/2 units from each terminal in U∖RU \setminus R to RR, thereby certifying a lower bound of λ\lambda for every shore avoiding RR that contains at least two terminals of UU. Our construction is described in § 2.2.

A tree describes a certifiable flow

A signed flow on VV is a function f:V×V→Rf: V \times V \to\mathbb{R} satisfying fuv=−fvuf_{uv} = -f_{vu} for all u,v∈Vu,v \in V, where fuv>0f_{uv} > 0 means flow from uu to vv. The flow is feasible in GG if ∣fuv∣≤wuv|f_{uv}| \le w_{uv} for all u,v∈Vu,v \in V. Its divergence at a vertex vv is the net outflow

bv=∑u∈Vfvu,b_v = \sum_{u \in V} f_{vu},

the sum over uu of the flow from vv to uu, so that a source has positive and a sink negative divergence. Every feasible flow satisfies cG(S)≥∣∑v∈Sbv∣c_G(S) \ge\left|\sum_{v \in S} b_v\right| for every cut.

The key novelty in our global mincut certificate is the following lemma.

Lemma 2 (Flow certificates). *If a divergence vector b∈RVb \in\mathbb{R}^{V} admits a feasible flow in GG, then some labelled spanning tree TT of the complete graph on VV determines at most 4n−14n - 1 cut queries certifying

that bb admits a feasible flow in every consistent graph. The queried shores depend only on TT and the fixed vertex labels. In particular, an ss–tt minimum-cut shore and value have a certificate of at most 4n4n queries. For fixed disjoint nonempty terminal sets A,B⊆VA, B \subseteq V, their minimum separating-cut value has an O(n)O(n) cut-query certificate.

To prove Lemma 2, label the vertices 0,…,n−10,\ldots,n-1. For each pair {u,v}\{u,v\} with u<vu<v, assign the auxiliary cost auv=2un+va_{uv}=2^{un+v}, and put avu=−auva_{vu}=-a_{uv}. The sum of the costs around any simple cycle is nonzero for every choice of signs: the largest power of two exceeds the sum of all smaller powers. We then choose a feasible flow ff with divergence bb minimizing ∑u<vauvfuv\sum_{u<v}a_{uv}f_{uv}.

By complementary slackness for minimum-cost flows (see Bertsekas [7 Sections 1.2.3 and 2.3]), there are vertex potentials pvp_v such that, for the reduced costs ρp(u,v)=auv−pu+pv\rho_p(u,v)=a_{uv}-p_u+p_v, a negative reduced cost forces fuv=wuvf_{uv}=w_{uv} and a positive reduced cost forces fuv=−wuvf_{uv}=-w_{uv}. Thus every unsaturated edge has zero reduced cost. The pairs with zero reduced cost form a forest: around any cycle of such pairs, the identities auv=pu−pva_{uv}=p_u-p_v would telescope to a zero signed cost sum, contrary to our choice of costs.

The vertex potentials have one additive degree of freedom on each component of the zero-reduced-cost forest: a common shift preserves all potential differences, and hence all reduced costs, within that component. We use this freedom to extend the forest to a spanning tree while preserving complementary slackness. Choose a component and a pair crossing it with minimum absolute reduced cost, and add the same constant to every vertex potential in the component until that pair has reduced cost zero. By this choice of crossing pair, no reduced cost reverses sign, so ff still satisfies the same optimality conditions. Each step merges components; repeating produces a spanning tree TT of pairs with zero reduced cost. Root TT at any vertex rr and normalize pr=0p_r=0. The equations pu−pv=auvp_u-p_v=a_{uv} along tree edges then determine all vertex potentials, and hence every non-tree reduced cost. Thus TT encodes the direction in which each non-tree pair is saturated. This applies even to pairs absent from GG, and TT may itself contain zero-capacity edges. The full construction and proof appear in § 7.1.

It remains to check that this prescribed non-tree flow can be completed on TT to have divergence bb. First query all singleton cuts and the two-vertex cuts for tree edges. By the well-known fact that for two disjoint sets A,BA, B

References

  1. [1]Daniel Agassy, Dani Dorfman, and Haim Kaplan. Improved tree sparsifiers in near-linear time. In 53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026), volume 374 of LIPIcs, pages 7:1–7:23, 2026. doi:10.4230/LIPIcs.ICALP.2026.7.DOI
  2. [3]Alok Aggarwal, Maria M. Klawe, Shlomo Moran, Peter W. Shor, and Robert Wilber. Geometric applications of a matrix-searching algorithm. Algorithmica, 2:195–208, 1987.
  3. [4]Arinta Auza and Troy Lee. On the query complexity of connectivity with global queries. arXiv:2109.02115, 2021.arxiv.org/abs/2109.02115
  4. [5]Aditya Anand, Thatchaphol Saranurak, and Yunfan Wang. Deterministic edge connectivity and max flow using subquadratic cut queries. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 124–142. SIAM, 2025.arxiv.org/abs/2410.18704
  5. [6]Joshua Batson, Daniel A. Spielman, and Nikhil Srivastava. Twice-Ramanujan sparsifiers. SIAM Journal on Computing, 41(6):1704–1721, 2012.
  6. [7]Dimitri P. Bertsekas. Linear Network Optimization: Algorithms and Codes. MIT Press, Cambridge, MA, 1991.
  7. [8]Matthias Englert, Anupam Gupta, Robert Krauthgamer, Harald Räcke, Inbal Talgam-Cohen, and Kunal Talwar. Vertex sparsifiers: New results from old techniques. SIAM Journal on Computing, 43(4):1239–1262, 2014.
  8. [9]Vladimir Grebinski and Gregory Kucherov. Optimal reconstruction of graphs under the additive model. Algorithmica, 28(1):104–124, 2000.
  9. [10]Paweł Gawrychowski, Shay Mozes, and Oren Weimann. A note on a recent algorithm for minimum cut. In Symposium on Simplicity in Algorithms (SOSA 2021), pages 74–79. SIAM, 2021.arxiv.org/abs/2008.02060
  10. [11]Andrei Graur, Tristan Pollner, Vidhya Ramaswamy, and S. Matthew Weinberg. New query lower bounds for submodular function minimization. In 11th Innovations in Theoretical Computer Science Conference (ITCS 2020), volume 151 of Leibniz International Proceedings in Informatics (LIPIcs), pages 64:1–64:16. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2020.arxiv.org/abs/1911.06889
  11. [12]David R. Karger. Minimum cuts in near-linear time. Journal of the ACM, 47(1):46–76, 2000.
  12. [14]Troy Lee. Cut query complexity in Lean, version 0.1.0. Lean 4 library, 2026. doi:10.5281/zenodo.23885654.
  13. [15]Troy Lee, Tongyang Li, Miklós Santha, and Shengyu Zhang. On the cut dimension of a graph. In 36th Computational Complexity Conference (CCC 2021), volume 200 of Leibniz International Proceedings in Informatics (LIPIcs), pages 15:1–15:35. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2021.arxiv.org/abs/2011.05085
  14. [16]László Lovász. On some connectivity properties of Eulerian graphs. Acta Mathematica Academiae Scientiarum Hungaricae, 28:129–138, 1976.DOI
  15. [17]Jason Li and Debmalya Panigrahi. Deterministic minimum cut in poly-logarithmic maximum flows. Journal of the ACM, 72(4):29:1–29:18, 2025.DOI
  16. [18]Wolfgang Mader. A reduction method for edge-connectivity in graphs. In Advances in Graph Theory, volume 3 of Annals of Discrete Mathematics, pages 145–164. North-Holland, 1978.DOI
  17. [20]Harald Räcke. Minimizing congestion in general networks. In Proceedings of the 43rd Annual IEEE Symposium on Foundations of Computer Science (FOCS 2002), pages 43–52. IEEE, 2002.
  18. [21]Harald Räcke and Chintan Shah. Improved guarantees for tree cut sparsifiers. In Algorithms – ESA 2014, volume 8737 of Lecture Notes in Computer Science, pages 774–785. Springer, 2014.

Paper details

vlnc:W_bccjzcam
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents