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) G = ( V , w ) specifies some subset S ⊆ V S\subseteq V S ⊆ V and returns the total weight c G ( S ) = w ( S , V ∖ S ) c_G(S)=w(S,V\setminus S) c G ( S ) = w ( S , V ∖ S ) of edges with exactly one endpoint in S S S . Write n = ∣ V ∣ ≥ 2 n=|V|\ge2 n = ∣ V ∣ ≥ 2 and λ ( G ) = min ∅ ≠ S ⊊ V c G ( S ) \lambda(G)=\min_{\emptyset\ne S\subsetneq V}c_G(S) λ ( G ) = min ∅ = S ⊊ V c G ( S ) . We give new upper bounds for computing λ ( G ) \lambda(G) λ ( 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 G G G with m m m positive-weight edges, represent each minimum cut by the characteristic vector of its edges in { 0 , 1 } m \{0,1\}^{m} { 0 , 1 } m . The cut dimension of G G G 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 + 1 n+1 n + 1 upper bound for the analogous dimension of minimum s s s –t t t 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 2 n − 3 2n-3 2 n − 3 , and that this bound is tight. Faced with this obstruction to proving larger lower bounds, they introduced the ℓ 1 \ell_1 ℓ 1 -approximate cut dimension, a generalization with the potential to give stronger lower bounds. They showed an infinite family of n n n -vertex graphs, with n = 3 k + 1 n=3k+1 n = 3 k + 1 , whose ℓ 1 \ell_1 ℓ 1 -approximate cut dimension is 2 n − 2 2n-2 2 n − 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 ℓ 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 G G G is a set of queries Q Q Q such that every nonnegatively weighted graph G ′ G' G ′ on the same vertex set that agrees with G G G on all queries in Q Q Q has the same minimum-cut value. The certificate queries may be chosen with full knowledge of G G G . Certifying that the minimum-cut value is at most λ ( G ) \lambda(G) λ ( 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 ( n log 2 ( 2 n ) ) O(n\log^2(2n)) O ( n log 2 ( 2 n )) . Consequently, neither cut-query certificate complexity nor ℓ 1 \ell_1 ℓ 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 s s s –t t t flow of a given feasible value using just O ( n ) 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) 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) O ( n ) in [AEG+22].
In the deterministic case, a simple graph can be reconstructed with O ( n 2 / log n ) O(n^2/\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, Saranurak, and Wang [5 ] gave an O ~ ( n 5 / 3 ) \widetilde{O}(n^{5/3}) O ( n 5/3 ) algorithm. Kenneth-Mordoch [KM26] recently improved this to O ( n 3 / 2 log 2 ( 2 n ) ) O(n^{3/2}\log^2(2n)) O ( n 3/2 log 2 ( 2 n )) cut queries.
For arbitrary nonnegative real weights, however, the best previously known upper bound was the trivial one from reconstructing the graph, which uses Θ ( n 2 ) \Theta(n^2) Θ ( n 2 ) cut queries, far from the lower bound of 2 n − 2 2n-2 2 n − 2 . We give a deterministic algorithm using O ( n 3 / 2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O(n^{3/2}\log^3(2n)(\log\log(2n))^2) O ( n 3/2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) cut queries for the weighted case, within a log ( 2 n ) ( log log ( 2 n ) ) 2 \log(2n)(\log\log(2n))^2 log ( 2 n ) ( log log ( 2 n ) ) 2 factor of the current best unweighted bound. With the same number of queries the algorithm can return every minimum cut of G G G , not just one.
The recent deterministic algorithms for simple graphs [5 KM26] use maximum-flow and minimum s s s –t t t -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) 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 ( n log n ) O(n\log 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 ( n 3 / 2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O(n^{3/2}\log^3(2n)(\log\log(2n))^2) O ( n 3/2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) cut queries to construct an explicit nonnegative weighted graph H H H on V ( G ) V(G) V ( G ) such that λ ( H ) ≥ λ ( G ) \lambda(H)\ge\lambda(G) λ ( H ) ≥ λ ( G ) and every minimum cut shore S ∗ S^* S ∗ of G G G satisfies c H ( S ∗ ) ≤ 5 4 λ ( G ) c_H(S^*)\le\frac{5}{4}\lambda(G) c H ( S ∗ ) ≤ 4 5 λ ( G ) . In particular, every minimum cut shore S ∗ S^* S ∗ of G G G is a 5 / 4 5/4 5/4 -approximate minimum cut of H H H . We then construct a family of O ( log n ) O(\log n) O ( log n ) spanning trees of H H H such that every 5 / 4 5/4 5/4 -approximate minimum cut of H H H crosses at most two edges of some tree in the family (Lemma 17 ). This step uses only the explicit graph H H H and requires no further queries to G G G . Searching these trees with cut queries to G G G finds an exact minimum cut in another O ( n log 2 n ) O(n\log^2 n) 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, s s s –t t t 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) cert ( G ) to be the minimum size of a family Q \mathcal{Q} Q of cuts such that
c G ′ ( Q ) = c G ( Q ) ( Q ∈ Q ) , w G ′ ≥ 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)} c G ′ ( Q ) = c G ( Q ) ( Q ∈ Q ) , w G ′ ≥ 0 ⟹ λ ( G ′ ) = λ ( G ) . (1)
The competing graph G ′ G' G ′ has the same vertex set and may put positive weight on any pair, including a nonedge of G G G . Equivalently, cert ( G ) \operatorname{cert}(G) cert ( G ) is the nondeterministic cut-query complexity of determining λ ( G ) \lambda(G) λ ( G ) on input G G G : the query shores may be provided by an all-knowing prover with knowledge of G G G , but their answers must determine the minimum-cut value uniquely. In particular cert ( G ) \operatorname{cert}(G) 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 G G G : the shores it asks on G G G are answered identically by every consistent G ′ G' G ′ , so its output, which is λ ( G ′ ) \lambda(G') λ ( G ′ ) , equals λ ( G ) \lambda(G) λ ( G ) .
Theorem 1 (Near-linear certificates). Every nonnegatively weighted undirected graph G G G on n ≥ 2 n \ge2 n ≥ 2 vertices satisfies
cert ( G ) = O ( n log 2 ( 2 n ) ) . \operatorname{cert}(G) = O(n \log^{2}(2n)). cert ( G ) = O ( n log 2 ( 2 n )) . The certificate can be chosen to contain a shore S ∗ S^* S ∗ that remains a minimum cut in every consistent nonnegatively weighted graph on V ( G ) V(G) V ( G ) . If λ ( G ) = 0 \lambda(G) = 0 λ ( G ) = 0 , the single query S ∗ S^* S ∗ suffices.
Fix λ = λ ( G ) \lambda= \lambda(G) λ = λ ( G ) and query an optimum shore for the upper bound. If λ = 0 \lambda= 0 λ = 0 , this already certifies the optimum by nonnegativity. Otherwise, the difficulty is to force every nontrivial cut to have value at least λ \lambda λ .
For s s s –t t t cuts there is a clear strategy to lower bound their value: a feasible s s s –t t t flow of value c c c certifies that every s s s –t t t cut has value at least c c c . A first thought is to exhibit such a flow edge-by-edge, but in some weighted graphs every maximum s s s –t t t flow uses Ω ( n 2 ) \Omega(n^{2}) Ω ( n 2 ) edges, making this strategy too expensive.
Our key ingredient is a way to certify the existence of a feasible s s s –t t t flow of value c c c using O ( n ) 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 T T T encodes these potentials. Complementary slackness then forces every non-tree edge to carry its full capacity in a direction determined by T T T . 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 c c c at s s s , − c -c − c at t t t , and zero elsewhere. We explicitly learn the tree-edge capacities with O ( n ) 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) O ( n ) cut queries. Specifically, given a terminal set U U U , we retain at most half its terminals in R ⊆ U R \subseteq U R ⊆ U and certify a feasible flow sending λ / 2 \lambda/2 λ /2 units from each terminal in U ∖ R U \setminus R U ∖ R to R R R , thereby certifying a lower bound of λ \lambda λ for every shore avoiding R R R that contains at least two terminals of U U U . Our construction is described in § 2.2 .
A tree describes a certifiable flow
A signed flow on V V V is a function f : V × V → R f: V \times V \to\mathbb{R} f : V × V → R satisfying f u v = − f v u f_{uv} = -f_{vu} f uv = − f v u for all u , v ∈ V u,v \in V u , v ∈ V , where f u v > 0 f_{uv} > 0 f uv > 0 means flow from u u u to v v v . The flow is feasible in G G G if ∣ f u v ∣ ≤ w u v |f_{uv}| \le w_{uv} ∣ f uv ∣ ≤ w uv for all u , v ∈ V u,v \in V u , v ∈ V . Its divergence at a vertex v v v is the net outflow
b v = ∑ u ∈ V f v u , b_v = \sum_{u \in V} f_{vu}, b v = u ∈ V ∑ f v u ,
the sum over u u u of the flow from v v v to u u u , so that a source has positive and a sink negative divergence. Every feasible flow satisfies c G ( S ) ≥ ∣ ∑ v ∈ S b v ∣ c_G(S) \ge\left|\sum_{v \in S} b_v\right| c G ( S ) ≥ ∑ v ∈ S b v for every cut.
The key novelty in our global mincut certificate is the following lemma.
Lemma 2 (Flow certificates). *If a divergence vector b ∈ R V b \in\mathbb{R}^{V} b ∈ R V admits a feasible flow in G G G , then some labelled spanning tree T T T of the complete graph on V V V determines at most 4 n − 1 4n - 1 4 n − 1 cut queries certifying
that b b b admits a feasible flow in every consistent graph. The queried shores depend only on T T T and the fixed vertex labels. In particular, an s s s –t t t minimum-cut shore and value have a certificate of at most 4 n 4n 4 n queries. For fixed disjoint nonempty terminal sets A , B ⊆ V A, B \subseteq V A , B ⊆ V , their minimum separating-cut value has an O ( n ) O(n) O ( n ) cut-query certificate.
To prove Lemma 2 , label the vertices 0 , … , n − 1 0,\ldots,n-1 0 , … , n − 1 . For each pair { u , v } \{u,v\} { u , v } with u < v u<v u < v , assign the auxiliary cost a u v = 2 u n + v a_{uv}=2^{un+v} a uv = 2 u n + v , and put a v u = − a u v a_{vu}=-a_{uv} a v u = − 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 f f f with divergence b b b minimizing ∑ u < v a u v f u v \sum_{u<v}a_{uv}f_{uv} ∑ 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 p v p_v p v such that, for the reduced costs ρ p ( u , v ) = a u v − p u + p v \rho_p(u,v)=a_{uv}-p_u+p_v ρ p ( u , v ) = a uv − p u + p v , a negative reduced cost forces f u v = w u v f_{uv}=w_{uv} f uv = w uv and a positive reduced cost forces f u v = − w u v f_{uv}=-w_{uv} f 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 a u v = p u − p v a_{uv}=p_u-p_v a 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 f f f still satisfies the same optimality conditions. Each step merges components; repeating produces a spanning tree T T T of pairs with zero reduced cost. Root T T T at any vertex r r r and normalize p r = 0 p_r=0 p r = 0 . The equations p u − p v = a u v p_u-p_v=a_{uv} p u − p v = a uv along tree edges then determine all vertex potentials, and hence every non-tree reduced cost. Thus T T T encodes the direction in which each non-tree pair is saturated. This applies even to pairs absent from G G G , and T T T 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 T T T to have divergence b b b . First query all singleton cuts and the two-vertex cuts for tree edges. By the well-known fact that for two disjoint sets A , B A, B A , B
2 w G ( A , B ) = c G ( A ) + c G ( B ) − c G ( A ∪ B ) , (2) 2w_G(A,B)=c_G(A)+c_G(B)-c_G(A\cup B), \tag*{(2)} 2 w G ( A , B ) = c G ( A ) + c G ( B ) − c G ( A ∪ B ) , (2)
these n + ( n − 1 ) n+(n-1) n + ( n − 1 ) queries determine the capacity of every tree edge. For each vertex v v v , let O v O_v O v be its outgoing non-tree neighbors as prescribed by T T T , and query O v O_v O v and O v ∪ { v } O_v\cup\{v\} O v ∪ { v } . The same identity gives the total outgoing non-tree flow at v v v . Its total incoming non-tree flow is the singleton cut value minus the incident tree capacities and the outgoing non-tree flow. Thus at most n + ( n − 1 ) + 2 n = 4 n − 1 n+(n-1)+2n=4n-1 n + ( n − 1 ) + 2 n = 4 n − 1 queries determine all tree capacities and the non-tree divergence b n t b^{\mathrm{nt}} b nt .
The residual divergence q = b − b n t q=b-b^{\mathrm{nt}} q = b − b nt sums to zero and determines a unique flow on T T T . If deleting a tree edge u v uv uv leaves the component A A A containing u u u , its flow from u u u to v v v must be ∑ x ∈ A q x \sum_{x\in A}q_x ∑ x ∈ A q x . Checking the absolute values of these n − 1 n-1 n − 1 flows against their measured tree capacities completes verification. Figure 1 illustrates this recovery from the tree.
Figure 1. A flow certificate described by a tree. Solid edges form T T T ; dashed arrows in (a) show selected saturated non-tree pairs. Deleting e = { 1 , 4 } e=\{1,4\} e = { 1 , 4 } leaves the component A = { 0 , 1 , 2 } A=\{0,1,2\} A = { 0 , 1 , 2 } . Its residual divergence determines the signed tree flow from 1 to 4; b n t b^{\mathrm{nt}} b nt denotes the non-tree divergence.
In any graph G ′ G' G ′ consistent with these answers, the tree capacities and the measured non-tree divergence are unchanged. Saturate its non-tree pairs in the directions fixed by T T T , using their capacities in G ′ G' G ′ , and add the same tree flow. The resulting flow is feasible and has divergence b b b . This also handles new positive edges, since T T T already prescribes a direction for every non-tree pair.
For the s s s –t t t conclusion of Lemma 2 , certify a maximum flow and query a matching minimum-cut shore. This gives both bounds on the optimum using at most 4 n 4n 4 n queries. If the optimum is zero, the shore query alone suffices by nonnegativity.
Isolating cuts and terminal halving
A cut separates a terminal set U U U if each shore contains at least one vertex of U U U . Start with U = V U=V U = V , so every nontrivial cut separates U U U . We maintain that any nontrivial cut of value below λ \lambda λ in a consistent graph must separate U U U . Each round has two steps. First, we certify that every cut isolating a single terminal of U U U has value at least λ \lambda λ . Any remaining cut below λ \lambda λ therefore has at least two terminals on each shore. Second, we certify a feasible flow that forces every cut of value below λ \lambda λ with at least two terminals of U U U on each shore to separate a smaller terminal set R ⊆ U R\subseteq U R ⊆ U , with ∣ R ∣ ≤ ∣ U ∣ / 2 |R|\leq|U|/2 ∣ R ∣ ≤ ∣ U ∣/2 . We then replace U U U by R R R and repeat. Eventually U U U is a singleton, which no cut can separate, establishing the desired lower bound.
Certifying isolating cuts. For a terminal set U U U and v ∈ U v\in U v ∈ U , an isolating cut separates v v v from U ∖ { v } U\setminus\{v\} U ∖ { v } . We certify all these optimum values using O ( n log ∣ U ∣ ) O(n\log|U|) O ( n log ∣ U ∣ ) queries (Lemma 11 ). We combine the isolating-cut framework of Li and Panigrahi [17 ] with the flow certificates above. Give the terminals distinct binary labels. For each bit, query a minimum cut separating its zero and one classes and certify its optimality by a flow. Intersect the chosen shores containing a terminal v v v to obtain a cell P v P_v P v . The cells are disjoint, and an uncrossing argument places an inclusion-minimal optimum isolating shore inside P v P_v P v . Because the bit cuts are certified, this containment holds in every consistent graph.
We can now certify the local flow problem in every cell. Contract the outside of P v P_v P v to a single sink t v t_v t v . A cut query to the contracted graph is one cut query to G G G : a shore X ⊆ P v X\subseteq P_v X ⊆ P v has value c G ( X ) c_G(X) c G ( X ) , and a shore containing t v t_v t v has value c G ( P v ∖ ( X ∖ { t v } ) ) c_G(P_v\setminus(X\setminus\{t_v\})) c G ( P v ∖ ( X ∖ { t v })) . A consistent graph contracts to a consistent local graph. The total size of these local networks is O ( n ) O(n) O ( n ) because the cells are disjoint, so their flow certificates and optimum-shore queries cost O ( n ) O(n) O ( n ) altogether; the ⌈ log 2 ∣ U ∣ ⌉ \lceil\log_2 |U|\rceil ⌈ log 2 ∣ U ∣ ⌉ bit cuts account for the logarithm. This is where the isolating-cut framework makes many lower-bound witnesses affordable.
Halving the terminal set. For ∣ U ∣ ≥ 2 |U|\geq2 ∣ U ∣ ≥ 2 , there is a nonempty R ⊂ U R\subset U R ⊂ U , ∣ R ∣ ≤ ∣ U ∣ / 2 |R|\leq|U|/2 ∣ R ∣ ≤ ∣ U ∣/2 , such that every discarded terminal simultaneously sends λ / 2 \lambda/2 λ /2 units to R R R , with zero divergence outside U U U (Lemma 13). Certifying this divergence forces
c G ( S ) ≥ λ 2 ∣ S ∩ U ∣ whenever S ∩ R = ∅ . (3) c_G(S)\geq\frac{\lambda}{2}|S\cap U| \qquad\text{whenever } S\cap R=\varnothing. \tag*{(3)} c G ( S ) ≥ 2 λ ∣ S ∩ U ∣ whenever S ∩ R = ∅ . (3)
To obtain the flow, we split off the nonterminals. For multigraphs, the splitting-off theorems of Lovász and Mader [16 , 18 ] allow this: a nonterminal can be removed, replacing pairs of its edges s u su s u , s v sv s v by edges u v uv uv , without lowering the edge connectivity between any two remaining vertices. We need a fractional form for arbitrary real capacities, which we prove directly (Lemma 12 ). The resulting graph J J J is supported on U U U , is dominated by G G G on every cut, and retains value at least λ \lambda λ on every U U U -separating cut. Choose X ⊆ U X \subseteq U X ⊆ U maximizing c J ( X ) c_J(X) c J ( X ) and let R R R be the smaller of X X X and U ∖ X U \setminus X U ∖ X . Every terminal outside R R R has at least half its incident weight going to R R R , since otherwise moving it across would improve the maximum cut. Its weighted degree is at least λ \lambda λ . It follows that c G ( S ) ≥ c J ( S ) ≥ ( λ / 2 ) ∣ S ∩ U ∣ c_G(S) \ge c_J(S) \ge(\lambda/2)|S \cap U| c G ( S ) ≥ c J ( S ) ≥ ( λ /2 ) ∣ S ∩ U ∣ for every shore avoiding R R R . Max-flow/min-cut turns these inequalities into the simultaneous flow in G G G . Only its divergence is certified; the split-off graph and maximum cut are chosen with full input knowledge.
Equation (3) shows that a cut below λ \lambda λ with at least two terminals of U U U on each shore must separate R R R : a shore avoiding R R R would have value at least λ \lambda λ .
Each of the at most ⌈ log 2 n ⌉ \lceil\log_2 n \rceil ⌈ log 2 n ⌉ rounds costs O ( n log ∣ U ∣ ) O(n \log|U|) O ( n log ∣ U ∣ ) queries for isolating cuts and O ( n ) O(n) O ( n ) for the halving flow, giving O ( n log 2 ( 2 n ) ) O(n \log^2(2n)) O ( n log 2 ( 2 n )) in total. If λ = 0 \lambda= 0 λ = 0 , the queried optimum shore alone suffices by nonnegativity.
The deterministic algorithm: a roadmap
The cut certificate for G G G of § 2 already yields a skeleton , a sparse graph H H H with O ( n log 2 n ) O(n \log^2 n) O ( n log 2 n ) edges and the same vertex set as G G G such that λ ( H ) = λ ( G ) \lambda(H) = \lambda(G) λ ( H ) = λ ( G ) and a shore S ∗ S^* S ∗ that realizes a minimum cut of G G G also realizes a minimum cut of H H H (Proposition 15 ). The certificate, however, is chosen with full knowledge of G G G . For our deterministic algorithm we settle for a weaker object.
Definition 3 (Weak skeleton). Let G G G be a graph with λ = λ ( G ) > 0 \lambda= \lambda(G) > 0 λ = λ ( G ) > 0 . An explicit nonnegative weighted graph H H H on V ( G ) V(G) V ( G ) is a weak skeleton of G G G if λ ( H ) ≥ λ \lambda(H) \ge\lambda λ ( H ) ≥ λ and every minimum-cut shore S ∗ S^* S ∗ of G G G satisfies c H ( S ∗ ) ≤ 5 4 λ c_H(S^*) \le\frac{5}{4}\lambda c H ( S ∗ ) ≤ 4 5 λ . In particular every minimum cut of G G G is a 5 / 4 5/4 5/4 -approximate minimum cut of H H H .
Once H H H is explicit, we follow Karger’s nearly linear-time algorithm [12 ] : a tree-packing argument deterministically produces O ( log n ) O(\log n) O ( log n ) spanning trees of H H H such that every 5 / 4 5/4 5/4 -approximate minimum cut of H H H , and in particular S ∗ S^* S ∗ , two-respects one of them (Lemma 17 ). We then adapt the algorithm of Gawrychowski, Mozes, and Weimann [10 ] to the cut-query model to find a minimum two-respecting cut of G G G for each tree with O ( n log n ) O(n \log n) O ( n log n ) cut queries (Theorem 19 and § 12 ). These two steps require only modest adaptations of prior work. The main novelty is deterministically constructing the weak skeleton, which we focus on in this overview.
The pipeline. After testing connectivity of the positive-weight support of G G G with O ( n log n ) O(n \log n) O ( n log n ) queries, and returning a zero cut if it is disconnected, we may assume λ ( G ) > 0 \lambda(G) > 0 λ ( G ) > 0 . The weak skeleton is then constructed in two stages, with a parameter α \alpha α to be chosen.
Learn (§ 5 ). Using O ( ( n 2 / α ) log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O((n^2/\alpha)\log^3(2n)(\log\log(2n))^2) O (( n 2 / α ) log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) cut queries, contract vertex pairs that no minimum cut of G G G separates, and find an explicit tree with O ( n ) O(n) O ( n ) vertices that approximates every cut of the contracted graph within a factor α \alpha α . Such a tree is an α \alpha α -tree cut sparsifier; the precise definitions follow in § 3.1 . This stage works for every α \alpha α between C log 2 ( 2 n ) ( log log ( 2 n ) ) 2 C\log^2(2n)(\log\log(2n))^2 C log 2 ( 2 n ) ( log log ( 2 n ) ) 2 and n \sqrt{n} n , for an absolute constant C C C .
Convert (§ 4 ). Using O ( n α log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O(n\alpha\log^3(2n)(\log\log(2n))^2) O ( n α log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) further cut queries, turn that tree into a weak skeleton of the contracted graph, and lift it back to G G G .
Balancing the two stages at α = Θ ( n ) \alpha= \Theta(\sqrt{n}) α = Θ ( n ) gives the following theorem. For the finitely many n n n with n \sqrt{n} n below the threshold C log 2 ( 2 n ) ( log log ( 2 n ) ) 2 C\log^{2}(2n)(\log\log(2n))^{2} C log 2 ( 2 n ) ( log log ( 2 n ) ) 2 , the graph is simply reconstructed with O ( n 2 ) = O ( 1 ) O(n^{2}) = O(1) O ( n 2 ) = O ( 1 ) queries.
Theorem 4 (Deterministic weighted minimum cut). *There is a deterministic algorithm that, given cut-query access to an n n n -vertex undirected graph G G G , n ≥ 2 n \ge2 n ≥ 2 , with arbitrary nonnegative real edge weights, returns λ ( G ) \lambda(G) λ ( G ) and every minimum-cut shore of G G G using
O ( n 3 / 2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O\left(n^{3/2}\log^{3}(2n)(\log\log(2n))^{2}\right) O ( n 3/2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) cut queries. If λ ( G ) = 0 \lambda(G) = 0 λ ( G ) = 0 , it returns the partition of V V V into the components of the positive support, whose proper unions are exactly the minimum-cut shores.*
Two features of the construction let the algorithm return every minimum cut rather than a single one: a weak skeleton approximates every minimum cut of G G G at once, and the two-respecting search can report every cut at a known level rather than a single lightest one (Theorem 52 ). The proof is given in § 11.24 .
The rest of this section fixes the definitions and notation needed for the weak skeleton construction.
Quotients, hierarchies, and tree cut sparsifiers
Quotients and safe partitions. For a partition P \mathcal{P} P of V V V , the quotient graph G / P G/\mathcal{P} G / P has one vertex for each part of P \mathcal{P} P . The weight between distinct parts A A A , B B B is the total weight w G ( A , B ) w_G(A,B) w G ( A , B ) of edges joining them in G G G ; edges within a part are discarded. Every shore S ⊆ P S \subseteq\mathcal{P} S ⊆ P therefore satisfies
c G / P ( S ) = c G ( ⋃ A ∈ S A ) , c_{G/\mathcal{P}}(S) = c_G\left(\bigcup_{A\in S} A\right), c G / P ( S ) = c G ( A ∈ S ⋃ A ) ,
so one cut query to the quotient is one cut query to G G G . A partition P \mathcal{P} P of V V V is safe if no minimum cut of G G G separates two vertices in the same part. Equivalently, every minimum-cut shore of G G G is a union of parts of P \mathcal{P} P , and λ ( G / P ) = λ ( G ) \lambda(G/\mathcal{P}) = \lambda(G) λ ( G / P ) = λ ( G ) . The learning stage contracts only vertex pairs that no minimum cut separates, so its contracted classes form a safe partition.
Tree cut sparsifiers. Let T T T be a nonnegatively weighted tree with V ( G ) ⊆ V ( T ) V(G) \subseteq V(T) V ( G ) ⊆ V ( T ) . The vertices in V ( G ) V(G) V ( G ) are the terminals ; the other vertices of T T T are Steiner vertices . A shore S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) is represented in T T T by any vertex set X X X with X ∩ V ( G ) = S X \cap V(G) = S X ∩ V ( G ) = S , and its representation cost is the cheapest such representation,
R T ( S ) = min X ⊆ V ( T ) X ∩ V ( G ) = S c T ( X ) . R_T(S) = \min_{\substack{X\subseteq V(T)\\X\cap V(G)=S}} c_T(X). R T ( S ) = X ⊆ V ( T ) X ∩ V ( G ) = S min c T ( X ) .
We drop the subscript when the tree is clear from context. A tree whose representation costs approximate every cut of G G G is a tree cut sparsifier [1 Definition 2.4] .
Definition 5 (Tree cut sparsifier). Let G = ( V , w ) G = (V,w) G = ( V , w ) and α ≥ 1 \alpha\ge1 α ≥ 1 . A nonnegatively weighted tree T T T with V ⊆ V ( T ) V \subseteq V(T) V ⊆ V ( T ) is an α \alpha α -tree cut sparsifier of G G G if
c G ( S ) ≤ R T ( S ) ≤ α c G ( S ) for every S ⊆ V . (4) c_G(S) \le R_T(S) \le\alpha c_G(S) \qquad\text{for every } S \subseteq V. \tag*{(4)} c G ( S ) ≤ R T ( S ) ≤ α c G ( S ) for every S ⊆ V . (4)
Hierarchies and canonical capacities. The tree cut sparsifiers we work with have a special form introduced by Räcke [20 ] . A hierarchy of G G G is a rooted tree T T T with leaf set V ( G ) V(G) V ( G ) and no unary internal nodes, so that it has fewer than 2 n 2n 2 n nodes. Each nonroot node represents its descendant leaf cluster A A A . The hierarchy is canonical if the parent edge of each such node carries the capacity d A = c G ( A ) d_A = c_G(A) d A = c G ( A ) . Any tree cut sparsifier of G G G can be made canonical with O ( n ) O(n) O ( n ) queries without weakening either bound in (4) as described in § 4 .
In a hierarchy, representing S S S means labeling the leaves by 1 S 1_S 1 S and extending the binary labels to internal nodes; R T ( S ) R_T(S) R T ( S ) is the minimum total capacity of edges whose endpoint labels disagree. Figure 2 shows the cost of one labeling. Every original edge crossing S S S crosses at least one of the cluster boundaries in any labeling, so canonical capacities give
Figure 2. Representing S = { v 1 , v 2 , v 5 } S = \{v_1,v_2,v_5\} S = { v 1 , v 2 , v 5 } in a hierarchy. Leaf labels are fixed by S S S ; internal labels are chosen freely. Each edge leading to a cluster B B B has capacity d B = c G ( B ) d_B = c_G(B) d B = c G ( B ) . The dashed edges join unequal labels and contribute to the cost. The displayed labeling is one candidate in the minimization defining R ( S ) R(S) R ( S ) .
c G ( S ) ≤ R T ( S ) for every S ⊆ V ( G ) (5) c_G(S) \le R_T(S) \qquad\text{for every } S \subseteq V(G) \tag*{(5)} c G ( S ) ≤ R T ( S ) for every S ⊆ V ( G ) (5)
with no further assumption on the tree. The algorithm will repeatedly build explicit graphs J J J from learned data, for instance a learned subgraph of G G G , and need a canonical hierarchy of J J J whose representation costs approximate the cuts of J J J . Since J J J is explicit, this is an offline computation: it costs no queries, and we place no limit on its running time. In this setting an algorithm of Räcke and Shah [21 ] gives, for every nonnegative weighted graph J J J on r r r vertices, a canonical hierarchy with R ( S ) ≤ a ( r ) c J ( S ) R(S) \le a(r)c_J(S) R ( S ) ≤ a ( r ) c J ( S ) for all S S S , where a ( r ) = O ( log ( 2 r ) log log ( 2 r ) ) a(r) = O(\log(2r)\log\log(2r)) a ( r ) = O ( log ( 2 r ) log log ( 2 r )) (Lemma 28); since offline computation is unrestricted, their construction may use exact rather than approximate sparsest cuts, which is where these logarithms come from.
From a tree cut sparsifier to a weak skeleton
The conversion stage proves the following theorem.
Theorem 6 (From a tree cut sparsifier to a weak skeleton). Given cut-query access to a graph G G G on n n n vertices with λ ( G ) > 0 \lambda(G) > 0 λ ( G ) > 0 and an explicit B B B -tree cut sparsifier of G G G with O ( n ) O(n) O ( n ) vertices, there is a deterministic algorithm that constructs a weak skeleton of G G G using
O ( n B log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O\left(nB\log^3(2n)(\log\log(2n))^2\right) O ( n B log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) cut queries.
The full proof is in § 9 and § 10 ; this section explains the ideas. Throughout, G G G denotes the current quotient, with λ = λ ( G ) > 0 \lambda= \lambda(G) > 0 λ = λ ( G ) > 0 , and we are given a B B B -tree cut sparsifier of G G G with O ( n ) O(n) O ( n ) vertices. We first bring it into normal form: make every terminal a leaf, contract non-terminal leaves into their neighbours, root the tree at an internal node, and suppress unary nodes, so that it is a hierarchy; then query the cut value c G ( A ) c_G(A) c G ( A ) of each of its O ( n ) O(n) O ( n ) clusters and make it the canonical capacity d A d_A d A . None of these steps increases a representation cost: a labeling of the old tree restricts or extends to a labeling of the new tree of no greater cost, and the edge above a cluster A A A represents A A A by itself, so its old capacity is at least R ( A ) ≥ c G ( A ) R(A) \ge c_G(A) R ( A ) ≥ c G ( A ) . Let T T T be the resulting canonical hierarchy and write R ( S ) = R T ( S ) R(S) = R_T(S) R ( S ) = R T ( S ) .
Of the sparsifier guarantee (4) , we keep the lower bound c G ( S ) ≤ R ( S ) c_G(S) \le R(S) c G ( S ) ≤ R ( S ) for every shore, which (5) gives for free, and from the upper bound we retain only what it says about minimum cuts:
R ( S ∗ ) ≤ B λ for every minimum-cut shore S ∗ of G . (6) R(S^*) \le B\lambda\qquad\text{for every minimum-cut shore } S^* \text{ of } G. \tag*{(6)} R ( S ∗ ) ≤ B λ for every minimum-cut shore S ∗ of G . (6)
We call (6) the promise with bound B B B . Dropping the upper bound for all other cuts is deliberate: the refinement in § 4.2 produces intermediate trees that satisfy a promise with a smaller B B B but need not have all-cut distortion bounded by that smaller B B B . Neither the minimum cuts nor λ \lambda λ are known; all parameters below depend only on the public bound B B B . The analysis fixes one minimum-cut shore S ∗ S^* S ∗ ; since the construction never reads S ∗ S^* S ∗ , every conclusion drawn for it holds for each minimum cut simultaneously.
We first give a direct construction costing O ( n B 2 log n ) O(nB^2 \log n) O ( n B 2 log n ) queries. We then show that a coarser version of the same construction halves the promise bound with O ( n B log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O(nB \log^3(2n)(\log\log(2n))^2) O ( n B log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) queries, linear in the current bound B B B . Repeating it while the bound is at least a polylogarithmic threshold, and finishing with the direct construction below that threshold, costs a geometric series dominated by its first term, which gives Theorem 6 .
A direct construction
We want an explicit graph H H H with λ ( H ) ≥ λ \lambda(H) \ge\lambda λ ( H ) ≥ λ and c H ( S ∗ ) ≤ 5 4 λ c_H(S^*) \le\frac{5}{4}\lambda c H ( S ∗ ) ≤ 4 5 λ . We take H H H to be a weighted sum of two graphs, F F F and J p r o t J_{\mathrm{prot}} J prot , described next. The role of F F F is to approximate G G G : it is learned with cut queries, and its error on a cut S S S grows with the representation cost R ( S ) R(S) R ( S ) , so it is accurate at the minimum cuts, which satisfy the promise, but may undervalue cuts of large representation cost. The role of J p r o t J_{\mathrm{prot}} J prot is to compensate: it is built from the tree without queries, and its cut values track R ( S ) R(S) R ( S ) , so it restores every cut that F F F may undervalue while adding little at S ∗ S^* S ∗ .
Ingredient 1: a completion accurate on cheap cuts. Fix an accuracy parameter 0 < η < 1 0 < \eta< 1 0 < η < 1 . We learn a nonnegative graph F F F that agrees with G G G on every cluster cut and nearly agrees on every symmetric difference of two clusters:
c F ( A ) = c G ( A ) , ∣ c F ( A △ B ) − c G ( A △ B ) ∣ ≤ 2 η min ( d A , d B ) for all clusters A , B . (7) c_F(A) = c_G(A), \qquad\left|c_F(A \mathbin{\triangle} B) - c_G(A \mathbin{\triangle} B)\right| \le2\eta\min(d_A,d_B) \qquad\text{for all clusters } A,B. \tag*{(7)} c F ( A ) = c G ( A ) , ∣ c F ( A △ B ) − c G ( A △ B ) ∣ ≤ 2 η min ( d A , d B ) for all clusters A , B . (7)
Clusters are laminar, so A △ B A \mathbin{\triangle} B A △ B is the union of two disjoint clusters or the difference of two nested ones. Writing L G L_G L G for the Laplacian, so that c G ( S ) = 1 S T L G 1 S c_G(S) = \mathbf{1}_S^{\mathsf T}L_G\mathbf{1}_S c G ( S ) = 1 S T L G 1 S , and expanding c G ( A ∪ B ) c_G(A \cup B) c G ( A ∪ B ) or c G ( B ∖ A ) c_G(B \setminus A) c G ( B ∖ A ) as a quadratic form gives
1 A T L G 1 B = { 1 2 ( c G ( A ∪ B ) − c G ( A ) − c G ( B ) ) A ∩ B = ∅ , 1 2 ( c G ( A ) + c G ( B ) − c G ( B ∖ A ) ) A ⊆ B . \mathbf{1}_A^{\mathsf T}L_G\mathbf{1}_B =
\begin{cases}
\frac{1}{2}\left(c_G(A \cup B) - c_G(A) - c_G(B)\right) & A \cap B = \varnothing,\\
\frac{1}{2}\left(c_G(A) + c_G(B) - c_G(B \setminus A)\right) & A \subseteq B.
\end{cases} 1 A T L G 1 B = { 2 1 ( c G ( A ∪ B ) − c G ( A ) − c G ( B ) ) 2 1 ( c G ( A ) + c G ( B ) − c G ( B ∖ A ) ) A ∩ B = ∅ , A ⊆ B .
Since F F F matches every cluster cut, (7) says that these cluster interactions satisfy ∣ 1 A T ( L F − L G ) 1 B ∣ ≤ η min ( d A , d B ) \left|\mathbf{1}_A^{\mathsf T}(L_F-L_G)\mathbf{1}_B\right| \le\eta\min(d_A,d_B) 1 A T ( L F − L G ) 1 B ≤ η min ( d A , d B ) . For each cluster A A A , the cut value d A = c G ( A ) d_A = c_G(A) d A = c G ( A ) is the total weight of the edges leaving A. Charging each such edge to its endpoint inside A A A , or instead to its endpoint outside A A A , gives two additive measures on vertices of total mass d A d_A d A ,
μ A i n ( X ) = w G ( A ∩ X , V ∖ A ) , μ A o u t ( X ) = w G ( A , X ∖ A ) , \mu_A^{\mathrm{in}}(X)=w_G(A\cap X,V\setminus A),\qquad\mu_A^{\mathrm{out}}(X)=w_G(A,X\setminus A), μ A in ( X ) = w G ( A ∩ X , V ∖ A ) , μ A out ( X ) = w G ( A , X ∖ A ) ,
both queryable using the rectangle identity (2) . For fixed A A A the interaction with B B B is one of − μ A o u t ( B ) -\mu_A^{\mathrm{out}}(B) − μ A out ( B ) , μ A i n ( B ) \mu_A^{\mathrm{in}}(B) μ A in ( B ) , or d A − μ A o u t ( B ) d_A-\mu_A^{\mathrm{out}}(B) d A − μ A out ( B ) , according as B B B is disjoint from, inside, or contains A A A . It therefore suffices to learn each boundary measure of A A A to within η d A \eta d_A η d A on every cluster B B B .
In depth-first leaf order every cluster is an interval of leaves, so each such mass is a difference of two prefix masses, and it suffices to control the prefix function of each boundary measure. Fix a cluster A A A and one of its two boundary measures, and put q = ⌈ 2 / η ⌉ q=\lceil2/\eta\rceil q = ⌈ 2/ η ⌉ . Binary searches locate the q q q prefixes at which the measure crosses each multiple of d A / q d_A/q d A / q ; recording the prefixes on both sides of each crossing handles a single heavy edge. Any nonnegative measure agreeing with these checkpoint values has every prefix mass within d A / q d_A/q d A / q , hence every interval mass within 2 d A / q ≤ η d A 2d_A/q\leq\eta d_A 2 d A / q ≤ η d A . Each prefix mass costs two cut queries, so the two measures of a cluster cost O ( η − 1 log n ) O(\eta^{-1}\log n) O ( η − 1 log n ) queries and all O ( n ) O(n) O ( n ) clusters cost O ( n η − 1 log n ) O(n\eta^{-1}\log n) O ( n η − 1 log n ) , regardless of the hierarchy’s depth. Finally, F F F is any nonnegative weighted graph whose cluster cuts equal d A d_A d A and whose boundary measures take the recorded checkpoint values. These are linear equalities in the weights of F F F , and G G G itself satisfies them, so the system is feasible.
The error on a cut is controlled by its representation cost. Fix the minimum labeling of S S S and let A 1 , … , A m A_1,\ldots,A_m A 1 , … , A m be the clusters whose parent edge it cuts, so that R ( S ) = ∑ i d A i R(S)=\sum_i d_{A_i} R ( S ) = ∑ i d A i and, since each d A i ≥ λ d_{A_i}\geq\lambda d A i ≥ λ , m ≤ R ( S ) / λ m\leq R(S)/\lambda m ≤ R ( S ) / λ . Walking from the root to a leaf v v v , the label changes exactly at the cut edges above the clusters containing v v v , so up to a constant vector 1 S = ∑ i σ i 1 A i \mathbf{1}_S=\sum_i\sigma_i\mathbf{1}_{A_i} 1 S = ∑ i σ i 1 A i with σ i ∈ { − 1 , 1 } \sigma_i\in\{-1,1\} σ i ∈ { − 1 , 1 } . Laplacians annihilate constant vectors, so expanding c ( S ) = 1 S T L 1 S c(S)=\mathbf{1}_S^{\mathsf T}L\mathbf{1}_S c ( S ) = 1 S T L 1 S for F F F and G G G and applying (7) to each of the m 2 m^2 m 2 terms gives
∣ c F ( S ) − c G ( S ) ∣ = ∣ ∑ i , j σ i σ j 1 A i T ( L F − L G ) 1 A j ∣ ≤ ∑ i , j η d A i = η m R ( S ) ≤ η R ( S ) 2 / λ . (8) \left|c_F(S)-c_G(S)\right|=\left|\sum_{i,j}\sigma_i\sigma_j\mathbf{1}_{A_i}^{\mathsf T}(L_F-L_G)\mathbf{1}_{A_j}\right|\leq\sum_{i,j}\eta d_{A_i}=\eta mR(S)\leq\eta R(S)^2/\lambda. \tag*{(8)} ∣ c F ( S ) − c G ( S ) ∣ = i , j ∑ σ i σ j 1 A i T ( L F − L G ) 1 A j ≤ i , j ∑ η d A i = η m R ( S ) ≤ η R ( S ) 2 / λ . (8)
At a minimum cut the promise makes the error at most η B 2 λ \eta B^2\lambda η B 2 λ . The same bound identifies the difficulty: a cut with a costly representation might become artificially cheap in F F F . The next ingredient takes care of this.
Ingredient 2: a protection graph to lower bound costly cuts. The second ingredient makes sure that no cut of H H H dips below λ \lambda λ , the minimum cut value of G G G . By (8) , the cuts at risk are those with large representation cost R ( S ) R(S) R ( S ) , so we want to add a graph whose cut values track R ( S ) R(S) R ( S ) . Now R ( S ) R(S) R ( S ) is itself a cut function, the minimum cut of the tree T T T separating the leaves in S S S from the rest, but T T T cannot be added to F F F directly because its internal nodes are not vertices of G G G . We therefore construct, without queries, an explicit graph J p r o t J_{\mathrm{prot}} J prot on the leaves of T T T that mirrors the tree’s cuts:
R ( S ) ≤ c J p r o t ( S ) ≤ ρ R ( S ) for every S , (9) R(S)\leq c_{J_{\mathrm{prot}}}(S)\leq\rho R(S)\qquad\text{for every }S, \tag*{(9)} R ( S ) ≤ c J prot ( S ) ≤ ρR ( S ) for every S , (9)
for an absolute constant ρ \rho ρ . By Theorem 3.7 of Englert et al. [8 ] , the capacitated tree T T T admits a constant-quality vertex cut sparsifier on its leaves. Since T T T is explicit, we can choose such a sparsifier deterministically by finite linear feasibility, without further queries to G G G . Lemma 26 gives a self-contained proof with ρ = 42 \rho=42 ρ = 42 .
Ingredient 3: the combination. Set H = F + η J p r o t H=F+\sqrt{\eta}J_{\mathrm{prot}} H = F + η J prot . For every nontrivial cut S S S , write x = η R ( S ) / λ x=\sqrt{\eta}R(S)/\lambda x = η R ( S ) / λ . Nonnegativity of F F F together with (8) gives c F ( S ) ≥ max { 0 , 1 − x 2 } λ c_F(S)\geq\max\{0,1-x^2\}\lambda c F ( S ) ≥ max { 0 , 1 − x 2 } λ , and (9) gives η c J p r o t ( S ) ≥ x λ \sqrt{\eta}\,c_{J_{\mathrm{prot}}}(S) \ge x\lambda η c J prot ( S ) ≥ x λ . Hence
c H ( S ) λ ≥ max { 0 , 1 − x 2 } + x ≥ 1. (10) \frac{c_H(S)}{\lambda} \ge\max\{0,1-x^2\}+x \ge1. \tag*{(10)} λ c H ( S ) ≥ max { 0 , 1 − x 2 } + x ≥ 1. (10)
If x ≥ 1 x \ge1 x ≥ 1 the protection term alone pays; if x < 1 x<1 x < 1 then 1 − x 2 + x ≥ 1 1-x^2+x \ge1 1 − x 2 + x ≥ 1 . So λ ( H ) ≥ λ \lambda(H) \ge\lambda λ ( H ) ≥ λ . For the promised optimum, (8) and (9) give
c H ( S ∗ ) λ ≤ 1 + η B 2 + ρ η B . \frac{c_H(S^*)}{\lambda} \le1+\eta B^2+\rho\sqrt{\eta}\,B. λ c H ( S ∗ ) ≤ 1 + η B 2 + ρ η B .
Choosing η = 1 / ( 100 ρ 2 B 2 ) \eta=1/(100\rho^2B^2) η = 1/ ( 100 ρ 2 B 2 ) makes the right side at most 1 + 1 / ( 100 ρ 2 ) + 1 / 10 ≤ 5 / 4 1+1/(100\rho^2)+1/10 \le5/4 1 + 1/ ( 100 ρ 2 ) + 1/10 ≤ 5/4 . As S ∗ S^* S ∗ was an arbitrary minimum cut, together with λ ( H ) ≥ λ \lambda(H)\ge\lambda λ ( H ) ≥ λ this makes H H H a weak skeleton of G G G (Definition 3 ), using O ( n η − 1 log n ) = O ( n B 2 log n ) O(n\eta^{-1}\log n)=O(nB^2\log n) O ( n η − 1 log n ) = O ( n B 2 log n ) queries.
Refining the promise
With B = n B=\sqrt{n} B = n the direct construction would cost Ω ( n 2 log n ) \Omega(n^2\log n) Ω ( n 2 log n ) queries. It spends Θ ( B 2 ) \Theta(B^2) Θ ( B 2 ) checkpoints per cluster because it must approximate the optimum to additive O ( λ ) O(\lambda) O ( λ ) : the completion error at S ∗ S^* S ∗ is η B 2 λ \eta B^2\lambda η B 2 λ , which forces η ≈ 1 / B 2 \eta\approx1/B^2 η ≈ 1/ B 2 .
A refinement round takes a canonical hierarchy of G G G that satisfies the promise with bound B B B and outputs a new canonical hierarchy of G G G that satisfies the promise with bound B / 2 B/2 B /2 : every minimum cut, still unidentified, has representation cost at most B λ / 2 B\lambda/2 B λ /2 in the new tree. Since the output is a hierarchy and not a skeleton, a round asks less of the completion. The completion need only track G G G at S ∗ S^* S ∗ to within a small fraction of B λ B\lambda B λ rather than within λ \lambda λ , so we allow a larger error, η ≈ 1 / B \eta\approx1/B η ≈ 1/ B , compute an offline hierarchy of the resulting explicit graph, and query the original graph on the new cluster boundaries. The transfer inequality below shows that this halves the promise bound at a cost linear in B B B . Throughout, a = a ( n ) = O ( log ( 2 n ) log log ( 2 n ) ) a=a(n)=O(\log(2n)\log\log(2n)) a = a ( n ) = O ( log ( 2 n ) log log ( 2 n )) is the approximation factor of the offline canonical hierarchy of Räcke and Shah: every explicit nonnegative weighted graph on n n n vertices has a canonical hierarchy with R ( S ) ≤ a c ( S ) R(S)\le ac(S) R ( S ) ≤ a c ( S ) for every shore S S S (§ 3.1 ).
Claim (Halving step; informal version of Lemma 30 ). Given a canonical hierarchy of G G G with O ( n ) O(n) O ( n ) clusters satisfying the promise (6) with bound B ≥ 1 / γ B\ge1/\gamma B ≥ 1/ γ , one can compute a canonical hierarchy of G G G with O ( n ) O(n) O ( n ) clusters satisfying the promise with bound B / 2 B/2 B /2 , using O ( n a 2 B log n ) O(na^2B\log n) O ( n a 2 B log n ) cut queries, where γ = 1 / ( 100 a 2 ρ 2 ) \gamma=1/(100a^2\rho^2) γ = 1/ ( 100 a 2 ρ 2 ) .
To see this, build F F F and J p r o t J_{\mathrm{prot}} J prot as above with η = γ / B \eta=\gamma/B η = γ / B , but form H = F + γ J p r o t H=F+\gamma J_{\mathrm{prot}} H = F + γ J prot , with a heavier contribution from J p r o t J_{\mathrm{prot}} J prot than in the final skeleton. Compute an offline hierarchy of this explicit H H H with factor a a a ; with the H H H -capacities c H ( A ) c_H(A) c H ( A ) its representation cost R H R_H R H satisfies R H ( S ∗ ) ≤ a c H ( S ∗ ) R_H(S^*)\le ac_H(S^*) R H ( S ∗ ) ≤ a c H ( S ∗ ) . Then query the original capacities c G ( A ) c_G(A) c G ( A ) of its clusters to make it canonical for G G G . Since c H ( S ) ≥ γ R ( S ) c_H(S)\ge\gamma R(S) c H ( S ) ≥ γ R ( S ) for every S S S , the completion error (8) can be written in terms of H H H alone:
c G ( S ) ≤ c H ( S ) + η γ 2 λ c H ( S ) 2 . c_G(S)\le c_H(S)+\frac{\eta}{\gamma^2\lambda}c_H(S)^2. c G ( S ) ≤ c H ( S ) + γ 2 λ η c H ( S ) 2 .
Fix a labeling of S ∗ S^* S ∗ that is optimal for the H H H -capacities, let A 1 , … , A m A_1,\ldots,A_m A 1 , … , A m be the clusters it cuts, and put h i = c H ( A i ) h_i=c_H(A_i) h i = c H ( A i ) , so that ∑ i h i = R H ( S ∗ ) \sum_i h_i=R_H(S^*) ∑ i h i = R H ( S ∗ ) . Reusing the same labeling with the G G G -capacities, applying the displayed inequality to each A i A_i A i , and using ∑ i h i 2 ≤ ( ∑ i h i ) 2 \sum_i h_i^2\le(\sum_i h_i)^2 ∑ i h i 2 ≤ ( ∑ i h i ) 2 transfers it to the new representation cost:
R n e w ( S ∗ ) λ ≤ 1 λ ∑ i c G ( A i ) ≤ x + η γ 2 x 2 , x = R H ( S ∗ ) λ ≤ a ( 1 + η B 2 + γ ρ B ) . (11) \frac{R_{\mathrm{new}}(S^*)}{\lambda}
\le\frac{1}{\lambda}\sum_i c_G(A_i)
\le x+\frac{\eta}{\gamma^2}x^2,
\qquad
x=\frac{R_H(S^*)}{\lambda}\le a(1+\eta B^2+\gamma\rho B). \tag*{(11)} λ R new ( S ∗ ) ≤ λ 1 i ∑ c G ( A i ) ≤ x + γ 2 η x 2 , x = λ R H ( S ∗ ) ≤ a ( 1 + η B 2 + γ ρB ) . (11)
There is again no depth factor. With γ = 1 / ( 100 a 2 ρ 2 ) \gamma=1/(100a^2\rho^2) γ = 1/ ( 100 a 2 ρ 2 ) , η = γ / B \eta=\gamma/B η = γ / B , and B ≥ 1 / γ B\ge1/\gamma B ≥ 1/ γ , the right side of (11) is at most B / 2 B/2 B /2 . The cost is that of the completion, O ( n η − 1 log n ) = O ( n a 2 ρ 2 B log n ) O(n\eta^{-1}\log n)=O(na^2\rho^2B\log n) O ( n η − 1 log n ) = O ( n a 2 ρ 2 B log n ) . Intermediate graphs H H H serve only to produce better hierarchies; they need not be weak skeletons themselves.
Adding up the queries. Repeat the halving step while the promise bound is at least 1 / γ = O ( log 2 ( 2 n ) ( log log ( 2 n ) ) 2 ) 1/\gamma= O(\log^2(2n)(\log\log(2n))^2) 1/ γ = O ( log 2 ( 2 n ) ( log log ( 2 n ) ) 2 ) . The successive costs are geometric in B B B and sum to O ( n a 2 B log n ) O(na^2B\log n) O ( n a 2 B log n ) . Once the remaining bound is b < 1 / γ b < 1/\gamma b < 1/ γ , the direct construction costs O ( n b 2 log n ) ≤ O ( n B log n / γ ) = O ( n a 2 B log n ) O(nb^2\log n) \le O(nB\log n/\gamma) = O(na^2B\log n) O ( n b 2 log n ) ≤ O ( n B log n / γ ) = O ( n a 2 B log n ) as well, since b ≤ B b \le B b ≤ B . Altogether, converting a supplied hierarchy with bound B B B costs O ( n B log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O(nB\log^3(2n)(\log\log(2n))^2) O ( n B log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) queries. Every parameter above is computed from the public bound B B B and known quantities; the unknown S ∗ S^* S ∗ and λ \lambda λ enter only the analysis, so the final H H H is a weak skeleton of G G G . This completes the overview of Theorem 6 .
Learning a tree cut sparsifier
The learning stage proves the following theorem.
Theorem 7 (Learning a tree cut sparsifier). There is an absolute constant C C C such that, for every nonnegatively weighted graph G G G on n ≥ 2 n \ge2 n ≥ 2 vertices with λ ( G ) > 0 \lambda(G) > 0 λ ( G ) > 0 and every C log 2 ( 2 n ) ( log log ( 2 n ) ) 2 ≤ α ≤ n C\log^2(2n)(\log\log(2n))^2 \le\alpha\le\sqrt{n} C log 2 ( 2 n ) ( log log ( 2 n ) ) 2 ≤ α ≤ n , a deterministic algorithm uses
O ( n 2 α log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O\left(\frac{n^2}{\alpha}\log^3(2n)(\log\log(2n))^2\right) O ( α n 2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) cut queries to find a safe partition P \mathcal{P} P of V ( G ) V(G) V ( G ) and an explicit α \alpha α -tree cut sparsifier of the quotient G / P G/\mathcal{P} G / P with at most 8 n 8n 8 n vertices.
The full proof is in § 11.23 ; this section explains the ideas. The algorithm proceeds in phases, each of which either learns a tree cut sparsifier of the current quotient or safely contracts it to at most half as many vertices. We call this the sparsify-or-shrink principle. After describing the weighted degree normalization applied in every phase, we state the dichotomy as a lemma conditional on an auxiliary graph (§ 5.2 ), then show how to learn that auxiliary graph with cut queries (§ 5.3 ), and finally add up the queries.
Throughout, G G G denotes the current quotient, N N N its number of vertices, and λ = λ ( G ) > 0 \lambda= \lambda(G) > 0 λ = λ ( G ) > 0 . We maintain a known nontrivial cut of value Λ ≥ λ \Lambda\ge\lambda Λ ≥ λ .
Weighted degree normalization
Let d v d_v d v be the weighted degree of vertex v v v , i.e., the sum of the weights of the edges incident to v v v . All weighted degrees are learned once, with n n n cut queries at the start of the algorithm, and are then maintained without further queries, since every contraction we perform is of an edge whose weight we know. We also maintain Λ ≤ min v d v \Lambda\le\min_v d_v Λ ≤ min v d v : initially Λ \Lambda Λ is the minimum weighted degree, witnessed by a singleton cut, and Λ \Lambda Λ only ever decreases, to the weighted degree of a newly contracted vertex or to the value of a newly found nontrivial cut. At the start of each phase, and after every change to Λ \Lambda Λ , we normalize the current quotient so that its weighted degrees satisfy
λ ≤ Λ ≤ d v ≤ ( N − 1 ) Λ for every v . (12) \lambda\le\Lambda\le d_v \le(N-1)\Lambda\quad\text{for every } v. \tag*{(12)} λ ≤ Λ ≤ d v ≤ ( N − 1 ) Λ for every v . (12)
Whenever a vertex has d v > ( N − 1 ) Λ d_v > (N-1)\Lambda d v > ( N − 1 ) Λ , some edge incident to v v v has weight greater than Λ ≥ λ \Lambda\ge\lambda Λ ≥ λ . No minimum cut can cross such an edge, so contracting it is safe. We find such an edge with O ( log N ) O(\log N) O ( log N ) queries by binary search, repeatedly retaining the half of the candidate neighbors with larger average incident edge weight. If the heavy edge is { u , v } \{u,v\} { u , v } , contracting u , v u,v u , v gives new weighted degree d u + d v − 2 w G ( u , v ) d_u+d_v-2w_G(u,v) d u + d v − 2 w G ( u , v ) ; all other weighted degrees stay unchanged. Decrease N N N by one, lower Λ \Lambda Λ to the new vertex’s weighted degree if that is smaller, and repeat until (12) holds.
The invariant (12) is used in three ways. It makes the degree spread polynomial in N N N , so that later scan counts and bucket counts are O ( log N ) O(\log N) O ( log N ) regardless of the smallest positive edge weight. It forces the vertex count to halve whenever Λ \Lambda Λ drops by a factor 4 N 4N 4 N (§ 5.2 ). And it is cheap: weighted degrees are queried only once, every subsequent search costs O ( log n ) O(\log n) O ( log n ) queries and contracts a pair, and there are at most n − 2 n-2 n − 2 contractions, so all normalization calls together cost O ( n log n ) O(n\log n) O ( n log n ) queries. Every original minimum cut survives.
Sparsify or shrink
A phase with parameter 2 ≤ k < N 2 \le k < N 2 ≤ k < N seeks a tree cut sparsifier of quality
B = O ( k log 2 ( 2 N ) ( log log ( 2 N ) ) 2 ) . B = O\left(k\log^{2}(2N)(\log\log(2N))^{2}\right). B = O ( k log 2 ( 2 N ) ( log log ( 2 N ) ) 2 ) .
Suppose we have an explicit auxiliary graph J a u x J_{\mathrm{aux}} J aux on at most 2 N 2N 2 N vertices whose terminals are the vertices of G G G and which may have additional vertices. For a shore S ⊆ V ( G ) S \subseteq V(G) S ⊆ V ( G ) , define its minimum extension cost in J a u x J_{\mathrm{aux}} J aux by
Ψ ( S ) = min X ⊆ V ( J a u x ) X ∩ V ( G ) = S c J a u x ( X ) . \Psi(S) = \min_{\substack{X\subseteq V(J_{\mathrm{aux}})\\X\cap V(G)=S}} c_{J_{\mathrm{aux}}}(X). Ψ ( S ) = X ⊆ V ( J aux ) X ∩ V ( G ) = S min c J aux ( X ) .
The approximation guarantee we require has both a multiplicative and an additive error:
c G ( S ) ≤ Ψ ( S ) ≤ A c G ( S ) + ε , A = O ( k log ( 2 N ) log log ( 2 N ) ) , ε = Λ 8 N . (13) c_G(S) \le\Psi(S) \le A c_G(S) + \varepsilon,\qquad A=O(k\log(2N)\log\log(2N)),\qquad\varepsilon=\frac{\Lambda}{8N}. \tag*{(13)} c G ( S ) ≤ Ψ ( S ) ≤ A c G ( S ) + ε , A = O ( k log ( 2 N ) log log ( 2 N )) , ε = 8 N Λ . (13)
Claim (Dichotomy; informal version of Lemma 40). Given J a u x J_{\mathrm{aux}} J aux satisfying (13) , one phase either outputs a B B B -tree cut sparsifier of G G G with B = O ( k log 2 ( 2 N ) ( log log ( 2 N ) ) 2 ) B=O(k\log^{2}(2N)(\log\log(2N))^{2}) B = O ( k log 2 ( 2 N ) ( log log ( 2 N ) ) 2 ) using O ( N ) O(N) O ( N ) further queries, or safely contracts G G G to at most ⌊ N / 2 ⌋ \lfloor N/2\rfloor ⌊ N /2 ⌋ vertices.
Compute offline the minimum cut of J a u x J_{\mathrm{aux}} J aux that separates two vertices of G G G :
μ = min ∅ ≠ S ⊂ V ( G ) Ψ ( S ) , Ψ ( S a u x ) = μ . \mu=\min_{\varnothing\ne S\subset V(G)}\Psi(S),\qquad\Psi(S_{\mathrm{aux}})=\mu. μ = ∅ = S ⊂ V ( G ) min Ψ ( S ) , Ψ ( S aux ) = μ .
Requiring S S S to be nontrivial excludes cuts separating only added vertices. Since J a u x J_{\mathrm{aux}} J aux is explicit, computing μ \mu μ and S a u x S_{\mathrm{aux}} S aux requires no queries to G G G .
Case μ ≥ 2 ε \mu\ge2\varepsilon μ ≥ 2 ε : sparsify. Every nontrivial shore S S S satisfies 2 ε ≤ Ψ ( S ) ≤ A c G ( S ) + ε 2\varepsilon\le\Psi(S) \le A c_G(S)+\varepsilon 2 ε ≤ Ψ ( S ) ≤ A c G ( S ) + ε . Thus ε ≤ A c G ( S ) \varepsilon\le A c_G(S) ε ≤ A c G ( S ) , and the additive error is absorbed: Ψ ( S ) ≤ 2 A c G ( S ) \Psi(S)\le2A c_G(S) Ψ ( S ) ≤ 2 A c G ( S ) . Apply the offline construction of Räcke and Shah to the explicit graph J a u x J_{\mathrm{aux}} J aux , obtaining a hierarchy of all its vertices with distortion a = O ( log ( 2 N ) log log ( 2 N ) ) a=O(\log(2N)\log\log(2N)) a = O ( log ( 2 N ) log log ( 2 N )) . Leave the labels of the added vertices free and compress the tree to the terminal set V ( G ) V(G) V ( G ) by contracting non-terminal leaves into their neighbours and, on each terminal-free path of degree-two vertices, all but a minimum-capacity edge; this preserves every minimum extension of the terminal labels. Minimizing the hierarchy inequalities over the free labels then gives a tree T ′ T' T ′ with O ( N ) O(N) O ( N ) clusters and Ψ ( S ) ≤ R T ′ ( S ) ≤ a Ψ ( S ) \Psi(S)\le R_{T'}(S)\le a\Psi(S) Ψ ( S ) ≤ R T ′ ( S ) ≤ a Ψ ( S ) for every S ⊆ V ( G ) S\subseteq V(G) S ⊆ V ( G ) . Finally use O ( N ) O(N) O ( N ) cut queries to replace each cluster capacity by its G G G -cut value. This lowers capacities while keeping every G G G -cut dominated, so the resulting tree, with representation cost R G R_G R G under these canonical G G G -capacities, satisfies
c G ( S ) ≤ R G ( S ) ≤ B c G ( S ) ( S ⊆ V ( G ) ) , B = 2 a A = O ( k log 2 ( 2 N ) ( log log ( 2 N ) ) 2 ) . (14) c_G(S)\le R_G(S)\le Bc_G(S)\quad(S\subseteq V(G)),\qquad B=2aA=O\left(k\log^{2}(2N)(\log\log(2N))^{2}\right). \tag*{(14)} c G ( S ) ≤ R G ( S ) ≤ B c G ( S ) ( S ⊆ V ( G )) , B = 2 a A = O ( k log 2 ( 2 N ) ( log log ( 2 N ) ) 2 ) . (14)
This is the desired tree cut sparsifier.
Case μ < 2 ε \mu<2\varepsilon μ < 2 ε : shrink. Query S a u x S_{\mathrm{aux}} S aux to obtain a smaller cut value Λ ′ = c G ( S a u x ) ≤ μ < Λ / ( 4 N ) \Lambda'=c_G(S_{\mathrm{aux}})\le\mu<\Lambda/(4N) Λ ′ = c G ( S aux ) ≤ μ < Λ/ ( 4 N ) , and normalize the vertex degrees again to satisfy (12) with this bound. Suppose an old vertex remained a singleton in the resulting quotient on m ≤ N m \le N m ≤ N vertices. Its weighted degree would be unchanged and at least the old Λ \Lambda Λ , whereas normalization gives d v ≤ ( m − 1 ) Λ ′ < Λ d_v \le(m-1)\Lambda' < \Lambda d v ≤ ( m − 1 ) Λ ′ < Λ , even if the bound decreased further. Every final supervertex therefore contains at least two old vertices, so m ≤ ⌊ N / 2 ⌋ m \le\lfloor N/2 \rfloor m ≤ ⌊ N /2 ⌋ . Each failed phase halves the vertex count, independently of the weight spread. Thus within O ( log n ) O(\log n) O ( log n ) phases we either obtain the desired tree cut sparsifier or reach N ≤ k N \le k N ≤ k , when we reconstruct the quotient with O ( N 2 ) O(N^2) O ( N 2 ) queries and compute its tree cut sparsifier offline.
Learning the auxiliary graph
It remains to construct J a u x J_{\mathrm{aux}} J aux satisfying (13) with few queries.
Claim (Auxiliary graph; informal version of Lemma 39). An explicit graph J a u x J_{\mathrm{aux}} J aux satisfying (13) can be learned with O ( N k log 2 ( 2 N ) + ( N 2 / k ) log ( 2 N ) ) O(Nk\log^2(2N) + (N^2/k)\log(2N)) O ( N k log 2 ( 2 N ) + ( N 2 / k ) log ( 2 N )) cut queries.
The weighted rounding obstacle. Learning G G G exactly costs Θ ( N 2 ) \Theta(N^2) Θ ( N 2 ) queries, but the quotient of G G G on a partition of V ( G ) V(G) V ( G ) into p = O ( ( N / k ) log N ) p = O((N/k)\log N) p = O (( N / k ) log N ) parts costs only O ( p 2 ) O(p^2) O ( p 2 ) , and it gives the exact value of every cut whose shore is a union of parts. To estimate c G ( S ) c_G(S) c G ( S ) for an arbitrary shore S S S from the quotient we round S S S : replace it by a union S ^ \widehat{S} S of parts. The two shores disagree on the vertices of S △ S ^ S \mathbin{\triangle} \widehat{S} S △ S : those of S ∖ S ^ S \setminus\widehat{S} S ∖ S leave the shore and those of S ^ ∖ S \widehat{S} \setminus S S ∖ S join it. An edge changes between cut and uncut only if exactly one of its endpoints is in S △ S ^ S \mathbin{\triangle} \widehat{S} S △ S , so the error of the estimate c G ( S ^ ) c_G(\widehat{S}) c G ( S ) is at most the total weighted degree of these vertices, their volume vol ( S △ S ^ ) = ∑ v ∈ S △ S ^ d v \operatorname{vol}(S \mathbin{\triangle} \widehat{S}) = \sum_{v \in S \mathbin{\triangle} \widehat{S}} d_v vol ( S △ S ) = ∑ v ∈ S △ S d v . We therefore want a partition, fixed before any cut is seen, such that every S S S can be rounded with vol ( S △ S ^ ) \operatorname{vol}(S \mathbin{\triangle} \widehat{S}) vol ( S △ S ) at most a bounded multiple of c G ( S ) c_G(S) c G ( S ) ; this multiple becomes the multiplicative error A A A . The rounding is then built into the explicit graph: J a u x J_{\mathrm{aux}} J aux has one added vertex per part, labeling the added vertices chooses S ^ \widehat{S} S , and minimizing over their labels rounds S S S automatically (Step 4 below). The question is what a label change should cost. Charging it to the full weighted degree of a vertex of S △ S ^ S \mathbin{\triangle} \widehat{S} S △ S is prohibitively expensive: if both endpoints of a learned edge of weight M M M lie in S △ S ^ S \mathbin{\triangle} \widehat{S} S △ S , they contribute 2 M 2M 2 M to vol ( S △ S ^ ) \operatorname{vol}(S \mathbin{\triangle} \widehat{S}) vol ( S △ S ) although the edge is cut by S ^ \widehat{S} S exactly when it is cut by S S S , and M M M may be far larger than c G ( S ) c_G(S) c G ( S ) . We therefore learn a subgraph K K K of heavy edges exactly, keep it on the original vertices, and charge label changes only to degrees in the residual graph R = G − K R = G - K R = G − K , writing r v r_v r v for the weighted degree of v v v in R R R and vol R ( X ) = ∑ v ∈ X r v \operatorname{vol}_R(X) = \sum_{v \in X} r_v vol R ( X ) = ∑ v ∈ X r v . The target is that every shore S S S admits a union S ^ \widehat{S} S of parts with
vol R ( S △ S ^ ) ≤ k ( 1 + a ) c G ( S ) + N t , (15) \operatorname{vol}_R(S \mathbin{\triangle} \widehat{S}) \le k(1+a)c_G(S) + Nt, \tag*{(15)} vol R ( S △ S ) ≤ k ( 1 + a ) c G ( S ) + N t , (15)
where a = O ( log ( 2 N ) log log ( 2 N ) ) a = O(\log(2N)\log\log(2N)) a = O ( log ( 2 N ) log log ( 2 N )) is the offline hierarchy factor and t t t is a residual degree floor : vertices of residual degree at most t t t are simply charged their degree, which contributes at most N t Nt N t in total. Choosing t = Λ / ( 16 N 2 ) t = \Lambda/(16N^2) t = Λ/ ( 16 N 2 ) makes 2 N t 2Nt 2 N t equal to the additive slack ε = Λ / ( 8 N ) \varepsilon= \Lambda/(8N) ε = Λ/ ( 8 N ) allowed in (13) . The four steps below first shape the residual so that such a partition exists, then build it, then assemble J a u x J_{\mathrm{aux}} J aux .
Step 1: learn heavy edges so the residual is spread. We learn an exact subgraph K K K so that, in the residual graph R = G − K R = G - K R = G − K , every vertex either has residual weighted degree r v ≤ t r_v \le t r v ≤ t or has every incident residual edge of weight at most r v / k r_v/k r v / k . Thus a vertex with substantial residual degree has its remaining weight spread across at least k k k neighbors. Whenever r v > t r_v > t r v > t , find the edges heavier than a 1 / ( 2 k ) 1/(2k) 1/ ( 2 k ) fraction of its current residual degree and move them into K K K . Rescan only after that degree halves. Normalization bounds the ratio between the initial degree and t t t by O ( N 3 ) O(N^3) O ( N 3 ) , so there are O ( log N ) O(\log N) O ( log N ) scans per vertex, regardless of the smallest positive edge weight. The cost is O ( N k log 2 ( 2 N ) ) O(Nk\log^{2}(2N)) O ( N k log 2 ( 2 N )) , and afterwards the row of every vertex v v v , the list of residual weights w R ( v , u ) w_R(v,u) w R ( v , u ) over all u u u , satisfies
r v ≤ t or w R ( v , u ) ≤ r v / k for every u . r_v \le t \quad\text{or} \quad w_R(v,u) \le r_v/k \text{ for every } u. r v ≤ t or w R ( v , u ) ≤ r v / k for every u .
Queries to R R R are simulated by subtracting the known contribution of K K K from queries to G G G .
Step 2: learn the rows of a small center set. Next build a center set C C C of size O ( ( N / k ) log N ) O((N/k)\log N) O (( N / k ) log N ) with the following property: every noncenter with residual degree above t t t sends at least r v / k r_v/k r v / k of its residual weight to C C C . The row of each center is learned as it is chosen, at O ( N ) O(N) O ( N ) queries per row. This is possible because of Step 1: no single neighbor of such a vertex carries more than a 1 / k 1/k 1/ k fraction of its residual weight, so a center set covering a 1 / k 1/k 1/ k fraction of every such row exists, and a greedy argument finds one of the stated size. It can be found deterministically with O ( ( N 2 / k ) log ( 2 N ) ) O((N^2/k)\log(2N)) O (( N 2 / k ) log ( 2 N )) queries. Each vertex v v v not yet covered carries a weight p v = ∏ c ∈ C ( 1 − k w R ( v , c ) / ( 2 r v ) ) p_v = \prod_{c\in C}(1-kw_R(v,c)/(2r_v)) p v = ∏ c ∈ C ( 1 − k w R ( v , c ) / ( 2 r v )) , which stays above 1 / 2 1/2 1/2 while v v v is uncovered, and a candidate center u u u scores
σ ( u ) = k 2 ∑ v u n c o v e r e d p v r v w R ( v , u ) . \sigma(u) = \frac{k}{2}\sum_{v\ \mathrm{uncovered}}\frac{p_v}{r_v}w_R(v,u). σ ( u ) = 2 k v uncovered ∑ r v p v w R ( v , u ) .
The scores sum to at least ( k / 4 ) ∑ v p v (k/4)\sum_v p_v ( k /4 ) ∑ v p v , so some center decreases the potential ∑ v p v \sum_v p_v ∑ v p v by an Ω ( k / N ) \Omega(k/N) Ω ( k / N ) fraction. To find one with cut queries, round the coefficients p v / r v p_v/r_v p v / r v down to powers of two. The degree floor bounds their ratio by a polynomial in N N N , so there are O ( log N ) O(\log N) O ( log N ) buckets A j A_j A j with common coefficient θ j \theta_j θ j , and the total score of a candidate group W W W is, up to a factor 2, ∑ j θ j ∑ v ∈ A j ∑ u ∈ W w R ( v , u ) \sum_j\theta_j\sum_{v\in A_j}\sum_{u\in W}w_R(v,u) ∑ j θ j ∑ v ∈ A j ∑ u ∈ W w R ( v , u ) . Each inner double sum costs O ( 1 ) O(1) O ( 1 ) cut queries, even when A j A_j A j and W W W overlap (Lemma 38 ), and binary search over candidate groups finds a good center. Thus center selection uses only cut queries, without knowing the remaining individual edge weights. This step is a deterministic weighted analogue of the choice of centers in star contraction [AEG+22].
Step 3: a rounding partition that moves little residual volume. Let H C R H_C^R H C R contain the residual edges incident to C C C , all now known. Using the offline construction of Räcke and Shah, build an a a a -tree cut sparsifier of the explicit graph K + H C R K+H_C^R K + H C R , where a = O ( log ( 2 N ) log log ( 2 N ) ) a=O(\log(2N)\log\log(2N)) a = O ( log ( 2 N ) log log ( 2 N )) . A tree can be compressed around a terminal set while preserving every minimum extension of its labels: prune branches without terminals, and on each terminal-free degree-two path retain only a minimum-capacity edge. Apply this with the centers as terminals, adding one arbitrary vertex so that the terminal set is nonempty. The compression sends every vertex of G G G to a node of the compressed tree, and the vertices sent to the same node form a part. This is the rounding partition: it is fixed before any cut is seen, and it has one part per node of the compressed tree, hence O ( 1 + ( N / k ) log N ) O(1+(N/k)\log N) O ( 1 + ( N / k ) log N ) parts.
Every cut S S S can be rounded to a union S ^ \widehat{S} S of these parts without changing its center labels, with c K + H C R ( S ^ ) ≤ a c K + H C R ( S ) c_{K+H_C^R}(\widehat{S})\leq ac_{K+H_C^R}(S) c K + H C R ( S ) ≤ a c K + H C R ( S ) . For the changed set X = S △ S ^ X=S\mathbin{\triangle}\widehat{S} X = S △ S , center coverage gives the target bound (15) . Indeed, a changed vertex with residual degree above t t t charges its residual degree to its edges to centers, which carry at least a 1 / k 1/k 1/ k fraction of it. Since no center changes labels, these edges cross S S S or S ^ \widehat{S} S . The remaining changed vertices contribute at most N t Nt N t .
Step 4: assemble the auxiliary graph. As announced, K K K stays on the original vertices and only the residual is rounded. Learn the quotient of the whole graph G G G on the partition of Step 3 with O ( p 2 ) O(p^2) O ( p 2 ) queries, p p p the number of parts, and place it on one new vertex per part. Join each original vertex to its part vertex with capacity r v r_v r v . Keep K K K on the original vertices. For fixed original labels S S S , the minimum extension cost in this explicit auxiliary graph J a u x J_{\mathrm{aux}} J aux is
Ψ ( S ) = c K ( S ) + min S ^ a union of parts ( c G ( S ^ ) + vol R ( S △ S ^ ) ) . (16) \Psi(S) = c_K(S) + \min_{\widehat{S}\text{ a union of parts}} \left(c_G(\widehat{S}) + \operatorname{vol}_R(S \mathbin{\triangle} \widehat{S})\right). \tag*{(16)} Ψ ( S ) = c K ( S ) + S a union of parts min ( c G ( S ) + vol R ( S △ S ) ) . (16)
Figure 3 separates the three contributions.
Figure 3. The auxiliary graph for parts P 1 = { v 1 , v 2 } P_1 = \{v_1,v_2\} P 1 = { v 1 , v 2 } , P 2 = { v 3 , v 4 } P_2 = \{v_3,v_4\} P 2 = { v 3 , v 4 } , and P 3 = { v 5 , v 6 } P_3 = \{v_5,v_6\} P 3 = { v 5 , v 6 } , with quotient vertices p 1 , p 2 , p 3 p_1,p_2,p_3 p 1 , p 2 , p 3 . Each connector has capacity r v r_v r v ; dashed connectors join unequal labels. The displayed cut has total cost c K ( S ) + c G ( S ^ ) + r v 3 + r v 5 c_K(S) + c_G(\widehat{S}) + r_{v_3} + r_{v_5} c K ( S ) + c G ( S ) + r v 3 + r v 5 . Minimizing over part labels gives Ψ ( S ) \Psi(S) Ψ ( S ) . Thus only residual weighted degrees pay for label changes, while K K K stays on the original vertices.
We verify (13) . For the lower bound, fix any union of parts S ^ \widehat{S} S . The explicit c K ( S ) c_K(S) c K ( S ) term accounts for all learned edges, and changing the labels of S △ S ^ S \mathbin{\triangle} \widehat{S} S △ S changes an R R R -cut by at most the residual volume moved, so c R ( S ) ≤ c R ( S ^ ) + vol R ( S △ S ^ ) ≤ c G ( S ^ ) + vol R ( S △ S ^ ) c_R(S) \le c_R(\widehat{S}) + \operatorname{vol}_R(S \mathbin{\triangle} \widehat{S}) \le c_G(\widehat{S}) + \operatorname{vol}_R(S \mathbin{\triangle} \widehat{S}) c R ( S ) ≤ c R ( S ) + vol R ( S △ S ) ≤ c G ( S ) + vol R ( S △ S ) . Adding c K ( S ) c_K(S) c K ( S ) gives c G ( S ) ≤ Ψ ( S ) c_G(S) \le\Psi(S) c G ( S ) ≤ Ψ ( S ) . For the upper bound, take S ^ \widehat{S} S to be the rounded cut of Step 3 and write X = S △ S ^ X = S \mathbin{\triangle} \widehat{S} X = S △ S , so that Ψ ( S ) ≤ c K ( S ) + c G ( S ^ ) + vol R ( X ) \Psi(S) \le c_K(S) + c_G(\widehat{S}) + \operatorname{vol}_R(X) Ψ ( S ) ≤ c K ( S ) + c G ( S ) + vol R ( X ) , and bound the middle term by the rounding guarantee of Step 3 and the same volume argument:
c G ( S ^ ) = c K ( S ^ ) + c R ( S ^ ) ≤ a c G ( S ) + c R ( S ) + vol R ( X ) . c_G(\widehat{S}) = c_K(\widehat{S}) + c_R(\widehat{S}) \le a c_G(S) + c_R(S) + \operatorname{vol}_R(X). c G ( S ) = c K ( S ) + c R ( S ) ≤ a c G ( S ) + c R ( S ) + vol R ( X ) .
Hence Ψ ( S ) ≤ ( 1 + a ) c G ( S ) + 2 vol R ( X ) \Psi(S) \le(1+a)c_G(S)+2\operatorname{vol}_R(X) Ψ ( S ) ≤ ( 1 + a ) c G ( S ) + 2 vol R ( X ) , and (15) gives A = ( 1 + a ) ( 2 k + 1 ) = O ( k log ( 2 N ) log log ( 2 N ) ) A = (1+a)(2k+1) = O(k\log(2N)\log\log(2N)) A = ( 1 + a ) ( 2 k + 1 ) = O ( k log ( 2 N ) log log ( 2 N )) and ε = 2 N t \varepsilon= 2Nt ε = 2 N t . Unlike the contraction classes of normalization, which replace the input by a smaller quotient and must preserve every minimum cut, the rounding partition need not be safe: it is used only to construct J a u x J_{\mathrm{aux}} J aux , and Ψ \Psi Ψ optimizes over its labels separately for each cut.
The query bound
Write L = ⌈ log 2 ( 2 N ) ⌉ L = \lceil\log_2(2N)\rceil L = ⌈ log 2 ( 2 N )⌉ and K = ⌈ log 2 ( 2 L ) ⌉ K = \lceil\log_2(2L)\rceil K = ⌈ log 2 ( 2 L )⌉ , and choose an absolute constant D D D such that a successful phase has quality at most D k L 2 K 2 DkL^2K^2 D k L 2 K 2 . Set k = ⌊ α / ( D L 2 K 2 ) ⌋ k = \lfloor\alpha/(DL^2K^2)\rfloor k = ⌊ α / ( D L 2 K 2 )⌋ ; the lower bound on α \alpha α ensures k ≥ 2 k \ge2 k ≥ 2 . If k ≥ N k \ge N k ≥ N , reconstruct the current quotient and compute its offline hierarchy, whose quality is at most α \alpha α . Otherwise the phase of § 5.2 either succeeds with quality at most α \alpha α or halves N N N .
The rounding partition has p ≤ N p \le N p ≤ N parts and p = O ( ( N / k ) L ) p = O((N/k)L) p = O (( N / k ) L ) , so quotient reconstruction costs O ( p 2 ) = O ( N 2 L / k ) O(p^2) = O(N^2L/k) O ( p 2 ) = O ( N 2 L / k ) queries. Including the residual preparation, center rows, and the test, a phase uses
O ( N k L 2 + N 2 L k ) = O ( N α + N 2 L 3 K 2 α ) . O\left(NkL^2 + \frac{N^2L}{k}\right) = O\left(N\alpha+ \frac{N^2L^3K^2}{\alpha}\right). O ( N k L 2 + k N 2 L ) = O ( N α + α N 2 L 3 K 2 ) .
queries. A final direct reconstruction costs at most O ( N α ) O(N\alpha) O ( N α ) . The phase sizes decrease geometrically, and all normalization calls together use O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) queries. Summing gives O ( n α + ( n 2 / α ) log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O(n\alpha+ (n^2/\alpha)\log^3(2n)(\log\log(2n))^2) O ( n α + ( n 2 / α ) log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) , which is O ( ( n 2 / α ) log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O((n^2/\alpha)\log^3(2n)(\log\log(2n))^2) O (( n 2 / α ) log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) because α 2 ≤ n \alpha^2 \le n α 2 ≤ n . The contracted classes form a safe partition, proving the claimed guarantees of Theorem 7 . Combined with Theorem 6 , this completes the overview of Theorem 4 ; the lift of the quotient skeleton back to V ( G ) V(G) V ( G ) and the final two-respecting search are in § 11.24 .
Preliminaries and query primitives
An algorithm receives the vertex set and the exact cut oracle, and only oracle calls are charged. Computation on known quantities is free, including exhaustive search and linear programming on explicit graphs, and arithmetic is exact. Weights are arbitrary nonnegative reals, with no assumption on their magnitudes or ratios; parallel edges are aggregated and loops ignored, and in the unweighted case the input is a simple graph. A certificate may be chosen with full knowledge of G G G but must be sound for every nonnegative graph agreeing with the queried values, and its size is its number of queries. All algorithms are deterministic, with fixed tie-breaking, and always correct.
We write d v = c G ( { v } ) d_v=c_G(\{v\}) d v = c G ({ v }) for the weighted degree of v v v , the sum of its incident edge weights, and vol G ( X ) = ∑ v ∈ X d v \operatorname{vol}_G(X)=\sum_{v\in X}d_v vol G ( X ) = ∑ v ∈ X d v . For disjoint sets A A A , B B B ,
2 w G ( A , B ) = c G ( A ) + c G ( B ) − c G ( A ∪ B ) . (17) 2w_G(A,B)=c_G(A)+c_G(B)-c_G(A\cup B). \tag*{(17)} 2 w G ( A , B ) = c G ( A ) + c G ( B ) − c G ( A ∪ B ) . (17)
Thus an individual edge weight or a partial-star total costs at most three cut queries. Once the weighted degrees are known, a row mass costs at most two further queries:
2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v } ) ( v ∉ X ) . (18) 2w_G(v,X)=d_v+c_G(X)-c_G(X\cup\{v\}) \qquad(v\notin X). \tag*{(18)} 2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v }) ( v ∈ / X ) . (18)
For general X X X , remove v v v before applying this formula. The values of empty and full cuts are known to be zero.
Two other elementary inequalities will be used repeatedly:
c G ( S △ T ) ≤ c G ( S ) + c G ( T ) , ∣ c G ( S ) − c G ( T ) ∣ ≤ vol G ( S △ T ) . (19) c_G(S\mathbin{\triangle}T)\le c_G(S)+c_G(T),\qquad\lvert c_G(S)-c_G(T)\rvert\le\operatorname{vol}_G(S\mathbin{\triangle}T). \tag*{(19)} c G ( S △ T ) ≤ c G ( S ) + c G ( T ) , ∣ c G ( S ) − c G ( T )∣ ≤ vol G ( S △ T ) . (19)
Both follow by checking each nonnegative edge contribution. If an explicit subgraph K K K with original edge weights has been learned, cut queries to G − K G-K G − K are simulated by subtracting c K ( S ) c_K(S) c K ( S ) from c G ( S ) c_G(S) c G ( S ) . A query to a contracted graph is one original query on a union of its classes.
Lemma 8 (Relative-heavy row search). Suppose a residual row has known total mass M > 0 M>0 M > 0 and queryable nonnegative group masses. For b ≥ 1 b\ge1 b ≥ 1 , all its entries exceeding M / b M/b M / b can be found, with exact values, using O ( b log ( 2 n ) ) O(b\log(2n)) O ( b log ( 2 n )) cut queries.
Proof. Arrange the possible neighbors in a balanced binary tree. Explore the children of a group only when its mass exceeds M / b M/b M / b . At each depth fewer than b b b disjoint groups pass this test. Their children cost O ( b ) O(b) O ( b ) row-mass queries, each implemented by (18). Every entry above the threshold is reached at a leaf, and there are O ( log ( 2 n ) ) O(\log(2n)) O ( log ( 2 n )) depths. A row of mass zero needs no search.
Lemma 9 (Positive-support forest). A maximal spanning forest of the positive support can be learned deterministically in O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) cut queries.
Proof. Maintain the components of a partial forest. Query the cut of a component A A A . If it is positive, find a positive edge from A A A to its complement by two balanced searches using (17): first locate its
endpoint in A A A , then its endpoint outside A A A . Learn the weight and merge the two components. A component with zero cut is finished and remains finished. Initially there are n n n components, each merge creates one new component, and each component is tested at most once before being merged or finished. There are O ( n ) O(n) O ( n ) tests and at most n − 1 n-1 n − 1 edge searches.
In particular, disconnected positive support yields a zero optimum within this query bound. All skeleton constructions below use λ = λ ( G ) > 0 \lambda= \lambda(G) > 0 λ = λ ( G ) > 0 . The graph Laplacian is denoted by L G L_G L G , so that
c G ( S ) = 1 S T L G 1 S . c_G(S) = 1_S^{T}L_G1_S. c G ( S ) = 1 S T L G 1 S .
Near-linear certificates
A queried optimum shore supplies the upper bound. We build the matching lower bound from feasible divergences: first for one terminal problem, then for all isolating cuts of a terminal set, and finally for every nontrivial cut by halving that set. Every query in this section may depend on the entire input graph.
Certifying flows and isolating cuts
Label the vertices 0 , … , n − 1 0,\ldots,n-1 0 , … , n − 1 , orient each pair from its smaller to its larger endpoint, and let D D D be the incidence matrix, with the convention that D f Df D f is net outflow. We also write a signed flow antisymmetrically as f u v = − f v u f_{uv}=-f_{vu} f uv = − f v u , with f u v > 0 f_{uv}>0 f uv > 0 meaning flow from u u u to v v v . Feasibility means ∣ f u v ∣ ≤ w u v \lvert f_{uv}\rvert\leq w_{uv} ∣ f uv ∣ ≤ w uv .
Proof of Lemma 2 . Fixed costs and a minimum-cost flow. For u < v u<v u < v give the pair u v uv uv the auxiliary cost a u v = 2 u n + v a_{uv}=2^{un+v} a uv = 2 u n + v , and put a v u = − a u v a_{vu}=-a_{uv} a v u = − a uv . These costs are fixed before G G G and b b b . Every nonempty signed sum of distinct pair costs is nonzero: its largest power of two exceeds the sum of all smaller powers. In particular, the signed cost around any simple undirected cycle is nonzero.
Choose a flow f f f minimizing
∑ u < v a u v f u v subject to D f = b , − w ≤ f ≤ w . \sum_{u<v} a_{uv}f_{uv}\qquad\text{subject to}\qquad Df=b,\quad-w\leq f\leq w. u < v ∑ a uv f uv subject to D f = b , − w ≤ f ≤ w .
A minimizer exists because the feasible polytope is nonempty and compact. A residual arc u → v u\to v u → v is available whenever f u v < w u v f_{uv}<w_{uv} f uv < w uv and has cost a u v a_{uv} a uv . There is no negative-cost residual cycle, since sending a sufficiently small circulation around one would decrease the objective while preserving feasibility and divergence.
Attach a new source with zero-cost arcs to all vertices and let ℓ v \ell_v ℓ v be the shortest-path distance to v v v in this residual graph. These distances exist: removing nonnegative-cost closed subwalks leaves a simple path, and there are only finitely many simple paths. Set p v = − ℓ v p_v=-\ell_v p v = − ℓ v and define the reduced costs
ρ p ( u , v ) = a u v − p u + p v . \rho_p(u,v)=a_{uv}-p_u+p_v. ρ p ( u , v ) = a uv − p u + p v .
Every residual arc has nonnegative reduced cost. Applying this to both orientations gives the standard complementary-slackness conditions (see Bertsekas [7 Section 1.2] ):
ρ p ( u , v ) < 0 ⟹ f u v = w u v , ρ p ( u , v ) > 0 ⟹ f u v = − w u v . (20) \rho_p(u,v)<0\ \Longrightarrow\ f_{uv}=w_{uv},\qquad
\rho_p(u,v)>0\ \Longrightarrow\ f_{uv}=-w_{uv}. \tag*{(20)} ρ p ( u , v ) < 0 ⟹ f uv = w uv , ρ p ( u , v ) > 0 ⟹ f uv = − w uv . (20)
A tree determines the saturation directions. Consider the graph of all pairs with zero reduced cost, including pairs of capacity zero. It is a forest: a cycle of zero reduced-cost pairs would have zero signed cost, since the potentials telescope. If this forest is disconnected, let A A A be one of its components. Among the ordered pairs u ∈ A u \in A u ∈ A , v ∉ A v \notin A v ∈ / A , choose one minimizing ∣ ρ p ( u , v ) ∣ |\rho_p(u,v)| ∣ ρ p ( u , v ) ∣ , and put τ = ρ p ( u , v ) ≠ 0 \tau=\rho_p(u,v)\ne0 τ = ρ p ( u , v ) = 0 . Add τ \tau τ to every potential in A A A . Reduced costs within A A A or its complement are unchanged; a reduced cost directed out of A A A decreases by τ \tau τ . By the choice of ∣ τ ∣ |\tau| ∣ τ ∣ , no nonzero reduced cost changes to the opposite sign, and the chosen pair becomes zero. All old zero pairs remain zero, so the zero forest strictly grows. Equation (20) still holds for the same flow. Repeating produces a spanning tree T T T of zero reduced-cost pairs.
Normalize the final potential to be zero at vertex 0. It is now the unique potential p T p^T p T satisfying
p 0 T = 0 , p u T − p v T = a u v ( u v ∈ T ) , p^T_0=0,\qquad p^T_u-p^T_v=a_{uv}\quad(uv\in T), p 0 T = 0 , p u T − p v T = a uv ( uv ∈ T ) ,
obtained by summing the fixed costs along tree paths. Thus p T p^T p T depends only on T T T . Write ρ T = ρ p T \rho_T=\rho_{p^T} ρ T = ρ p T . Its zero pairs are exactly the tree edges, and (20) specifies the flow on every non-tree pair:
f u v = − sgn ( ρ T ( u , v ) ) w u v ( u v ∉ T ) . (21) f_{uv}=-\operatorname{sgn}(\rho_T(u,v))w_{uv}\qquad(uv\notin T). \tag*{(21)} f uv = − sgn ( ρ T ( u , v )) w uv ( uv ∈ / T ) . (21)
The tree need not lie in the positive support of G G G , and some of its edges may themselves be saturated.
The queries and their verification. For each vertex v v v , the tree determines the outgoing non-tree set
O T ( v ) = { u ≠ v : u v ∉ T , ρ T ( v , u ) < 0 } . O_T(v)=\{u\ne v:uv\notin T,\ \rho_T(v,u)<0\}. O T ( v ) = { u = v : uv ∈ / T , ρ T ( v , u ) < 0 } .
Query all singleton shores, all two-vertex shores { u , v } \{u,v\} { u , v } with u v ∈ T uv\in T uv ∈ T , and the two shores O T ( v ) O_T(v) O T ( v ) and O T ( v ) ∪ { v } O_T(v)\cup\{v\} O T ( v ) ∪ { v } for each v v v . This is at most n + ( n − 1 ) + 2 n = 4 n − 1 n+(n-1)+2n=4n-1 n + ( n − 1 ) + 2 n = 4 n − 1 cut queries. By (17) , the singleton and two-vertex answers determine every tree capacity. The divergence b v n t b^{\mathrm{nt}}_v b v nt of the prescribed non-tree flow is twice its outgoing capacity minus its total incident capacity. Substituting (18) gives
b v n t = c G ( O T ( v ) ) − c G ( O T ( v ) ∪ { v } ) + ∑ u : u v ∈ T w u v , (22) b^{\mathrm{nt}}_v=c_G(O_T(v))-c_G(O_T(v)\cup\{v\})+\sum_{u:uv\in T}w_{uv}, \tag*{(22)} b v nt = c G ( O T ( v )) − c G ( O T ( v ) ∪ { v }) + u : uv ∈ T ∑ w uv , (22)
which is determined by the answers.
In a consistent graph G ′ G' G ′ , retain f f f on the tree and use (21) with the new capacities on every non-tree pair. Tree capacities are unchanged, so this flow is feasible. Equation (22) preserves its non-tree divergence, and hence its full divergence is still b b b . This also handles new positive edges: their prescribed directions were already determined by T T T .
The verifier does not need the original tree-edge flow values. Given b b b and the answers, its tree flow is the unique one with divergence b − b n t b-b^{\mathrm{nt}} b − b nt . Explicitly, if deleting u v uv uv from T T T leaves the component A A A containing u u u , then its value from u u u to v v v is
∑ x ∈ A ( b x − b x n t ) . \sum_{x\in A}(b_x-b^{\mathrm{nt}}_x). x ∈ A ∑ ( b x − b x nt ) .
Check that the residual divergences sum to zero and that each of these n − 1 n-1 n − 1 values respects its measured tree capacity. These checks are sufficient for feasibility, as follows by successively removing leaves of the tree. Thus T T T fixes all queried shores and all non-tree directions; b b b and the answers determine the tree flow.
For distinct s , t s,t s , t , take the divergence of a maximum s s s –t t t flow and add a query for a matching minimum shore S ∗ S^* S ∗ . Its answer determines b s = c G ( S ∗ ) b_s=c_G(S^*) b s = c G ( S ∗ ) , b t = − c G ( S ∗ ) b_t=-c_G(S^*) b t = − c G ( S ∗ ) , and all other entries zero. The feasible divergence supplies the lower bound in every consistent graph, and the queried shore supplies the equal upper bound. The certificate is described by ( T , S ∗ ) (T,S^*) ( T , S ∗ ) and uses at most 4 n 4n 4 n queries.
For the terminal-set assertion, add a source joined to every vertex of A A A and a sink joined to every vertex of B B B , each added edge with a fixed capacity greater than ∑ e w e \sum_e w_e ∑ e w e . A maximum flow in this augmented network has value ν \nu ν equal to the minimum A A A –B B B separating-cut value in G G G . Its restriction to the original edges is a feasible flow in G G G whose divergence b b b is nonnegative on A A A , nonpositive on B B B , zero elsewhere, and sums to ν \nu ν over A A A . Certify b b b by the construction above, with at most 4 n − 1 4n-1 4 n − 1 queries to G G G . In every consistent graph b b b admits a feasible flow, so every shore S S S with A ⊆ S A \subseteq S A ⊆ S and S ∩ B = ∅ S \cap B = \varnothing S ∩ B = ∅ satisfies c ( S ) ≥ ∑ v ∈ S b v = ν c(S) \ge\sum_{v \in S} b_v = \nu c ( S ) ≥ ∑ v ∈ S b v = ν . Query one original minimum A A A –B B B cut for the matching upper bound. Alternatively, the construction can be run on the augmented network itself, whose added capacities are constants; each of its cut queries is then a bounded number of cut queries to G G G (Remark 10).
The certified object is the divergence b b b , not the chosen flow f f f . The proof constructs a possibly different capacity-respecting flow for each consistent graph. This is exactly the lower-bound witness needed for terminal cuts, even when the competitor adds new edges.
Remark 10. The same argument applies to a network on a subset W ⊆ V W \subseteq V W ⊆ V whose unknown edges are the original edges within W W W , together with a constant number of auxiliary vertices and fixed-capacity edges. It uses O ( ∣ W ∣ + 1 ) O(|W|+1) O ( ∣ W ∣ + 1 ) cut queries on G G G : the unknown part of each local cut is w G ( A , W ∖ A ) w_G(A,W \setminus A) w G ( A , W ∖ A ) for some A ⊆ W A \subseteq W A ⊆ W , which takes at most three original cut queries by (17) ; the fixed contributions are added exactly. The fixed capacities need not dominate the capacities of a competitor.
For a terminal set R ⊆ V R \subseteq V R ⊆ V , ∣ R ∣ ≥ 2 |R| \ge2 ∣ R ∣ ≥ 2 , and v ∈ R v \in R v ∈ R , put
iso G ( v ; R ) = min { c G ( S ) : S ∩ R = { v } } . \operatorname{iso}_G(v;R)=\min\{c_G(S):S\cap R=\{v\}\}. iso G ( v ; R ) = min { c G ( S ) : S ∩ R = { v }} .
Lemma 11 (Isolating-cut certificates). For every R ⊆ V R \subseteq V R ⊆ V with ∣ R ∣ ≥ 2 |R| \ge2 ∣ R ∣ ≥ 2 , all the values iso G ( v ; R ) \operatorname{iso}_G(v;R) iso G ( v ; R ) , v ∈ R v \in R v ∈ R , can be certified simultaneously with O ( n log ∣ R ∣ ) O(n\log|R|) O ( n log ∣ R ∣ ) cut queries.
Proof. Use the isolating-cut construction of Li and Panigrahi [17 ] . Give the terminals distinct binary labels of length k = ⌈ log 2 ∣ R ∣ ⌉ k=\lceil\log_2 |R|\rceil k = ⌈ log 2 ∣ R ∣ ⌉ . For each bit, choose a minimum cut separating the terminals with bit zero from the terminals with bit one. Certify that cut’s optimality by Lemma 2 , using O ( n k ) O(nk) O ( nk ) queries in total. Each chosen cut is therefore still optimal for its terminal partition in every consistent graph.
For v ∈ R v \in R v ∈ R , let P v P_v P v be the intersection of the chosen bit-cut shores containing v v v . The cells P v P_v P v are disjoint and satisfy P v ∩ R = { v } P_v \cap R=\{v\} P v ∩ R = { v } . An inclusion-minimal minimum isolating shore for v v v lies in P v P_v P v . Indeed, if such a shore S S S is not contained in a bit-cut shore T T T containing v v v , submodularity gives
c G ( S ∩ T ) + c G ( S ∪ T ) ≤ c G ( S ) + c G ( T ) . c_G(S\cap T)+c_G(S\cup T)\le c_G(S)+c_G(T). c G ( S ∩ T ) + c G ( S ∪ T ) ≤ c G ( S ) + c G ( T ) .
The intersection still isolates v v v , and the union still separates the two terminal classes for this bit. Their optimality inequalities force equality, making S ∩ T S\cap T S ∩ T a strictly smaller minimum isolating shore, a contradiction. The same argument applies in every consistent graph because the bit cuts remain optimal there.
For each v ∈ R v \in R v ∈ R , let G v G_v G v be the graph obtained from G G G by contracting V ∖ P v V \setminus P_v V ∖ P v to a single vertex t v t_v t v , and certify a minimum v v v –t v t_v t v cut of G v G_v G v by Lemma 2 , using at most 4 ( ∣ P v ∣ + 1 ) 4(|P_v|+1) 4 ( ∣ P v ∣ + 1 ) queries. Each cut query to G v G_v G v is one cut query to G G G : a shore X ⊆ P v X \subseteq P_v X ⊆ P v has value c G v ( X ) = c G ( X ) c_{G_v}(X)=c_G(X) c G v ( X ) = c G ( X ) , and a shore containing t v t_v t v has value c G v ( P v ∖ ( X ∖ { t v } ) ) c_{G_v}(P_v\setminus(X\setminus\{t_v\})) c G v ( P v ∖ ( X ∖ { t v })) . A graph consistent with these queries on G G G contracts to a graph consistent with them on G v G_v G v , so the certificate remains valid there: in every consistent graph, every shore S ⊆ P v S \subseteq P_v S ⊆ P v with v ∈ S v \in S v ∈ S has value at least the certified minimum. Since the cells are disjoint, the certificates of all the contracted graphs together cost
O ( ∑ v ∈ R ( ∣ P v ∣ + 1 ) ) = O ( n ) . O\left(\sum_{v\in R}(|P_v|+1)\right)=O(n). O ( v ∈ R ∑ ( ∣ P v ∣ + 1 ) ) = O ( n ) .
The containment property gives the required lower bounds on the global isolating-cut values. For the upper bounds, query one original minimum isolating shore for each terminal. Together with the bit-cut certificates, this uses O ( n log ∣ R ∣ ) O(n\log|R|) O ( n log ∣ R ∣ ) queries.
Alternatively, the local network can be formed explicitly on P v ∪ { t v } P_v \cup\{t_v\} P v ∪ { t v } : query the boundary capacity d v o u t ( u ) = w G ( { u } , V ∖ P v ) d_v^{\mathrm{out}}(u)=w_G(\{u\},V\setminus P_v) d v out ( u ) = w G ({ u } , V ∖ P v ) of each u ∈ P v u\in P_v u ∈ P v , at most n n n partial-star queries in all, and join u u u to t v t_v t v by an edge of this fixed capacity. The capacity of every shore S ⊆ P v S\subseteq P_v S ⊆ P v in this network equals c G ( S ) c_G(S) c G ( S ) , also in every consistent graph, since the boundary totals were fixed, and the flow certificate of Remark 10 again costs O ( ∣ P v ∣ + 1 ) O(|P_v|+1) O ( ∣ P v ∣ + 1 ) queries.
Halving the terminal set
Throughout this subsection put λ = λ ( G ) > 0 \lambda=\lambda(G)>0 λ = λ ( G ) > 0 . All flows use the original vertex set, even when the terminal set becomes smaller.
Call S ⊆ V S\subseteq V S ⊆ V U U U -separating if S ∩ U ≠ ∅ S\cap U\ne\varnothing S ∩ U = ∅ and U ⊈ S U\not\subseteq S U ⊆ S . For a symmetric weighting h h h write c h c_h c h for its cut function.
Lemma 12 (Fractional splitting off). Let U ⊆ V U\subseteq V U ⊆ V and suppose c G ( S ) ≥ λ c_G(S)\ge\lambda c G ( S ) ≥ λ for every U U U -separating S S S . There is a nonnegative weighted graph J J J on V V V , with weight zero on every pair having an endpoint outside U U U , such that
c J ( S ) ≤ c G ( S ) for every S , c J ( S ) ≥ λ for every U -separating S . c_J(S)\le c_G(S)\quad\text{for every }S,\qquad c_J(S)\ge\lambda\quad\text{for every }U\text{-separating }S. c J ( S ) ≤ c G ( S ) for every S , c J ( S ) ≥ λ for every U -separating S .
Proof. Let H \mathcal{H} H be the set of symmetric nonnegative weightings h h h on V V V with zero diagonal satisfying both displayed families of inequalities. It contains w G w_G w G and is closed. It is bounded, since h ( x , y ) ≤ c h ( { x } ) ≤ c G ( { x } ) h(x,y)\le c_h(\{x\})\le c_G(\{x\}) h ( x , y ) ≤ c h ({ x }) ≤ c G ({ x }) . Choose h ∈ H h\in\mathcal{H} h ∈ H minimizing the weight Φ ( h ) = ∑ z ∉ U ∑ y h ( z , y ) \Phi(h)=\sum_{z\notin U}\sum_y h(z,y) Φ ( h ) = ∑ z ∈ / U ∑ y h ( z , y ) at nonterminals, and let H H H be the corresponding graph. Call a pair with positive H H H -weight an edge, and call a U U U -separating set tight if its H H H -cut equals λ \lambda λ . Complements of tight sets are tight.
Suppose, for a contradiction, that some nonterminal x x x has an edge. Let D D D be a symmetric weighting with zero diagonal that is negative only on edges, with c D ( S ) ≤ 0 c_D(S)\le0 c D ( S ) ≤ 0 for every S S S and Φ ( D ) < 0 \Phi(D)<0 Φ ( D ) < 0 . If no tight set S S S had c D ( S ) < 0 c_D(S)<0 c D ( S ) < 0 , then h + ε D ∈ H h+\varepsilon D\in\mathcal{H} h + ε D ∈ H for all small ε > 0 \varepsilon>0 ε > 0 , because there are finitely many sets; this would contradict minimality. We use two such directions.
Deleting an edge x u xu xu : c D ( S ) c_D(S) c D ( S ) is − 1 -1 − 1 if S S S separates x x x from u u u and 0 0 0 otherwise, and Φ ( D ) ≤ − 1 \Phi(D)\le-1 Φ ( D ) ≤ − 1 . Hence, after taking a complement, some tight set contains u u u but not x x x .
Splitting distinct edges x u , x v xu,xv xu , xv into u v uv uv : then c D ( S ) ∈ { 0 , − 2 } c_D(S)\in\{0,-2\} c D ( S ) ∈ { 0 , − 2 } , with c D ( S ) = − 2 c_D(S)=-2 c D ( S ) = − 2 exactly when S S S separates x x x from both u u u and v v v , and Φ ( D ) = − 2 \Phi(D)=-2 Φ ( D ) = − 2 (the weight at x x x drops by $2$, while at u u u and at $v the lost edge to x x x is offset by the new edge u v uv uv , whether or not they are terminals). Hence some tight set contains u u u and v v v but not x x x .
Among the tight sets that avoid x x x and contain a neighbor of x x x , choose X X X of maximum size, containing the neighbor u u u . The set X ∪ { x } X\cup\{x\} X ∪ { x } is U U U -separating because x ∉ U x\notin U x ∈ / U , so
λ ≤ c H ( X ∪ { x } ) = λ + d H ( x ) − 2 w H ( x , X ) . \lambda\le c_H(X\cup\{x\})=\lambda+d_H(x)-2w_H(x,X). λ ≤ c H ( X ∪ { x }) = λ + d H ( x ) − 2 w H ( x , X ) .
Thus w H ( x , X ) ≤ d H ( x ) / 2 w_H(x,X)\le d_H(x)/2 w H ( x , X ) ≤ d H ( x ) /2 . Since w H ( x , X ) ≥ H ( x , u ) > 0 w_H(x,X)\ge H(x,u)>0 w H ( x , X ) ≥ H ( x , u ) > 0 , some neighbor v v v of x x x lies outside X X X . By (ii) there is a tight set Y Y Y avoiding x x x and containing u u u and v v v .
If X ∩ Y X\cap Y X ∩ Y and X ∪ Y X\cup Y X ∪ Y are both U U U -separating, submodularity gives c H ( X ∪ Y ) ≤ 2 λ − c H ( X ∩ Y ) < λ c_H(X\cup Y)\le2\lambda-c_H(X\cap Y)<\lambda c H ( X ∪ Y ) ≤ 2 λ − c H ( X ∩ Y ) < λ . Then X ∪ Y X\cup Y X ∪ Y is a tight set avoiding x x x , containing $u, and larger than X X X because it contains v v v , a contradiction. Otherwise either X ∩ Y X\cap Y X ∩ Y contains no terminal or X ∪ Y X\cup Y X ∪ Y contains all terminals. In both cases X ∖ Y X \setminus Y X ∖ Y contains a terminal outside Y Y Y and misses the terminals of Y Y Y , so it is U U U -separating, and symmetrically so is Y ∖ X Y \setminus X Y ∖ X . The identity
c H ( X ) + c H ( Y ) = c H ( X ∖ Y ) + c H ( Y ∖ X ) + 2 w H ( X ∩ Y , V ∖ ( X ∪ Y ) ) c_H(X) + c_H(Y) = c_H(X \setminus Y) + c_H(Y \setminus X) + 2w_H(X \cap Y, V \setminus(X \cup Y)) c H ( X ) + c H ( Y ) = c H ( X ∖ Y ) + c H ( Y ∖ X ) + 2 w H ( X ∩ Y , V ∖ ( X ∪ Y ))
then gives w H ( X ∩ Y , V ∖ ( X ∪ Y ) ) ≤ 0 w_H(X \cap Y,V \setminus(X \cup Y)) \le0 w H ( X ∩ Y , V ∖ ( X ∪ Y )) ≤ 0 , contradicting u ∈ X ∩ Y u \in X \cap Y u ∈ X ∩ Y , x ∉ X ∪ Y x \notin X \cup Y x ∈ / X ∪ Y , and H ( u , x ) > 0 H(u,x)>0 H ( u , x ) > 0 . Hence no nonterminal has an edge, and J = H J=H J = H satisfies the lemma.
Lemma 13 (A flow to half the terminals). For every U ⊂ V U \subset V U ⊂ V with ∣ U ∣ ≥ 2 |U| \ge2 ∣ U ∣ ≥ 2 , there is a nonempty R ⊂ U R \subset U R ⊂ U with ∣ R ∣ ≤ ∣ U ∣ / 2 |R| \le|U|/2 ∣ R ∣ ≤ ∣ U ∣/2 and a feasible flow whose divergence satisfies
b u = λ / 2 ( u ∈ U ∖ R ) , b v = 0 ( v ∉ U ) , b v ≤ 0 ( v ∈ R ) . b_u = \lambda/2 \quad(u \in U \setminus R), \qquad b_v = 0 \quad(v \notin U), \qquad b_v \le0 \quad(v \in R). b u = λ /2 ( u ∈ U ∖ R ) , b v = 0 ( v ∈ / U ) , b v ≤ 0 ( v ∈ R ) .
Consequently, O ( n ) O(n) O ( n ) cut queries certify the inequalities
c G ′ ( S ) ≥ λ 2 ∣ S ∩ U ∣ for every S with S ∩ R = ∅ . (23) c_{G'}(S) \ge\frac{\lambda}{2}|S \cap U| \qquad\text{for every } S \text{ with } S \cap R = \varnothing. \tag*{(23)} c G ′ ( S ) ≥ 2 λ ∣ S ∩ U ∣ for every S with S ∩ R = ∅ . (23)
Proof. Every U U U -separating set is a nontrivial cut, so Lemma 12 applies and gives J J J . For u ∈ U u \in U u ∈ U the singleton { u } \{u\} { u } is U U U -separating because ∣ U ∣ ≥ 2 |U| \ge2 ∣ U ∣ ≥ 2 , so d J ( u ) ≥ λ d_J(u) \ge\lambda d J ( u ) ≥ λ . Since J J J has no weight outside U U U , c J ( S ) = c J ( S ∩ U ) c_J(S) = c_J(S \cap U) c J ( S ) = c J ( S ∩ U ) for every S S S ; in particular c J ( U ∖ X ) = c J ( X ) c_J(U \setminus X) = c_J(X) c J ( U ∖ X ) = c J ( X ) for X ⊆ U X \subseteq U X ⊆ U .
Choose X ⊆ U X \subseteq U X ⊆ U maximizing c J ( X ) c_J(X) c J ( X ) , and let R R R be the smaller of X X X and U ∖ X U \setminus X U ∖ X . Then ∣ R ∣ ≤ ∣ U ∣ / 2 |R| \le|U|/2 ∣ R ∣ ≤ ∣ U ∣/2 , and R R R also maximizes c J c_J c J . For u ∈ U ∖ R u \in U \setminus R u ∈ U ∖ R , moving u u u into R R R cannot increase the cut:
c J ( R ∪ { u } ) = c J ( R ) + d J ( u ) − 2 w J ( u , R ) ≤ c J ( R ) . c_J(R \cup\{u\}) = c_J(R) + d_J(u) - 2w_J(u,R) \le c_J(R). c J ( R ∪ { u }) = c J ( R ) + d J ( u ) − 2 w J ( u , R ) ≤ c J ( R ) .
Hence w J ( u , R ) ≥ d J ( u ) / 2 ≥ λ / 2 w_J(u,R) \ge d_J(u)/2 \ge\lambda/2 w J ( u , R ) ≥ d J ( u ) /2 ≥ λ /2 . Also c J ( R ) ≥ c J ( { u } ) ≥ λ > 0 c_J(R) \ge c_J(\{u\}) \ge\lambda> 0 c J ( R ) ≥ c J ({ u }) ≥ λ > 0 for any u ∈ U u \in U u ∈ U , so R R R is neither empty nor all of U U U . For every S S S with S ∩ R = ∅ S \cap R = \varnothing S ∩ R = ∅ ,
c G ( S ) ≥ c J ( S ) ≥ w J ( S ∩ U , R ) ≥ λ 2 ∣ S ∩ U ∣ . (24) c_G(S) \ge c_J(S) \ge w_J(S \cap U,R) \ge\frac{\lambda}{2}|S \cap U|. \tag*{(24)} c G ( S ) ≥ c J ( S ) ≥ w J ( S ∩ U , R ) ≥ 2 λ ∣ S ∩ U ∣. (24)
Add a source s s s joined to every u ∈ U ∖ R u \in U \setminus R u ∈ U ∖ R with capacity λ / 2 \lambda/2 λ /2 , and a sink t t t joined to every vertex of R R R with a fixed capacity M > ( λ / 2 ) ∣ U ∖ R ∣ M > (\lambda/2)|U \setminus R| M > ( λ /2 ) ∣ U ∖ R ∣ . Any cut containing a vertex of R R R on its source side already has capacity at least M M M . Every remaining source–sink cut has source side { s } ∪ S \{s\} \cup S { s } ∪ S with S ∩ R = ∅ S \cap R = \varnothing S ∩ R = ∅ , and capacity
c G ( S ) + λ 2 ∣ ( U ∖ R ) ∖ S ∣ ≥ λ 2 ∣ ( U ∖ R ) ∩ S ∣ + λ 2 ∣ ( U ∖ R ) ∖ S ∣ = λ 2 ∣ U ∖ R ∣ c_G(S) + \frac{\lambda}{2}|(U \setminus R) \setminus S| \ge\frac{\lambda}{2}|(U \setminus R) \cap S| + \frac{\lambda}{2}|(U \setminus R) \setminus S| = \frac{\lambda}{2}|U \setminus R| c G ( S ) + 2 λ ∣ ( U ∖ R ) ∖ S ∣ ≥ 2 λ ∣ ( U ∖ R ) ∩ S ∣ + 2 λ ∣ ( U ∖ R ) ∖ S ∣ = 2 λ ∣ U ∖ R ∣
by (24) . By max-flow/min-cut, a maximum flow saturates every source edge. Its restriction to G G G is a feasible flow with the required divergences.
Finally certify this fixed divergence vector by Lemma 2 . A shore disjoint from R R R has total divergence ( λ / 2 ) ∣ S ∩ U ∣ (\lambda/2)|S \cap U| ( λ /2 ) ∣ S ∩ U ∣ , giving (23) in every consistent graph.
Proof of Theorem 1 . If λ ( G ) = 0 \lambda(G) = 0 λ ( G ) = 0 , one zero-weight nontrivial cut suffices. Otherwise start with U 0 = V U_0 = V U 0 = V . At every stage with ∣ U i ∣ ≥ 2 |U_i| \ge2 ∣ U i ∣ ≥ 2 , certify all isolating-cut values for U i U_i U i by Lemma 11 , and use Lemma 13 to choose and certify U i + 1 ⊂ U i U_{i+1} \subset U_i U i + 1 ⊂ U i with 1 ≤ ∣ U i + 1 ∣ ≤ ∣ U i ∣ / 2 1 \le|U_{i+1}| \le|U_i|/2 1 ≤ ∣ U i + 1 ∣ ≤ ∣ U i ∣/2 . Stop when U L U_L U L is a singleton. Also query one minimum cut of G G G . There are at most ⌈ log 2 n ⌉ \lceil\log_2 n\rceil ⌈ log 2 n ⌉ rounds, and the total number of queries is
O ( n ∑ i = 0 L − 1 log ( 2 ∣ U i ∣ ) ) = O ( n log 2 ( 2 n ) ) . O\left(n \sum_{i=0}^{L-1} \log(2|U_i|)\right) = O(n\log^2(2n)). O ( n i = 0 ∑ L − 1 log ( 2∣ U i ∣ ) ) = O ( n log 2 ( 2 n )) .
Suppose that a consistent graph has a nontrivial cut S S S of capacity less than λ \lambda λ . Both shores meet U 0 U_0 U 0 . If both meet U i U_i U i , neither contains exactly one terminal v ∈ U i v \in U_i v ∈ U i , since it would then have capacity at least
iso G ′ ( v ; U i ) = iso G ( v ; U i ) ≥ λ . \operatorname{iso}_{G'}(v;U_i)=\operatorname{iso}_{G}(v;U_i)\ge\lambda. iso G ′ ( v ; U i ) = iso G ( v ; U i ) ≥ λ .
Thus both shores contain at least two terminals of U i U_i U i . By (23) , neither can be disjoint from U i + 1 U_{i+1} U i + 1 . Induction implies that both meet the singleton U L U_L U L , a contradiction. Hence every nontrivial cut of G ′ G' G ′ has capacity at least λ \lambda λ . The queried minimum cut gives the reverse inequality.
The split-off graphs and the maximum cuts used to choose retained terminals are selected with knowledge of G G G . Only the resulting divergence vectors are certified; the graphs J J J need not remain valid for a consistent graph. Lemma 12 is a fractional form of the splitting-off theorems of Lovász [16 ] and Mader [18 ] : it preserves only connectivity across the terminal set, which is all the maximum-cut argument uses, and it needs neither integrality nor the preservation of pairwise connectivities. The proof above works directly with arbitrary real capacities and requires no rational approximation or integrality hypothesis.
Weak skeletons and tree covers
We now pass from certifying an optimum to an explicit graph in which it can be found. The certificate construction gives an exact completion after its measurements are supplied. For an algorithm choosing its own measurements, the weaker condition below suffices: a short tree cover of the weak skeleton reduces the final search to O ( n log 2 n ) O(n\log^2 n) O ( n log 2 n ) further queries to the original graph.
Recall from Definition 3 that, for a graph G G G with λ = λ ( G ) > 0 \lambda=\lambda(G)>0 λ = λ ( G ) > 0 , a weak skeleton is an explicit nonnegative weighted graph H H H on V ( G ) V(G) V ( G ) with
λ ( H ) ≥ λ , c H ( S ∗ ) ≤ 5 4 λ for every minimum-cut shore S ∗ of G . (25) \lambda(H)\ge\lambda,\qquad c_H(S^*)\le\frac{5}{4}\lambda\quad\text{for every minimum-cut shore }S^*\text{ of }G. \tag*{(25)} λ ( H ) ≥ λ , c H ( S ∗ ) ≤ 4 5 λ for every minimum-cut shore S ∗ of G . (25)
Thus the positive support of H H H is connected. Edges absent from G G G may be used in H H H . The tree cover below uses only that every minimum cut of G G G is a 5 / 4 5/4 5/4 -approximate minimum cut of H H H .
Remark 14 (Sparse output). The number of edges of H H H never enters a query bound. If an explicit graph H 0 H_0 H 0 satisfies λ ( H 0 ) ≥ λ \lambda(H_0)\ge\lambda λ ( H 0 ) ≥ λ and c H 0 ( S ∗ ) ≤ 121 100 λ c_{H_0}(S^*)\le\frac{121}{100}\lambda c H 0 ( S ∗ ) ≤ 100 121 λ for every minimum cut S ∗ S^* S ∗ , deterministic spectral sparsification [6 ] , scaled so that L H 0 ⪯ L H ⪯ 101 100 L H 0 L_{H_0}\preceq L_H\preceq\frac{101}{100}L_{H_0} L H 0 ⪯ L H ⪯ 100 101 L H 0 , gives an O ( n ) O(n) O ( n ) -edge weak skeleton H H H without further queries, since c H ( S ∗ ) ≤ ( 12221 / 10000 ) λ < ( 5 / 4 ) λ c_H(S^*)\le(12221/10000)\lambda< (5/4)\lambda c H ( S ∗ ) ≤ ( 12221/10000 ) λ < ( 5/4 ) λ .
Certificates give sparse consistent skeletons
Proposition 15 (A certificate-to-skeleton connection). Let Q Q Q be a q q q -query minimum-cut certificate for G G G that includes an optimum shore S ∗ S^* S ∗ . There is a nonnegative graph F F F with at most q q q edges, consistent with every answer, such that
λ ( F ) = c F ( S ∗ ) = λ ( G ) . \lambda(F)=c_F(S^*)=\lambda(G). λ ( F ) = c F ( S ∗ ) = λ ( G ) . Given the certificate shores and answers, such an F F F can be computed without further queries. If λ ( G ) > 0 \lambda(G)>0 λ ( G ) > 0 , then F F F satisfies (25) for the certified shore S ∗ S^* S ∗ , which is all the tree cover of Lemma 17 needs to find S ∗ S^* S ∗ ; F F F need not approximate the other minimum cuts of G G G .
Proof. Let A A A have the queried cut-incidence vectors as rows, and let a = A w G a=Aw_G a = A w G . The system A x = a Ax=a A x = a , x ≥ 0 x\ge0 x ≥ 0 , is feasible. Choose a feasible solution with minimal support. If its supported columns were linearly dependent, moving along a nonzero dependence in one of its two directions until a positive coordinate became zero would preserve feasibility and reduce support. Thus its support has size at most rank( A ) ≤ q (A) \le q ( A ) ≤ q . This solution can be found by linear programming, or by enumerating supports and solving their linear feasibility problems, using only A , a A,a A , a .
Every feasible solution has minimum-cut value λ ( G ) \lambda(G) λ ( G ) by the certificate property. Since S ∗ S^* S ∗ was queried, its value is also fixed to λ ( G ) \lambda(G) λ ( G ) . This proves the last claim. The support of the computed completion need not be known to be contained in the support of G G G .
The certificate in Theorem 1 already includes S ∗ S^* S ∗ . It therefore gives a graph-dependent collection of O ( n log 2 n ) O(n\log^2 n) O ( n log 2 n ) measurements sufficient for constructing an explicit graph in which the certified minimum cut can be found. The algorithmic question is how to select measurements from oracle answers alone. The next sections answer this by constructing a weak skeleton directly. They do not invert the certificate proof or recover its terminal sets and flow witnesses.
Covering near-minimum cuts by a few trees
We use the minimum-spanning-tree inequality behind fractional tree packing, in the following elementary form. For a set E E E of pairs and a cut S S S , write δ E ( S ) \delta_E(S) δ E ( S ) for the pairs of E E E with one endpoint in S S S . Call E E E spanning if δ E ( S ) ≠ ∅ \delta_E(S)\ne\varnothing δ E ( S ) = ∅ for every nontrivial cut S S S .
Lemma 16 (Light spanning edge sets). Let H H H be a nonnegative weighted graph on V V V with λ ( H ) ≥ λ > 0 \lambda(H)\ge\lambda>0 λ ( H ) ≥ λ > 0 , and let ℓ ≥ 0 \ell\ge0 ℓ ≥ 0 be lengths on the pairs of V V V . There is a spanning set E E E of positive-weight pairs of H H H with
∑ e ∈ E ℓ e ≤ 2 λ ∑ { a , b } w H ( a , b ) ℓ a b . (26) \sum_{e\in E}\ell_e \le\frac{2}{\lambda}\sum_{\{a,b\}}w_H(a,b)\ell_{ab}. \tag*{(26)} e ∈ E ∑ ℓ e ≤ λ 2 { a , b } ∑ w H ( a , b ) ℓ ab . (26)
Proof. We prove a statement for partitions. Let P \mathcal{P} P be a partition of V V V into k ≥ 1 k\ge1 k ≥ 1 blocks such that every nonempty proper union of blocks has H H H -cut at least λ \lambda λ . Say that E E E connects P \mathcal{P} P if every such union is crossed by a pair of E E E . We show that, if ℓ \ell ℓ is nonnegative on the positive-weight pairs crossing P \mathcal{P} P , there is a set E E E of at most k − 1 k-1 k − 1 positive-weight pairs connecting P \mathcal{P} P with
∑ e ∈ E ℓ e ≤ 2 λ ∑ { a , b } crossing P w H ( a , b ) ℓ a b . \sum_{e\in E}\ell_e \le\frac{2}{\lambda}\sum_{\{a,b\}\text{ crossing }\mathcal{P}}w_H(a,b)\ell_{ab}. e ∈ E ∑ ℓ e ≤ λ 2 { a , b } crossing P ∑ w H ( a , b ) ℓ ab .
The lemma is the case of singleton blocks.
For k = 1 k=1 k = 1 take E = ∅ E=\varnothing E = ∅ . Let k ≥ 2 k\ge2 k ≥ 2 . A single block is a proper union of blocks, so its cut is at least λ > 0 \lambda>0 λ > 0 and some positive-weight pair crosses P \mathcal{P} P . Among these, choose u v uv uv with the least length ℓ 0 = ℓ u v ≥ 0 \ell_0=\ell_{uv}\ge0 ℓ 0 = ℓ uv ≥ 0 . Merge the blocks of u u u and v v v to obtain P ′ \mathcal{P}' P ′ with k − 1 k-1 k − 1 blocks. Unions of blocks of P ′ \mathcal{P}' P ′ are unions of blocks of P \mathcal{P} P , and the lengths ℓ ′ = ℓ − ℓ 0 \ell'=\ell-\ell_0 ℓ ′ = ℓ − ℓ 0 are nonnegative on the positive-weight pairs crossing P ′ \mathcal{P}' P ′ , since those pairs also cross P \mathcal{P} P . By induction there is a set E ′ E' E ′ of at most k − 2 k-2 k − 2 such pairs connecting P ′ \mathcal{P}' P ′ , with the bound for ℓ ′ \ell' ℓ ′ . Put E = E ′ ∪ { u v } E=E'\cup\{uv\} E = E ′ ∪ { uv } . A union of blocks of P \mathcal{P} P that does not separate u u u from v v v is a union of blocks of P ′ \mathcal{P}' P ′ and is crossed by E ′ E' E ′ ; otherwise it is crossed by u v uv uv . Moreover
∑ e ∈ E ℓ e ≤ ℓ 0 + ∑ e ∈ E ′ ( ℓ e ′ + ℓ 0 ) ≤ ∑ e ∈ E ′ ℓ e ′ + ( k − 1 ) ℓ 0 . \sum_{e\in E}\ell_e\le\ell_0+\sum_{e\in E'}(\ell'_e+\ell_0)\le\sum_{e\in E'}\ell'_e+(k-1)\ell_0. e ∈ E ∑ ℓ e ≤ ℓ 0 + e ∈ E ′ ∑ ( ℓ e ′ + ℓ 0 ) ≤ e ∈ E ′ ∑ ℓ e ′ + ( k − 1 ) ℓ 0 .
The total weight W W W of the pairs crossing P \mathcal{P} P is half the sum of the k k k block cuts, so W ≥ k λ / 2 W\ge k\lambda/2 W ≥ k λ /2 . Pairs that cross P \mathcal{P} P but not P ′ \mathcal{P}' P ′ have w H ℓ ′ ≥ 0 w_H\ell'\ge0 w H ℓ ′ ≥ 0 . Hence
2 λ ∑ crossing P w H ℓ = 2 λ ∑ crossing P w H ℓ ′ + 2 W λ ℓ 0 ≥ 2 λ ∑ crossing P ′ w H ℓ ′ + k ℓ 0 ≥ ∑ e ∈ E ℓ e . \frac{2}{\lambda}\sum_{\text{crossing }\mathcal{P}}w_H\ell
=\frac{2}{\lambda}\sum_{\text{crossing }\mathcal{P}}w_H\ell'
+\frac{2W}{\lambda}\ell_0
\ge\frac{2}{\lambda}\sum_{\text{crossing }\mathcal{P}'}w_H\ell'+k\ell_0
\ge\sum_{e\in E}\ell_e. λ 2 crossing P ∑ w H ℓ = λ 2 crossing P ∑ w H ℓ ′ + λ 2 W ℓ 0 ≥ λ 2 crossing P ′ ∑ w H ℓ ′ + k ℓ 0 ≥ e ∈ E ∑ ℓ e .
Lemma 17 (A deterministic tree cover). From an explicit nonnegative weighted graph H H H with λ ( H ) > 0 \lambda(H)>0 λ ( H ) > 0 , one can deterministically compute O ( log n ) O(\log n) O ( log n ) spanning trees on V V V such that every cut of weight at most ( 5 / 4 ) λ ( H ) (5/4)\lambda(H) ( 5/4 ) λ ( H ) crosses at most two edges of at least one tree. No queries to G G G are required.
Proof. Put λ = λ ( H ) \lambda=\lambda(H) λ = λ ( H ) and let F \mathcal{F} F be the set of nontrivial cuts of weight at most ( 5 / 4 ) λ (5/4)\lambda ( 5/4 ) λ , each counted once up to complementation. We first show that for every nonempty F ′ ⊆ F \mathcal{F}'\subseteq\mathcal{F} F ′ ⊆ F some spanning tree T T T crosses at most two edges of at least ∣ F ′ ∣ / 4 |\mathcal{F}'|/4 ∣ F ′ ∣/4 of its cuts.
Let ℓ a b \ell_{ab} ℓ ab be the number of cuts in F ′ \mathcal{F}' F ′ that separate a a a from b b b . Then ∑ { a , b } w H ( a , b ) ℓ a b = ∑ S ∈ F ′ c H ( S ) \sum_{\{a,b\}}w_H(a,b)\ell_{ab}=\sum_{S\in\mathcal{F}'}c_H(S) ∑ { a , b } w H ( a , b ) ℓ ab = ∑ S ∈ F ′ c H ( S ) , and Lemma 16 gives a spanning set E E E with
∑ S ∈ F ′ ∣ δ E ( S ) ∣ = ∑ e ∈ E ℓ e ≤ 2 λ ∑ S ∈ F ′ c H ( S ) ≤ 5 2 ∣ F ′ ∣ . \sum_{S\in\mathcal{F}'}|\delta_E(S)|=\sum_{e\in E}\ell_e\le\frac{2}{\lambda}\sum_{S\in\mathcal{F}'}c_H(S)\le\frac{5}{2}|\mathcal{F}'|. S ∈ F ′ ∑ ∣ δ E ( S ) ∣ = e ∈ E ∑ ℓ e ≤ λ 2 S ∈ F ′ ∑ c H ( S ) ≤ 2 5 ∣ F ′ ∣.
Each term on the left is at least one because E E E is spanning. If b b b cuts have ∣ δ E ( S ) ∣ ≥ 3 |\delta_E(S)|\ge3 ∣ δ E ( S ) ∣ ≥ 3 , the left side is at least ∣ F ′ ∣ + 2 b |\mathcal{F}'|+2b ∣ F ′ ∣ + 2 b , so b ≤ 3 4 ∣ F ′ ∣ b\le\frac{3}{4}|\mathcal{F}'| b ≤ 4 3 ∣ F ′ ∣ . The graph ( V , E ) (V,E) ( V , E ) is connected; let T T T be any spanning tree of it, for instance a breadth-first tree. Since T ⊆ E T\subseteq E T ⊆ E , we have ∣ δ T ( S ) ∣ ≤ ∣ δ E ( S ) ∣ |\delta_T(S)|\le|\delta_E(S)| ∣ δ T ( S ) ∣ ≤ ∣ δ E ( S ) ∣ , and T T T crosses at most two edges of at least ∣ F ′ ∣ / 4 |\mathcal{F}'|/4 ∣ F ′ ∣/4 cuts of F ′ \mathcal{F}' F ′ .
A fixed spanning tree crosses at most two edges of at most ( n 2 ) \binom{n}{2} ( 2 n ) nontrivial cuts, up to complementation: choose one or two of its edges. Applying the first step to F ′ = F \mathcal{F}'=\mathcal{F} F ′ = F therefore gives ∣ F ∣ ≤ 4 ( n 2 ) |\mathcal{F}|\le4\binom{n}{2} ∣ F ∣ ≤ 4 ( 2 n ) . Now choose trees greedily, each time applying the first step to the cuts not yet covered. After t t t choices at most ( 3 / 4 ) t ⋅ 4 ( n 2 ) (3/4)^t\cdot4\binom{n}{2} ( 3/4 ) t ⋅ 4 ( 2 n ) cuts remain, so t = O ( log n ) t=O(\log n) t = O ( log n ) trees cover F \mathcal{F} F .
Every step concerns only the explicit graph H H H , so this is a deterministic computation in the query model. The proof of Lemma 16 is itself a greedy procedure: repeatedly add a shortest positive-weight pair joining two different components. □ \square □
Remark 18. The inequality (26) is the minimum-spanning-tree bound that is dual to the fractional spanning-tree packing theorem. Using it directly with lengths that count uncovered cuts avoids computing an optimal packing. All choices in this cover use only the explicit skeleton. The construction has no random choices and does not use the original graph’s unqueried weights.
Theorem 19 (Two-respecting cuts). Given an explicit tree T T T on V ( G ) V(G) V ( G ) , a minimum G G G -cut crossing at most two edges of T T T can be found deterministically with O ( n log n ) O(n\log n) O ( n log n ) cut queries. The edges of T T T need not be edges of G G G .
§ 12 proves this theorem by implementing the interested-path reduction of Gawrychowski, Mozes, and Weimann [10 ] . Boundary-measure searches locate all interest paths with O ( n log n ) O(n\log n) O ( n log n ) queries, and SMAWK [3 ] searches the resulting full Monge rectangles within the same budget.
Corollary 20. An algorithm constructing a weak skeleton in q ( n ) q(n) q ( n ) queries yields a deterministic minimum-cut algorithm using q ( n ) + O ( n log 2 n ) q(n)+O(n\log^2 n) q ( n ) + O ( n log 2 n ) queries. The same holds for an explicit graph satisfying (25) for a single minimum cut.
Proof. Compute the tree cover of Lemma 17 on the explicit skeleton and apply Theorem 19 to each tree. Every minimum cut of G G G satisfying (25) is among the covered cuts, and every returned candidate is an actual cut of G G G . □ \square □
A weak skeleton from a supplied hierarchy
The certificate-to-skeleton connection used full input knowledge to select measurements. From this section onward, every query is selected from supplied data and previous answers. We first isolate what a known hierarchy must guarantee about the unknown minimum cuts; § 11 will construct such a hierarchy.
A hierarchy T T T is a rooted tree whose leaves are precisely V V V and whose internal nodes have at least two children. A node represents its descendant leaf set. We also admit, as the formalization does, unary nodes and leaves that are not in V V V , provided that the nodes of V V V have no children. A nonroot node u u u then represents the cluster A u = sub ( u ) ∩ V A_u = \operatorname{sub}(u) \cap V A u = sub ( u ) ∩ V of terminals below it; distinct nodes may represent the same cluster, and a cluster may be ∅ \varnothing ∅ or V V V . Every hierarchy constructed below has at most 2 n + 1 2n+1 2 n + 1 nodes, and the hierarchy supplied at the start has O ( n ) O(n) O ( n ) nodes, which affects only the constant in the first round. Write A \mathcal{A} A for the nonroot clusters, indexed by nodes, so ∣ A ∣ = O ( n ) |\mathcal{A}| = O(n) ∣ A ∣ = O ( n ) . The canonical capacities for G G G are d A = c G ( A ) d_A = c_G(A) d A = c G ( A ) on the edge from a cluster A A A to its parent, so d A = 0 d_A = 0 d A = 0 when A ∈ { ∅ , V } A \in\{\varnothing,V\} A ∈ { ∅ , V } and d A ≥ λ d_A \ge\lambda d A ≥ λ otherwise; they are learned in O ( n ) O(n) O ( n ) queries. Define the representation cost
R ( S ) = min binary labels on tree nodes labels on V equal 1 S ∑ A ∈ A d A ∣ ℓ ( A ) − ℓ ( parent ( A ) ) ∣ . (27) R(S) =
\min_{\substack{\text{binary labels on tree nodes}\\
\text{labels on }V\text{ equal }1_S}}
\sum_{A\in\mathcal{A}} d_A \lvert\ell(A)-\ell(\operatorname{parent}(A))\rvert. \tag*{(27)} R ( S ) = binary labels on tree nodes labels on V equal 1 S min A ∈ A ∑ d A ∣ ℓ ( A ) − ℓ ( parent ( A ))∣ . (27)
It is the minimum cut in the tree extending the prescribed labels on V V V ; leaves outside V V V are unconstrained.
Theorem 21 (Supplied-hierarchy bound). Suppose λ ( G ) > 0 \lambda(G) > 0 λ ( G ) > 0 , T T T and B ≥ 1 B \ge1 B ≥ 1 are supplied, and every minimum cut S ∗ S^* S ∗ of G G G satisfies R ( S ∗ ) ≤ B λ ( G ) R(S^*) \le B\lambda(G) R ( S ∗ ) ≤ B λ ( G ) . A weak skeleton can be constructed deterministically in O ( n B 2 log n ) O(nB^2\log n) O ( n B 2 log n ) cut queries. The bound is independent of hierarchy depth, and neither the minimum cuts nor λ ( G ) \lambda(G) λ ( G ) are needed as input.
Quantiles of boundary measures
Lemma 22 (Exact checkpoints for a nonnegative measure). Let μ \mu μ be a nonnegative measure on an ordered set [ n ] [n] [ n ] , with known total mass M > 0 M > 0 M > 0 . Suppose prefix masses can be queried. For an integer q ≥ 1 q \ge1 q ≥ 1 , O ( q log n ) O(q\log n) O ( q log n ) queries give O ( q ) O(q) O ( q ) exact prefix constraints such that every nonnegative measure ν \nu ν satisfying those constraints obeys ∣ μ ( [ x ] ) − ν ( [ x ] ) ∣ ≤ M / q |\mu([x])-\nu([x])| \le M/q ∣ μ ([ x ]) − ν ([ x ]) ∣ ≤ M / q for every prefix [ x ] [x] [ x ] , 0 ≤ x ≤ n 0 \le x \le n 0 ≤ x ≤ n . Consequently
∣ μ ( I ) − ν ( I ) ∣ ≤ 2 M q for every interval I ⊆ [ n ] . (28) |\mu(I)-\nu(I)| \le\frac{2M}{q}
\qquad\text{for every interval } I\subseteq[n]. \tag*{(28)} ∣ μ ( I ) − ν ( I ) ∣ ≤ q 2 M for every interval I ⊆ [ n ] . (28) More precisely, at most ( q − 1 ) ( ⌊ log 2 n ⌋ + 3 ) (q-1)(\lfloor\log_2 n\rfloor+3) ( q − 1 ) (⌊ log 2 n ⌋ + 3 ) prefix queries and at most 2 q 2q 2 q recorded prefixes suffice.
Proof. For j = 1 , … , q − 1 j=1,\ldots,q-1 j = 1 , … , q − 1 , find by binary search the first index k j k_j k j with
μ ( [ k j ] ) ≥ j M / q . \mu([k_j]) \ge jM/q. μ ([ k j ]) ≥ j M / q .
Record the exact masses of the prefixes ending at k j − 1 k_j-1 k j − 1 and k j k_j k j , as well as the masses at indices 0 0 0 and n n n . Put k 0 = 0 k_0=0 k 0 = 0 and k q = n + 1 k_q=n+1 k q = n + 1 ; recorded indices need not be distinct.
Fix 0 ≤ x ≤ n 0\le x\le n 0 ≤ x ≤ n and let j j j be the largest index with k j ≤ x k_j\le x k j ≤ x . Then k j ≤ x ≤ k j + 1 − 1 k_j\le x\le k_{j+1}-1 k j ≤ x ≤ k j + 1 − 1 , and both endpoints are recorded (for j = q − 1 j=q-1 j = q − 1 the right endpoint is n n n ). Their μ \mu μ -masses lie in [ j M / q , ( j + 1 ) M / q ] [jM/q,(j+1)M/q] [ j M / q , ( j + 1 ) M / q ] : the left one by the choice of k j k_j k j , and the right one because k j + 1 k_{j+1} k j + 1 is the first index reaching ( j + 1 ) M / q (j+1)M/q ( j + 1 ) M / q , or because the total is M M M . Since ν \nu ν agrees with μ \mu μ at both endpoints and both measures are nonnegative, μ ( [ x ] ) \mu([x]) μ ([ x ]) and ν ( [ x ] ) \nu([x]) ν ([ x ]) lie in this interval of length M / q M/q M / q . Recording both sides of each crossing is essential when there is a large atom. An interval is the difference of two prefixes, which proves (28) . ∎
Choose a depth-first order of the leaves in V V V of the supplied hierarchy. Every cluster is an interval in this order. For each A ∈ A A \in\mathcal{A} A ∈ A , use the two boundary measures
μ A o u t ( X ) = w G ( A , X ∖ A ) , \mu_A^{\mathrm{out}}(X) = w_G(A, X \setminus A), μ A out ( X ) = w G ( A , X ∖ A ) ,
μ A i n ( X ) = w G ( A ∩ X , V ∖ A ) . \mu_A^{\mathrm{in}}(X) = w_G(A \cap X, V \setminus A). μ A in ( X ) = w G ( A ∩ X , V ∖ A ) .
Both have total mass d A d_A d A ; when d A = 0 d_A = 0 d A = 0 both vanish identically and no queries are needed. Each prefix mass is obtained in at most two additional cut queries using
2 μ A o u t ( X ) = d A + c G ( X ∖ A ) − c G ( A ∪ X ) , 2\mu_A^{\mathrm{out}}(X) = d_A + c_G(X \setminus A) - c_G(A \cup X), 2 μ A out ( X ) = d A + c G ( X ∖ A ) − c G ( A ∪ X ) ,
2 μ A i n ( X ) = d A + c G ( A ∩ X ) − c G ( A ∖ X ) . 2\mu_A^{\mathrm{in}}(X) = d_A + c_G(A \cap X) - c_G(A \setminus X). 2 μ A in ( X ) = d A + c G ( A ∩ X ) − c G ( A ∖ X ) .
Lemma 23 (Completion without a depth factor). For 0 < η < 1 0 < \eta< 1 0 < η < 1 , O ( n η − 1 log n ) O(n\eta^{-1}\log n) O ( n η − 1 log n ) deterministic cut queries construct a nonnegative weighted graph F F F with c F ( A ) = d A c_F(A) = d_A c F ( A ) = d A for every cluster and
∣ M F ( A , B ) − M G ( A , B ) ∣ ≤ η min ( d A , d B ) , M G ( A , B ) = 1 A T L G 1 B . (29) |M_F(A,B) - M_G(A,B)| \le\eta\min(d_A,d_B), \qquad M_G(A,B) = \mathbf{1}_A^{\mathsf{T}}L_G\mathbf{1}_B. \tag*{(29)} ∣ M F ( A , B ) − M G ( A , B ) ∣ ≤ η min ( d A , d B ) , M G ( A , B ) = 1 A T L G 1 B . (29) The graph F F F can be chosen with O ( n η − 1 ) O(n\eta^{-1}) O ( n η − 1 ) positive-weight edges.
Proof. Apply Lemma 22 to both measures of every cluster, with q = ⌈ 2 / η ⌉ q = \lceil2/\eta\rceil q = ⌈ 2/ η ⌉ . Find F F F by nonnegative linear feasibility, requiring all cluster cuts to equal d A d_A d A and all the recorded boundary prefix masses to have their recorded values. These are linear equality constraints in the weights of F F F , and G G G is a feasible solution.
For fixed A A A , every interaction M G ( A , B ) M_G(A,B) M G ( A , B ) is one of
− μ A o u t ( B ) , μ A i n ( B ) , d A − μ A o u t ( B ) , -\mu_A^{\mathrm{out}}(B), \qquad\mu_A^{\mathrm{in}}(B), \qquad d_A - \mu_A^{\mathrm{out}}(B), − μ A out ( B ) , μ A in ( B ) , d A − μ A out ( B ) ,
according as B B B is disjoint from, contained in, or contains A A A ; the diagonal is already exact. The same identities hold for F F F . Since B B B is an interval, Lemma 22 bounds the error by η d A \eta d_A η d A . Swapping A , B A,B A , B bounds it by η d B \eta d_B η d B , giving (29) .
There are O ( n q ) O(nq) O ( n q ) equality constraints. The feasible polytope is bounded because it fixes every singleton weighted degree. An extreme point has at most the rank of the constraint matrix many positive coordinates: otherwise there is a nonzero dependence supported on its positive coordinates, and sufficiently small perturbations in both directions preserve feasibility. Choose an extreme point deterministically to obtain O ( n q ) O(nq) O ( n q ) positive edge weights.
Representation cost controls completion error
Lemma 24 (Error and domination). For every nontrivial cut S S S ,
∣ c F ( S ) − c G ( S ) ∣ ≤ η R ( S ) 2 λ . (30) |c_F(S) - c_G(S)| \le\eta\frac{R(S)^2}{\lambda}. \tag*{(30)} ∣ c F ( S ) − c G ( S ) ∣ ≤ η λ R ( S ) 2 . (30) Moreover R ( S ) ≥ c G ( S ) R(S) \ge c_G(S) R ( S ) ≥ c G ( S ) .
Proof. Take a minimizing binary labeling in (27) . Let A 1 , … , A k A_1,\ldots,A_k A 1 , … , A k be the clusters whose parent edge has different endpoint labels, and let σ i ∈ { − 1 , 1 } \sigma_i \in\{-1,1\} σ i ∈ { − 1 , 1 } be the change of label across that edge, from parent to child. Telescoping along each root path gives
1 S = ℓ ( root ) 1 V + ∑ i = 1 k σ i 1 A i , R ( S ) = ∑ i = 1 k d A i . (31) \mathbf{1}_S = \ell(\operatorname{root})\mathbf{1}_V + \sum_{i=1}^{k}\sigma_i\mathbf{1}_{A_i}, \qquad R(S) = \sum_{i=1}^{k}d_{A_i}. \tag*{(31)} 1 S = ℓ ( root ) 1 V + i = 1 ∑ k σ i 1 A i , R ( S ) = i = 1 ∑ k d A i . (31)
A cut edge whose cluster is ∅ \varnothing ∅ or V V V has d A i = 0 d_{A_i}=0 d A i = 0 and 1 A i ∈ { 0 , 1 V } \mathbf{1}_{A_i}\in\{0,\mathbf{1}_V\} 1 A i ∈ { 0 , 1 V } ; absorb its term into the constant multiple of 1 V \mathbf{1}_V 1 V and drop it from the list, which changes neither R ( S ) R(S) R ( S ) nor the sums below. Every remaining A i A_i A i is a nontrivial shore of G G G , so d A i ≥ λ d_{A_i}\ge\lambda d A i ≥ λ and k ≤ R ( S ) / λ k\le R(S)/\lambda k ≤ R ( S ) / λ . The Laplacians annihilate 1 V \mathbf{1}_V 1 V , so (29) gives
∣ c F ( S ) − c G ( S ) ∣ ≤ η ∑ i , j = 1 k min ( d A i , d A j ) ≤ η k ∑ i = 1 k d A i ≤ η R ( S ) 2 / λ . \begin{aligned}
\lvert c_F(S)-c_G(S)\rvert\le\eta\sum_{i,j=1}^{k}\min(d_{A_i},d_{A_j}) \\
&\le\eta k\sum_{i=1}^{k}d_{A_i}\le\eta R(S)^2/\lambda.
\end{aligned} ∣ c F ( S ) − c G ( S )∣ ≤ η i , j = 1 ∑ k min ( d A i , d A j ) ≤ η k i = 1 ∑ k d A i ≤ η R ( S ) 2 / λ .
Finally, every edge of G G G crossing S S S must cross at least one of the sets A i A_i A i , by (31) . Summing nonnegative edge weights gives c G ( S ) ≤ ∑ i c G ( A i ) = R ( S ) c_G(S)\le\sum_i c_G(A_i)=R(S) c G ( S ) ≤ ∑ i c G ( A i ) = R ( S ) .
An explicit graph preventing artificial small cuts
Lemma 25 (Terminal retraction of a tree). Let T T T be a finite tree with a nonempty terminal set, nonnegative edge capacities c e c_e c e , and nonnegative edge lengths ℓ e \ell_e ℓ e . There is a map f f f from its vertices to its terminals, fixing every terminal, such that
∑ x y ∈ E ( T ) c x y d ℓ ( f ( x ) , f ( y ) ) ≤ 42 ∑ e ∈ E ( T ) c e ℓ e . (32) \sum_{xy\in E(T)}c_{xy}d_\ell(f(x),f(y))\le42\sum_{e\in E(T)}c_e\ell_e. \tag*{(32)} x y ∈ E ( T ) ∑ c x y d ℓ ( f ( x ) , f ( y )) ≤ 42 e ∈ E ( T ) ∑ c e ℓ e . (32)
Proof. First assume all lengths are positive. Root the tree, let h ( x ) h(x) h ( x ) be the length of the root path, and let r ( x ) r(x) r ( x ) be the distance from x x x to its nearest terminal. Fix an order for breaking nearest terminal ties. Choose independent uniform shifts s , t ∈ [ 0 , 1 ) s,t\in[0,1) s , t ∈ [ 0 , 1 ) . For a nonterminal x x x set
j ( x ) = ⌊ log 2 r ( x ) + s ⌋ , Δ ( x ) = 2 j ( x ) − s , b Δ ( x ) = ⌊ 2 h ( x ) Δ + t ⌋ . j(x)=\lfloor\log_2 r(x)+s\rfloor,\qquad\Delta(x)=2^{j(x)-s},\qquad b_{\Delta}(x)=\left\lfloor\frac{2h(x)}{\Delta}+t\right\rfloor. j ( x ) = ⌊ log 2 r ( x ) + s ⌋ , Δ ( x ) = 2 j ( x ) − s , b Δ ( x ) = ⌊ Δ 2 h ( x ) + t ⌋ .
Thus Δ ( x ) ≤ r ( x ) < 2 Δ ( x ) \Delta(x)\le r(x)<2\Delta(x) Δ ( x ) ≤ r ( x ) < 2Δ ( x ) . At this fixed scale, climb from x x x to the highest ancestor in its same height band, and map x x x to a nearest terminal of that ancestor. Map every terminal to itself. The climb has length less than Δ ( x ) / 2 \Delta(x)/2 Δ ( x ) /2 ; the triangle inequality and the fact that r r r is 1-Lipschitz give
d ℓ ( x , f ( x ) ) ≤ 2 r ( x ) . d_\ell(x,f(x))\le2r(x). d ℓ ( x , f ( x )) ≤ 2 r ( x ) .
Consider a tree edge x y xy x y of length δ \delta δ , and put r 0 = min { r ( x ) , r ( y ) } r_0=\min\{r(x),r(y)\} r 0 = min { r ( x ) , r ( y )} . Every choice of shifts satisfies
d ℓ ( f ( x ) , f ( y ) ) ≤ 2 r ( x ) + δ + 2 r ( y ) ≤ 4 r 0 + 3 δ . d_\ell(f(x),f(y))\le2r(x)+\delta+2r(y)\le4r_0+3\delta. d ℓ ( f ( x ) , f ( y )) ≤ 2 r ( x ) + δ + 2 r ( y ) ≤ 4 r 0 + 3 δ .
If δ ≥ r 0 \delta\ge r_0 δ ≥ r 0 this is at most 7 δ 7\delta 7 δ . Otherwise both endpoints are nonterminals. Their scale indices differ with probability at most
∣ log 2 r ( x ) − log 2 r ( y ) ∣ ≤ 2 δ / r 0 . \lvert\log_2r(x)-\log_2r(y)\rvert\le2\delta/r_0. ∣ log 2 r ( x ) − log 2 r ( y )∣ ≤ 2 δ / r 0 .
Conditional on equal scale indices, their common scale satisfies Δ > r 0 / 2 \Delta>r_0/2 Δ > r 0 /2 . The independent band shift separates their bands with probability at most 2 δ / Δ ≤ 4 δ / r 0 2\delta/\Delta\le4\delta/r_0 2 δ /Δ ≤ 4 δ / r 0 . Here we used the elementary fact that a uniformly shifted unit grid separates two real numbers with probability at most their distance. If neither event occurs, the endpoints have the same highest ancestor in their band and hence the same image under f f f . The union bound and 4 r 0 + 3 δ < 7 r 0 4r_0+3\delta<7r_0 4 r 0 + 3 δ < 7 r 0 therefore give
E d ℓ ( f ( x ) , f ( y ) ) ≤ 42 δ . \mathbb{E}\,d_\ell(f(x),f(y))\le42\delta. E d ℓ ( f ( x ) , f ( y )) ≤ 42 δ .
Multiplying by capacities and summing proves that some map satisfies (32) . Only finitely many maps are possible.
For nonnegative lengths replace ℓ \ell ℓ by ℓ + ε \ell+\varepsilon ℓ + ε . The minimum, over the same finite set of terminal-fixing maps, of the left side measured in the original metric is at most 42 ∑ e c e ℓ e + 42 ε ∑ e c e 42\sum_e c_e\ell_e+42\varepsilon\sum_e c_e 42 ∑ e c e ℓ e + 42 ε ∑ e c e for every ε > 0 \varepsilon>0 ε > 0 . Letting ε \varepsilon ε tend to zero proves (32) . Zero capacities require no division and cause no exception.
Lemma 26 (A graph approximating the terminal cuts of a tree). For the known capacitated hierarchy tree there is an explicit nonnegative weighted graph J p r o t J_{\mathrm{prot}} J prot on the terminal set V V V such that
R ( S ) ≤ c J p r o t ( S ) ≤ 42 R ( S ) ( S ⊆ V ) . (33) R(S)\le c_{J_{\mathrm{prot}}}(S)\le42R(S)\qquad(S\subseteq V). \tag*{(33)} R ( S ) ≤ c J prot ( S ) ≤ 42 R ( S ) ( S ⊆ V ) . (33)
The graph can be found deterministically without queries to G G G . More generally we write ρ ≥ 1 \rho\ge1 ρ ≥ 1 for a valid guard quality; we may always take the absolute constant ρ 0 = 42 \rho_0=42 ρ 0 = 42 .
Proof. For each terminal-fixing map f f f , replace a tree edge x y xy x y by the terminal edge f ( x ) f ( y ) f(x)f(y) f ( x ) f ( y ) with the same capacity, dropping loops. Call this terminal graph J f J_f J f , and route its edges on their unique tree paths. Let load f ( e ) \operatorname{load}_f(e) load f ( e ) be the load on tree edge e e e . Exchanging two finite sums gives
∑ e ℓ e load f ( e ) = ∑ x y ∈ E ( T ) c x y d ℓ ( f ( x ) , f ( y ) ) . \sum_e \ell_e\operatorname{load}_f(e)=\sum_{xy\in E(T)}c_{xy}d_\ell(f(x),f(y)). e ∑ ℓ e load f ( e ) = x y ∈ E ( T ) ∑ c x y d ℓ ( f ( x ) , f ( y )) .
Apply finite minimax to the matrix with rows f f f , columns e e e , and entries load f ( e ) − 42 c e \operatorname{load}_f(e)-42c_e load f ( e ) − 42 c e . For every probability distribution on columns, Lemma 25 , with those probabilities as lengths, supplies a row of nonpositive average. Consequently there is a distribution p p p on the finite set of maps with
∑ f p f load f ( e ) ≤ 42 c e \sum_f p_f\operatorname{load}_f(e)\le42c_e f ∑ p f load f ( e ) ≤ 42 c e
for every edge. This statement includes edges of capacity zero.
Put J p r o t = ∑ f p f J f J_{\mathrm{prot}}=\sum_f p_fJ_f J prot = ∑ f p f J f . Pulling a terminal cut back through f f f gives a feasible tree labeling of cost c J f ( S ) c_{J_f}(S) c J f ( S ) , so averaging gives R ( S ) ≤ c J p r o t ( S ) R(S)\le c_{J_{\mathrm{prot}}}(S) R ( S ) ≤ c J prot ( S ) . Conversely fix a minimum tree extension of S S S . Every routed terminal edge crossing S S S uses at least one tree edge cut by this extension. Its expected load bounds give c J p r o t ( S ) ≤ 42 R ( S ) c_{J_{\mathrm{prot}}}(S)\le42R(S) c J prot ( S ) ≤ 42 R ( S ) . A tree with no edges is immediate.
For deterministic computation, enumerate the terminal-fixing maps and solve the finite feasibility linear program for p p p just described, or enumerate terminal cuts and solve directly for edge weights satisfying (33) . All its data are known. The random shifts prove existence only; the query algorithm uses deterministic finite optimization. The construction and its analysis follow the framework of Englert et al. [8 Sections 3–4] , who combine terminal-fixing maps with the same transfer from distance bounds to congestion bounds; their Theorem 3.7 gives constant-quality flow sparsifiers of weighted trees, and hence (33) with some absolute constant. We include the argument to obtain an explicit constant and a cut-only statement.
Proof of Theorem 21 . Query the cluster capacities and compute J p r o t , ρ J_{\mathrm{prot}},\rho J prot , ρ from Lemma 26 . Put
η = 1 100 ρ 2 B 2 , H 0 = F + η J p r o t , \eta=\frac{1}{100\rho^2B^2},\qquad H_0=F+\sqrt{\eta}\,J_{\mathrm{prot}}, η = 100 ρ 2 B 2 1 , H 0 = F + η J prot ,
where F F F is the completion from Lemma 23 . For a nontrivial cut put x = η R ( S ) / λ ( G ) x=\sqrt{\eta}R(S)/\lambda(G) x = η R ( S ) / λ ( G ) . The completion error, nonnegativity of F F F , and the lower bound in (33) imply
c H 0 ( S ) λ ( G ) ≥ max { 0 , 1 − x 2 } + x ≥ 1. \frac{c_{H_0}(S)}{\lambda(G)}\ge\max\{0,1-x^2\}+x\ge1. λ ( G ) c H 0 ( S ) ≥ max { 0 , 1 − x 2 } + x ≥ 1.
For every minimum cut S ∗ S^* S ∗ , which satisfies the promise, the upper bounds give
c H 0 ( S ∗ ) λ ( G ) ≤ 1 + η B 2 + η ρ B = 1 + 1 100 ρ 2 + 1 10 ≤ 111 100 . \frac{c_{H_0}(S^*)}{\lambda(G)}\le1+\eta B^2+\sqrt{\eta}\rho B=1+\frac{1}{100\rho^2}+\frac{1}{10}\le\frac{111}{100}. λ ( G ) c H 0 ( S ∗ ) ≤ 1 + η B 2 + η ρB = 1 + 100 ρ 2 1 + 10 1 ≤ 100 111 .
Thus H 0 H_0 H 0 satisfies (25) and is a weak skeleton. Since ρ = O ( 1 ) \rho= O(1) ρ = O ( 1 ) , the number of queries is O ( n η − 1 log n ) = O ( n B 2 log n ) O(n^{\eta-1}\log n) = O(nB^2\log n) O ( n η − 1 log n ) = O ( n B 2 log n ) .
Coarse completion and hierarchy refinement
We improve the quadratic dependence on the supplied hierarchy bound in Theorem 21 . The refinement uses a tree approximation of an explicit graph. We state that offline ingredient first, use it to prove the refinement bound, and discuss it in § 10.4 .
Coarse completion of the current hierarchy
The one-step construction in Theorem 21 uses quadratically many queries in B B B . A coarser completion can instead be used to improve the hierarchy. The important choice is to give the guard more weight than the minimal value η \sqrt{\eta} η used for the final skeleton.
The offline ingredient is the following lemma, due to Räcke and Shah [21 ] ; see § 10.4 . Put
L ( r ) = ⌈ log 2 ( 2 r ) ⌉ ( r ≥ 1 ) , L ( 0 ) = 1 , K ( r ) = L ( L ( r ) ) . L(r) = \lceil\log_2(2r) \rceil\quad(r \ge1), \qquad L(0) = 1, \qquad K(r) = L(L(r)). L ( r ) = ⌈ log 2 ( 2 r )⌉ ( r ≥ 1 ) , L ( 0 ) = 1 , K ( r ) = L ( L ( r )) .
Thus K ( r ) = ⌈ log 2 ( 2 L ( r ) ) ⌉ K(r) = \lceil\log_2(2L(r)) \rceil K ( r ) = ⌈ log 2 ( 2 L ( r ))⌉ , and L ( r ) K ( r ) ≥ 1 L(r)K(r) \ge1 L ( r ) K ( r ) ≥ 1 always. In natural logarithms, L ( r ) ≤ 3 log ( 2 r ) L(r) \le3\log(2r) L ( r ) ≤ 3 log ( 2 r ) and K ( r ) ≤ 7 log log ( 2 r ) K(r) \le7\log\log(2r) K ( r ) ≤ 7 log log ( 2 r ) for r ≥ 2 r \ge2 r ≥ 2 , so K ( r ) = O ( log log ( 2 r ) ) K(r) = O(\log\log(2r)) K ( r ) = O ( log log ( 2 r )) .
Lemma 28 (An offline hierarchy). There is an absolute constant a 0 a_0 a 0 such that for every explicit nonnegative weighted graph J J J on r ≥ 1 r \ge1 r ≥ 1 vertices there is a canonical hierarchy T J T_J T J with at most 2 r + 1 2r+1 2 r + 1 nodes, height at most 2 L ( r ) 2L(r) 2 L ( r ) , and
c J ( S ) ≤ R T J ( S ) ≤ a ( r ) c J ( S ) ( S ⊆ V ( J ) ) , a ( r ) = a 0 L ( r ) K ( r ) . (34) c_J(S) \le R_{T_J}(S) \le a(r)c_J(S) \qquad(S \subseteq V(J)), \qquad a(r) = a_0L(r)K(r). \tag*{(34)} c J ( S ) ≤ R T J ( S ) ≤ a ( r ) c J ( S ) ( S ⊆ V ( J )) , a ( r ) = a 0 L ( r ) K ( r ) . (34) It can be chosen deterministically from explicit J J J without queries to any other graph. No connectivity or positive-weight assumption is required.
Fix a known uniform bound a = a ( n ) ≥ 1 a = a(n) \ge1 a = a ( n ) ≥ 1 in Lemma 28 , with a ( n ) = a 0 L ( n ) K ( n ) a(n) = a_0L(n)K(n) a ( n ) = a 0 L ( n ) K ( n ) . Fix also the absolute constant ρ 0 = 42 \rho_0 = 42 ρ 0 = 42 such that the guard of Lemma 26 can always be chosen to satisfy
R ( S ) ≤ c J p r o t ( S ) ≤ ρ 0 R ( S ) ( S ⊆ V ) . (35) R(S) \le c_{J_{\mathrm{prot}}}(S) \le\rho_0R(S) \qquad(S \subseteq V). \tag*{(35)} R ( S ) ≤ c J prot ( S ) ≤ ρ 0 R ( S ) ( S ⊆ V ) . (35)
These bounds concern explicit graphs and trees. They are independent of the weights and of the input minimum-cut value.
Transferring a new hierarchy back to the input
Suppose the current canonical hierarchy has terminal function R R R and satisfies R ( S ∗ ) ≤ B λ R(S^*) \le B\lambda R ( S ∗ ) ≤ B λ for every minimum cut S ∗ S^* S ∗ ; fix one such S ∗ S^* S ∗ for the analysis. Obtain a nonnegative completion F F F by Lemma 23 with parameter η \eta η and put
H = F + γ J p r o t , γ > 0. H = F + \gamma J_{\mathrm{prot}}, \qquad\gamma> 0. H = F + γ J prot , γ > 0.
The graph H H H is explicit and has connected positive support, since J p r o t J_{\mathrm{prot}} J prot dominates R R R , and R ( S ) ≥ c G ( S ) > 0 R(S) \ge c_G(S) > 0 R ( S ) ≥ c G ( S ) > 0 for every nontrivial cut. An offline hierarchy of H H H has canonical capacities c H ( A ) c_H(A) c H ( A ) and terminal function R H R_H R H satisfying R H ( S ) ≤ a c H ( S ) R_H(S) \le a c_H(S) R H ( S ) ≤ a c H ( S ) . Keep its topology, query c G ( A ) c_G(A) c G ( A ) for each of its nonroot clusters, and denote the resulting canonical terminal function by R n e w R_{\mathrm{new}} R new .
Lemma 29 (Hierarchy transfer). For every nontrivial cut S S S ,
c G ( S ) ≤ c H ( S ) + η γ 2 λ c H ( S ) 2 , (36) c_G(S) \le c_H(S) + \frac{\eta}{\gamma^2\lambda}c_H(S)^2, \tag*{(36)} c G ( S ) ≤ c H ( S ) + γ 2 λ η c H ( S ) 2 , (36) R n e w ( S ) ≤ R H ( S ) + η γ 2 λ R H ( S ) 2 . (37) R_{\mathrm{new}}(S) \le R_H(S) + \frac{\eta}{\gamma^2\lambda}R_H(S)^2. \tag*{(37)} R new ( S ) ≤ R H ( S ) + γ 2 λ η R H ( S ) 2 . (37) In particular, if
x = a ( 1 + η B 2 + γ ρ 0 B ) , (38) x = a(1+\eta B^2+\gamma\rho_0B), \tag*{(38)} x = a ( 1 + η B 2 + γ ρ 0 B ) , (38) then
R n e w ( S ∗ ) ≤ ( x + η γ 2 x 2 ) λ . (39) R_{\mathrm{new}}(S^*) \le\left(x+\frac{\eta}{\gamma^2}x^2\right)\lambda. \tag*{(39)} R new ( S ∗ ) ≤ ( x + γ 2 η x 2 ) λ . (39) The new hierarchy requires at most 2 n 2n 2 n additional cut queries.
Proof. Nonnegativity of F F F and (35) give c H ( S ) ≥ γ R ( S ) c_H(S) \ge\gamma R(S) c H ( S ) ≥ γ R ( S ) . Lemma 24 therefore implies
c G ( S ) ≤ c F ( S ) + η R ( S ) 2 / λ ≤ c H ( S ) + η c H ( S ) 2 / ( γ 2 λ ) , c_G(S) \le c_F(S) + \eta R(S)^2/\lambda\le c_H(S) + \eta c_H(S)^2/(\gamma^2\lambda), c G ( S ) ≤ c F ( S ) + η R ( S ) 2 / λ ≤ c H ( S ) + η c H ( S ) 2 / ( γ 2 λ ) ,
proving (36) .
Take an optimal labeling of the H H H -hierarchy for S S S . Let A 1 , … , A m A_1,\ldots,A_m A 1 , … , A m be the clusters whose parent edges it cuts and write h i = c H ( A i ) ≥ 0 h_i=c_H(A_i)\ge0 h i = c H ( A i ) ≥ 0 . Use this same labeling after querying the G G G -capacities. Applying the preceding inequality to each A i A_i A i gives
R n e w ( S ) ≤ ∑ i = 1 m c G ( A i ) ≤ ∑ i = 1 m h i + η γ 2 λ ∑ i = 1 m h i 2 ≤ R H ( S ) + η γ 2 λ R H ( S ) 2 . \begin{aligned}
R_{\mathrm{new}}(S) &\le\sum_{i=1}^{m} c_G(A_i) \\
&\le\sum_{i=1}^{m} h_i+\frac{\eta}{\gamma^2\lambda}\sum_{i=1}^{m}h_i^2 \\
&\le R_H(S)+\frac{\eta}{\gamma^2\lambda}R_H(S)^2.
\end{aligned} R new ( S ) ≤ i = 1 ∑ m c G ( A i ) ≤ i = 1 ∑ m h i + γ 2 λ η i = 1 ∑ m h i 2 ≤ R H ( S ) + γ 2 λ η R H ( S ) 2 .
This is a bound on the sum of the queried capacities; no term is multiplied by the number of clusters or the hierarchy depth.
For the fixed minimum cut S ∗ S^* S ∗ , the old completion bound gives
c H ( S ∗ ) ≤ ( 1 + η B 2 + γ ρ 0 B ) λ , R H ( S ∗ ) ≤ x λ . c_H(S^*) \le(1+\eta B^2+\gamma\rho_0B)\lambda,\qquad R_H(S^*)\le x\lambda. c H ( S ∗ ) ≤ ( 1 + η B 2 + γ ρ 0 B ) λ , R H ( S ∗ ) ≤ x λ .
Substitute this in (37) . There are at most 2 n 2n 2 n nonroot clusters, proving the query count.
Halving distortion with linearly many queries in its bound
Lemma 30 (One refinement round). Set
γ = 1 100 a 0 2 ρ 0 2 . (40) \gamma= \frac{1}{100a_0^2\rho_0^2}. \tag*{(40)} γ = 100 a 0 2 ρ 0 2 1 . (40) If B ≥ 1 / γ B \ge1/\gamma B ≥ 1/ γ , a canonical hierarchy with promise B λ B\lambda B λ for every minimum cut can be replaced by one with promise ( B / 2 ) λ (B/2)\lambda ( B /2 ) λ for every minimum cut, using O ( n a 2 B log ( 2 n ) ) O(na^2B\log(2n)) O ( n a 2 B log ( 2 n )) cut queries.
Proof. Use the preceding construction with η = γ / B \eta= \gamma/B η = γ / B . In particular 0 < η < 1 0 < \eta< 1 0 < η < 1 . Since γ B ≥ 1 \gamma B \ge1 γ B ≥ 1 and ρ 0 ≥ 1 \rho_0 \ge1 ρ 0 ≥ 1 , the value in (38) satisfies
x = a ( 1 + γ B + γ ρ 0 B ) ≤ 3 a ρ 0 γ B . x = a(1+\gamma B+\gamma\rho_0B) \le3a\rho_0\gamma B. x = a ( 1 + γ B + γ ρ 0 B ) ≤ 3 a ρ 0 γ B .
Consequently
x + η γ 2 x 2 = x + x 2 γ B ≤ ( 3 a ρ 0 + 9 a 2 ρ 0 2 ) γ B \begin{aligned}
x+\frac{\eta}{\gamma^2}x^2=x+\frac{x^2}{\gamma B} \\
&\le(3a\rho_0+9a^2\rho_0^2)\gamma B
\end{aligned} x + γ 2 η x 2 = x + γ B x 2 ≤ ( 3 a ρ 0 + 9 a 2 ρ 0 2 ) γ B
≤ 12 a 2 ρ 0 2 γ B = 12 100 B < B 2 . \le12a^2\rho_0^2\gamma B=\frac{12}{100}B<\frac{B}{2}. ≤ 12 a 2 ρ 0 2 γ B = 100 12 B < 2 B .
Lemma 29 proves the new promise. The completion costs O ( n η − 1 log ( 2 n ) ) = O ( n a 2 B log ( 2 n ) ) O(n\eta^{-1}\log(2n))=O(na^2B\log(2n)) O ( n η − 1 log ( 2 n )) = O ( n a 2 B log ( 2 n )) queries, since ρ 0 \rho_0 ρ 0 is an absolute constant. The guard and the H H H -hierarchy use explicit data only, and querying the new cluster capacities adds O ( n ) O(n) O ( n ) queries. Neither S ∗ S^* S ∗ nor λ \lambda λ is queried or used to choose the parameters. □
Theorem 31 (Linear dependence on the hierarchy bound). Suppose λ > 0 \lambda> 0 λ > 0 and a canonical hierarchy on n ≥ 2 n \ge2 n ≥ 2 vertices is supplied, together with B ≥ 1 B \ge1 B ≥ 1 such that R ( S ∗ ) ≤ B λ R(S^*) \le B\lambda R ( S ∗ ) ≤ B λ for every minimum cut S ∗ S^* S ∗ . A weak skeleton can be constructed deterministically using
O ( n B log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O\left(nB\log^3(2n)(\log\log(2n))^2\right) O ( n B log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) cut queries, independently of hierarchy depth and weight spread. Offline computation may be exponential.
Proof. Query the initial cluster capacities if they are not already known. Keep a , ρ 0 , γ a,\rho_0,\gamma a , ρ 0 , γ fixed. While the current promised bound is at least 1 / γ 1/\gamma 1/ γ , apply Lemma 30, and replace B B B by B / 2 B/2 B /2 . Every original minimum cut satisfies every new promise, so the process is valid without ever identifying these cuts. The sum of the successive promised bounds is at most twice the initial one. Refinement therefore costs O ( n a 2 B log ( 2 n ) ) O(na^2B\log(2n)) O ( n a 2 B log ( 2 n )) queries in total.
At termination let b < 1 / γ b < 1/\gamma b < 1/ γ be the remaining bound. Apply Theorem 21 to this last hierarchy. Its cost is
O ( n b 2 log ( 2 n ) ) = O ( n b γ − 1 log ( 2 n ) ) = O ( n a 2 B log ( 2 n ) ) . O(nb^2\log(2n))=O(nb\gamma^{-1}\log(2n))=O(na^2B\log(2n)). O ( n b 2 log ( 2 n )) = O ( nb γ − 1 log ( 2 n )) = O ( n a 2 B log ( 2 n )) .
This also covers the case where the initial B B B is below the stopping threshold and no refinement is needed. Finally a 2 = a 0 2 L ( n ) 2 K ( n ) 2 = O ( log 2 ( 2 n ) ( log log ( 2 n ) ) 2 ) a^2=a_0^2L(n)^2K(n)^2=O(\log^2(2n)(\log\log(2n))^2) a 2 = a 0 2 L ( n ) 2 K ( n ) 2 = O ( log 2 ( 2 n ) ( log log ( 2 n ) ) 2 ) , giving the stated bound. The final application of Theorem 21 supplies all the weak-skeleton guarantees; intermediate completions need not themselves be weak skeletons.
The query parameters can be integers throughout: use q = ⌈ 2 B / γ ⌉ q=\lceil2B/\gamma\rceil q = ⌈ 2 B / γ ⌉ in a refinement round and q = ⌈ 200 ρ 0 b 2 ⌉ q=\lceil200\rho_0b^2\rceil q = ⌈ 200 ρ 0 b 2 ⌉ in the final completion. Then the completion error parameter 2 / q 2/q 2/ q is no larger than the one used in the corresponding proof. The ceilings change only absolute constants. Because the promised bounds sum to at most 2 B 2B 2 B , no factor log B \log B log B is charged for the number of rounds. With the fixed value γ − 1 = 100 a 0 2 ρ 0 2 L ( n ) 2 K ( n ) 2 \gamma^{-1}=100a_0^2\rho_0^2L(n)^2K(n)^2 γ − 1 = 100 a 0 2 ρ 0 2 L ( n ) 2 K ( n ) 2 , this is a public O ( n B L ( n ) 3 K ( n ) 2 ) O(nBL(n)^3K(n)^2) O ( n B L ( n ) 3 K ( n ) 2 ) budget determined by n n n , B B B and the supplied hierarchy, before the hidden graph is known.
Remark 32 (All minimum cuts at once). The universal promise costs nothing. The construction never reads a minimum cut: every parameter depends on B B B and explicit data, and each refinement round and the final completion are fixed before the analysis picks an S ∗ S^* S ∗ . The proofs of Theorem 21 , Lemma 30 and Theorem 31 are therefore pointwise in S ∗ S^* S ∗ , and a single run yields (25) for every minimum cut simultaneously. The tree cut sparsifier of Theorem 7 satisfies R ( S ) ≤ α c ( S ) R(S) \le\alpha c(S) R ( S ) ≤ α c ( S ) for every shore, so the promise holds for every minimum cut of the quotient.
Theorem 6 follows. Bring the given B B B -tree cut sparsifier into normal form as in § 4 ; this is a canonical hierarchy with O ( n ) O(n) O ( n ) nodes and c G ( S ) ≤ R ( S ) ≤ B c G ( S ) c_G(S) \le R(S) \le Bc_G(S) c G ( S ) ≤ R ( S ) ≤ B c G ( S ) for every shore, so the promise R ( S ∗ ) ≤ B λ R(S^*) \le B\lambda R ( S ∗ ) ≤ B λ holds for every minimum cut, and Theorem 31 gives the weak skeleton.
Remark 33 (Calibrating the constants from explicit data). The constants a 0 a_0 a 0 and ρ 0 = 42 \rho_0=42 ρ 0 = 42 above suffice. Alternatively, an implementation can calibrate smaller constants from explicit data. Use the guard’s computed quality ρ \rho ρ , maintain a trial hierarchy distortion a ^ ≥ 1 \hat{a} \ge1 a ^ ≥ 1 , initially 1 1 1 , and set γ = ( 100 a ^ 2 ρ 2 ) − 1 \gamma=(100\hat{a}^2\rho^2)^{-1} γ = ( 100 a ^ 2 ρ 2 ) − 1 . If B < 1 / γ B < 1/\gamma B < 1/ γ , finish with Theorem 21 . Otherwise construct F , H F,H F , H as above and measure the chosen H H H -hierarchy’s exact distortion offline. If it exceeds a ^ \hat{a} a ^ , double a ^ \hat{a} a ^ and retry; if it does not, query the new cluster capacities and halve B B B . Choose the H H H -hierarchy by the minimization in Lemma 28 , so the trial bound never exceeds 2 max { 1 , a ( n ) } 2\max\{1,a(n)\} 2 max { 1 , a ( n )} . Also ρ ≤ ρ 0 \rho\le\rho_0 ρ ≤ ρ 0 . The retry costs are geometric in a ^ 2 \hat{a}^2 a ^ 2 , while accepted rounds are geometric in B B B , giving the same total query bound. All tests in this implementation use known explicit graphs.
Offline hierarchies of explicit graphs
Räcke and Shah [21 ] show that every graph has a tree cut sparsifier of quality O ( β log n log log n ) O(\beta\log n\log\log n) O ( β log n log log n ) , where β \beta β is the approximation factor of the sparsest-cut routine used in their construction. With exact sparsest cuts, β = 1 \beta=1 β = 1 , and this is the existential bound of Lemma 28; their polynomial-time construction uses β = O ( log n ) \beta=O(\sqrt{\log n}) β = O ( log n ) . Their tree is a hierarchy with singleton leaves in which the children of each cluster partition it into parts of at most half its size, so it has at most 2 r − 1 2r-1 2 r − 1 nodes and height less than L ( r ) L(r) L ( r ) , and the normalization of § 4 gives it canonical capacities without increasing its distortion. A formalized, cut-only version of their argument, with exact finite minimization in place of sparsest-cut approximation, gives a 0 = 268 a_0=268 a 0 = 268 ; it is stated with the slack of Lemma 28 , at most 2 r + 1 2r+1 2 r + 1 nodes and height at most 2 L ( r ) 2L(r) 2 L ( r ) , and its nodes of V ( J ) V(J) V ( J ) are childless but need not be the only leaves. Since J J J is explicit, the lemma can be applied deterministically: enumerate all hierarchies with these labeled leaves and no unary nodes, and choose one minimizing its worst cut distortion, with fixed tie-breaking. A positive tree cost on a zero J J J -cut has infinite distortion; a zero cost on both sides imposes no constraint. The lemma guarantees a finite answer obeying (34) , even for disconnected positive support or the all-zero graph.
Discovering a hierarchy for arbitrary weights
We now construct an initial hierarchy to which Theorem 31 applies. Weighted degree normalization gives a polynomial ratio between the largest weighted degree and a witnessed cut bound. Residual rounding then either verifies the required hierarchy bound or supplies a smaller witnessed cut bound that forces the next normalization to halve the graph. This test is computed from explicit data and queried cut values; it is not the minimum-cut certificate of § 7 .
Terminal compression of explicit trees
Lemma 34 (Terminal compression of a tree). Let T T T be a finite tree with nonnegative edge capacities and let C C C be a nonempty set of its vertices, with q = ∣ C ∣ q = |C| q = ∣ C ∣ . There is a fixed contraction map π : V ( T ) → V ( T ′ ) \pi: V(T) \to V(T') π : V ( T ) → V ( T ′ ) , injective on C C C , with
∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , |V(T')| \le\max\{1, 2q - 2\}, ∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , such that, for every assignment of binary labels to C C C , some minimum-cost extension to T T T is constant on each fiber of π \pi π . The contraction is computable from the explicit tree and is independent of the terminal labels.
Proof. Repeatedly contract leaves outside C C C into their neighbors. This prunes the tree down to the minimal subtree joining C C C ; every removed branch can be labeled uniformly with its attachment vertex at zero cost. If q = 1 q = 1 q = 1 , this leaves one vertex and proves the assertion.
For q ≥ 2 q \ge2 q ≥ 2 , every leaf of the pruned tree lies in C C C . On each maximal path whose internal vertices lie outside C C C and have degree two, choose a minimum-capacity edge, breaking ties deterministically, and contract all other edges of the path. For fixed endpoint labels, the optimum path cost is zero if the labels agree and the minimum edge capacity if they differ. Both optima are attained with all contracted edges uncut. The choices on different paths are compatible, so the fixed contraction preserves the minimum extension cost for every labeling of C C C . In the resulting tree T ′ T' T ′ with n ′ n' n ′ vertices, every vertex outside C C C has degree at least three and every vertex of C C C has degree at least one. Summing degrees gives 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) 2(n' - 1) \ge q + 3(n' - q) 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) , so n ′ ≤ 2 q − 2 n' \le2q - 2 n ′ ≤ 2 q − 2 . The argument also applies when some capacities are zero, and the terminals need not be leaves.
Safe contractions and weighted degree normalization
We work on a current quotient of the input. Write N N N for its number of vertices, G G G for this quotient, and δ = min v d v \delta= \min_v d_v δ = min v d v . Every query to G G G is one original query on a union of contracted classes. We maintain all weighted degrees and a known nontrivial cut of value Λ \Lambda Λ , with
0 < λ ≤ Λ ≤ δ . (41) 0 < \lambda\le\Lambda\le\delta. \tag*{(41)} 0 < λ ≤ Λ ≤ δ . (41)
Initially query the weighted degrees and use a singleton of minimum weighted degree. An individually learned edge with weight strictly greater than Λ \Lambda Λ can be contracted: no cut of value at most Λ \Lambda Λ , including every minimum cut and the witness for Λ \Lambda Λ , can separate its endpoints.
Lemma 35 (Weighted degree normalization). Using safe contractions, one can obtain a quotient with N ′ N' N ′ vertices and an updated witnessed bound Λ ′ ≤ Λ \Lambda' \le\Lambda Λ ′ ≤ Λ such that
0 < λ ≤ Λ ′ ≤ min v d v , max v d v ≤ ( N ′ − 1 ) Λ ′ . (42) 0 < \lambda\le\Lambda' \le\min_v d_v,\qquad\max_v d_v \le(N' - 1)\Lambda'. \tag*{(42)} 0 < λ ≤ Λ ′ ≤ v min d v , v max d v ≤ ( N ′ − 1 ) Λ ′ . (42) Every original minimum cut survives. With the weighted degrees already known, the query cost is O ( ( N − N ′ ) log ( 2 N ) ) O((N - N')\log(2N)) O (( N − N ′ ) log ( 2 N )) . Across all invocations in one algorithm, the total normalization cost is O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) .
Proof. While some vertex v v v has d v > ( N − 1 ) Λ d_v > (N - 1)\Lambda d v > ( N − 1 ) Λ , find an edge v u vu v u of weight greater than Λ \Lambda Λ as follows. Start with candidates W = V ∖ { v } W = V \setminus\{v\} W = V ∖ { v } and known total mass w G ( v , W ) = d v w_G(v,W) = d_v w G ( v , W ) = d v . Split W W W into two nearly equal nonempty parts. Evaluate one part’s mass using
2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v } ) , v ∉ X , 2w_G(v,X) = d_v + c_G(X) - c_G(X \cup\{v\}),\qquad v \notin X, 2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v }) , v ∈ / X , @page 35/57 starts_mid=0 ends_mid=1
Terminal compression of explicit trees Lemma 34 (Terminal compression of a tree). Let T T T be a finite tree with nonnegative edge capacities and let C C C be a nonempty set of its vertices, with q = ∣ C ∣ q = |C| q = ∣ C ∣ . There is a fixed contraction map π : V ( T ) → V ( T ′ ) \pi: V(T) \to V(T') π : V ( T ) → V ( T ′ ) , injective on C C C , with
∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , |V(T')| \le\max\{1, 2q - 2\}, ∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , such that, for every assignment of binary labels to C C C , some minimum-cost extension to T T T is constant on each fiber of π \pi π . The contraction is computable from the explicit tree and is independent of the terminal labels.
Proof. Repeatedly contract leaves outside C C C into their neighbors. This prunes the tree down to the minimal subtree joining C C C ; every removed branch can be labeled uniformly with its attachment vertex at zero cost. If q = 1 q = 1 q = 1 , this leaves one vertex and proves the assertion.
For q ≥ 2 q \ge2 q ≥ 2 , every leaf of the pruned tree lies in C C C . On each maximal path whose internal vertices lie outside C C C and have degree two, choose a minimum-capacity edge, breaking ties deterministically, and contract all other edges of the path. For fixed endpoint labels, the optimum path cost is zero if the labels agree and the minimum edge capacity if they differ. Both optima are attained with all contracted edges uncut. The choices on different paths are compatible, so the fixed contraction preserves the minimum extension cost for every labeling of C C C . In the resulting tree T ′ T' T ′ with n ′ n' n ′ vertices, every vertex outside C C C has degree at least three and every vertex of C C C has degree at least one. Summing degrees gives 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) 2(n' - 1) \ge q + 3(n' - q) 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) , so n ′ ≤ 2 q − 2 n' \le2q - 2 n ′ ≤ 2 q − 2 . The argument also applies when some capacities are zero, and the terminals need not be leaves.
Safe contractions and weighted degree normalization We work on a current quotient of the input. Write N N N for its number of vertices, G G G for this quotient, and δ = min v d v \delta= \min_v d_v δ = min v d v . Every query to G G G is one original query on a union of contracted classes. We maintain all weighted degrees and a known nontrivial cut of value Λ \Lambda Λ , with
0 < λ ≤ Λ ≤ δ . (43) 0 < \lambda\le\Lambda\le\delta. \tag*{(43)} 0 < λ ≤ Λ ≤ δ . (43) Initially query the weighted degrees and use a singleton of minimum weighted degree. An individually learned edge with weight strictly greater than Λ \Lambda Λ can be contracted: no cut of value at most Λ \Lambda Λ , including every minimum cut and the witness for Λ \Lambda Λ , can separate its endpoints.
Lemma 35 (Weighted degree normalization). Using safe contractions, one can obtain a quotient with N ′ N' N ′ vertices and an updated witnessed bound Λ ′ ≤ Λ \Lambda' \le\Lambda Λ ′ ≤ Λ such that
0 < λ ≤ Λ ′ ≤ min v d v , max v d v ≤ ( N ′ − 1 ) Λ ′ . (44) 0 < \lambda\le\Lambda' \le\min_v d_v,\qquad\max_v d_v \le(N' - 1)\Lambda'. \tag*{(44)} 0 < λ ≤ Λ ′ ≤ v min d v , v max d v ≤ ( N ′ − 1 ) Λ ′ . (44) Every original minimum cut survives. With the weighted degrees already known, the query cost is O ( ( N − N ′ ) log ( 2 N ) ) O((N - N')\log(2N)) O (( N − N ′ ) log ( 2 N )) . Across all invocations in one algorithm, the total normalization cost is m a t h i t O ( n log ( 2 n ) ) mathit{O}(n\log(2n)) ma t hi t O ( n log ( 2 n )) .
Proof. While some vertex v v v has d v > ( N − 1 ) Λ d_v > (N - 1)\Lambda d v > ( N − 1 ) Λ , find an edge v u vu v u of weight greater than Λ \Lambda Λ as follows. Start with candidates W = V ∖ { v } W = V \setminus\{v\} W = V ∖ { v } and known total mass w G ( v , W ) = d v w_G(v,W) = d_v w G ( v , W ) = d v . Split W W W into two nearly equal nonempty parts. Evaluate one part’s mass using
2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v } ) , v ∉ X , 2w_G(v,X) = d_v + c_G(X) - c_G(X \cup\{v\}),\qquad v \notin X, 2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v }) , v ∈ / X , @page 35/57 starts_mid=0 ends_mid=1
Terminal compression of explicit trees Lemma 34 (Terminal compression of a tree). Let T T T be a finite tree with nonnegative edge capacities and let C C C be a nonempty set of its vertices, with q = ∣ C ∣ q = |C| q = ∣ C ∣ . There is a fixed contraction map π : V ( T ) → V ( T ′ ) \pi: V(T) \to V(T') π : V ( T ) → V ( T ′ ) , injective on C C C , with
∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , |V(T')| \le\max\{1, 2q - 2\}, ∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , such that, for every assignment of binary labels to C C C , some minimum-cost extension to T T T is constant on each fiber of π \pi π . The contraction is computable from the explicit tree and is independent of the terminal labels.
Proof. Repeatedly contract leaves outside C C C into their neighbors. This prunes the tree down to the minimal subtree joining C C C ; every removed branch can be labeled uniformly with its attachment vertex at zero cost. If q = 1 q = 1 q = 1 , this leaves one vertex and proves the assertion.
For q ≥ 2 q \ge2 q ≥ 2 , every leaf of the pruned tree lies in C C C . On each maximal path whose internal vertices lie outside C C C and have degree two, choose a minimum-capacity edge, breaking ties deterministically, and contract all other edges of the path. For fixed endpoint labels, the optimum path cost is zero if the labels agree and the minimum edge capacity if they differ. Both optima are attained with all contracted edges uncut. The choices on different paths are compatible, so the fixed contraction preserves the minimum extension cost for every labeling of C C C . In the resulting tree T ′ T' T ′ with n ′ n' n ′ vertices, every vertex outside C C C has degree at least three and every vertex of C C C has degree at least one. Summing degrees gives 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) 2(n' - 1) \ge q + 3(n' - q) 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) , so n ′ ≤ 2 q − 2 n' \le2q - 2 n ′ ≤ 2 q − 2 . The argument also applies when some capacities are zero, and the terminals need not be leaves.
Safe contractions and weighted degree normalization We work on a current quotient of the input. Write N N N for its number of vertices, G G G for this quotient, and δ = min v d v \delta= \min_v d_v δ = min v d v . Every query to G G G is one original query on a union of contracted classes. We maintain all weighted degrees and a known nontrivial cut of value Λ \Lambda Λ , with
0 < λ ≤ Λ ≤ δ . (45) 0 < \lambda\le\Lambda\le\delta. \tag*{(45)} 0 < λ ≤ Λ ≤ δ . (45) Initially query the weighted degrees and use a singleton of minimum weighted degree. An individually learned edge with weight strictly greater than Λ \Lambda Λ can be contracted: no cut of value at most Λ \Lambda Λ , including every minimum cut and the witness for Λ \Lambda Λ , can separate its endpoints.
Lemma 35 (Weighted degree normalization). Using safe contractions, one can obtain a quotient with N ′ N' N ′ vertices and an updated witnessed bound Λ ′ ≤ Λ \Lambda' \le\Lambda Λ ′ ≤ Λ such that
0 < λ ≤ Λ ′ ≤ min v d v , max v d v ≤ ( N ′ − 1 ) Λ ′ . (46) 0 < \lambda\le\Lambda' \le\min_v d_v,\qquad\max_v d_v \le(N' - 1)\Lambda'. \tag*{(46)} 0 < λ ≤ Λ ′ ≤ v min d v , v max d v ≤ ( N ′ − 1 ) Λ ′ . (46) Every original minimum cut survives. With the weighted degrees already known, the query cost is O ( ( N − N ′ ) log ( 2 N ) ) O((N - N')\log(2N)) O (( N − N ′ ) log ( 2 N )) . Across all invocations in one algorithm, the total normalization cost is O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) .
Proof. While some vertex v v v has d v > ( N − 1 ) Λ d_v > (N - 1)\Lambda d v > ( N − 1 ) Λ , find an edge v u vu v u of weight greater than Λ \Lambda Λ as follows. Start with candidates W = V ∖ { v } W = V \setminus\{v\} W = V ∖ { v } and known total mass w G ( v , W ) = d v w_G(v,W) = d_v w G ( v , W ) = d v . Split W W W into two nearly equal nonempty parts. Evaluate one part’s mass using
2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v } ) , v ∉ X , 2w_G(v,X) = d_v + c_G(X) - c_G(X \cup\{v\}),\qquad v \notin X, 2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v }) , v ∈ / X , @page 35/57 starts_mid=0 ends_mid=1
Terminal compression of explicit trees Lemma 34 (Terminal compression of a tree). Let T T T be a finite tree with nonnegative edge capacities and let C C C be a nonempty set of its vertices, with q = ∣ C ∣ q = |C| q = ∣ C ∣ . There is a fixed contraction map π : V ( T ) → V ( T ′ ) \pi: V(T) \to V(T') π : V ( T ) → V ( T ′ ) , injective on C C C , with
∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , |V(T')| \le\max\{1, 2q - 2\}, ∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , such that, for every assignment of binary labels to C C C , some minimum-cost extension to T T T is constant on each fiber of π \pi π . The contraction is computable from the explicit tree and is independent of the terminal labels.
Proof. Repeatedly contract leaves outside C C C into their neighbors. This prunes the tree down to the minimal subtree joining C C C ; every removed branch can be labeled uniformly with its attachment vertex at zero cost. If q = 1 q = 1 q = 1 , this leaves one vertex and proves the assertion.
For q ≥ 2 q \ge2 q ≥ 2 , every leaf of the pruned tree lies in C C C . On each maximal path whose internal vertices lie outside C C C and have degree two, choose a minimum-capacity edge, breaking ties deterministically, and contract all other edges of the path. For fixed endpoint labels, the optimum path cost is zero if the labels agree and the minimum edge capacity if they differ. Both optima are attained with all contracted edges uncut. The choices on different paths are compatible, so the fixed contraction preserves the minimum extension cost for every labeling of C C C . In the resulting tree T ′ T' T ′ with n ′ n' n ′ vertices, every vertex outside C C C has degree at least three and every vertex of C C C has degree at least one. Summing degrees gives 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) 2(n' - 1) \ge q + 3(n' - q) 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) , so n ′ ≤ 2 q − 2 n' \le2q - 2 n ′ ≤ 2 q − 2 . The argument also applies when some capacities are zero, and the terminals need not be leaves.
Safe contractions and weighted degree normalization We work on a current quotient of the input. Write N N N for its number of vertices, G G G for this quotient, and δ = min v d v \delta= \min_v d_v δ = min v d v . Every query to G G G is one original query on a union of contracted classes. We maintain all weighted degrees and a known nontrivial cut of value Λ \Lambda Λ , with
0 < λ ≤ Λ ≤ δ . (47) 0 < \lambda\le\Lambda\le\delta. \tag*{(47)} 0 < λ ≤ Λ ≤ δ . (47) Initially query the weighted degrees and use a singleton of minimum weighted degree. An individually learned edge with weight strictly greater than Λ \Lambda Λ can be contracted: no cut of value at most Λ \Lambda Λ , including every minimum cut and the witness for Λ \Lambda Λ , can separate its endpoints.
Lemma 35 (Weighted degree normalization). Using safe contractions, one can obtain a quotient with N ′ N' N ′ vertices and an updated witnessed bound Λ ′ ≤ Λ \Lambda' \le\Lambda Λ ′ ≤ Λ such that
0 < λ ≤ Λ ′ ≤ min v d v , max v d v ≤ ( N ′ − 1 ) Λ ′ . (48) 0 < \lambda\le\Lambda' \le\min_v d_v,\qquad\max_v d_v \le(N' - 1)\Lambda'. \tag*{(48)} 0 < λ ≤ Λ ′ ≤ v min d v , v max d v ≤ ( N ′ − 1 ) Λ ′ . (48) Every original minimum cut survives. With the weighted degrees already known, the query cost is O ( ( N − N ′ ) log ( 2 N ) ) O((N - N')\log(2N)) O (( N − N ′ ) log ( 2 N )) . Across all invocations in one algorithm, the total normalization cost is O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) .
Proof. While some vertex v v v has d v > ( N − 1 ) Λ d_v > (N - 1)\Lambda d v > ( N − 1 ) Λ , find an edge v u vu v u of weight greater than Λ \Lambda Λ as follows. Start with candidates W = V ∖ { v } W = V \setminus\{v\} W = V ∖ { v } and known total mass w G ( v , W ) = d v w_G(v,W) = d_v w G ( v , W ) = d v . Split W W W into two nearly equal nonempty parts. Evaluate one part’s mass using
2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v } ) , v ∉ X , 2w_G(v,X) = d_v + c_G(X) - c_G(X \cup\{v\}),\qquad v \notin X, 2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v }) , v ∈ / X , @page 35/57 starts_mid=0 ends_mid=1
Terminal compression of explicit trees Lemma 34 (Terminal compression of a tree). Let T T T be a finite tree with nonnegative edge capacities and let C C C be a nonempty set of its vertices, with q = ∣ C ∣ q = |C| q = ∣ C ∣ . There is a fixed contraction map π : V ( T ) → V ( T ′ ) \pi: V(T) \to V(T') π : V ( T ) → V ( T ′ ) , injective on C C C , with
∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , |V(T')| \le\max\{1, 2q - 2\}, ∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , such that, for every assignment of binary labels to C C C , some minimum-cost extension to T T T is constant on each fiber of π \pi π . The contraction is computable from the explicit tree and is independent of the terminal labels.
Proof. Repeatedly contract leaves outside C C C into their neighbors. This prunes the tree down to the minimal subtree joining C C C ; every removed branch can be labeled uniformly with its attachment vertex at zero cost. If q = 1 q = 1 q = 1 , this leaves one vertex and proves the assertion.
For q ≥ 2 q \ge2 q ≥ 2 , every leaf of the pruned tree lies in C C C . On each maximal path whose internal vertices lie outside C C C and have degree two, choose a minimum-capacity edge, breaking ties deterministically, and contract all other edges of the path. For fixed endpoint labels, the optimum path cost is zero if the labels agree and the minimum edge capacity if they differ. Both optima are attained with all contracted edges uncut. The choices on different paths are compatible, so the fixed contraction preserves the minimum extension cost for every labeling of C C C . In the resulting tree T ′ T' T ′ with n ′ n' n ′ vertices, every vertex outside C C C has degree at least three and every vertex of C C C has degree at least one. Summing degrees gives 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) 2(n' - 1) \ge q + 3(n' - q) 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) , so n ′ ≤ 2 q − 2 n' \le2q - 2 n ′ ≤ 2 q − 2 . The argument also applies when some capacities are zero, and the terminals need not be leaves.
Safe contractions and weighted degree normalization We work on a current quotient of the input. Write N N N for its number of vertices, G G G for this quotient, and δ = min v d v \delta= \min_v d_v δ = min v d v . Every query to G G G is one original query on a union of contracted classes. We maintain all weighted degrees and a known nontrivial cut of value Λ \Lambda Λ , with
0 < λ ≤ Λ ≤ δ . (49) 0 < \lambda\le\Lambda\le\delta. \tag*{(49)} 0 < λ ≤ Λ ≤ δ . (49) Initially query the weighted degrees and use a singleton of minimum weighted degree. An individually learned edge with weight strictly greater than Λ \Lambda Λ can be contracted: no cut of value at most Λ \Lambda Λ , including every minimum cut and the witness for Λ \Lambda Λ , can separate its endpoints.
Lemma 35 (Weighted degree normalization). Using safe contractions, one can obtain a quotient with N ′ N' N ′ vertices and an updated witnessed bound Λ ′ ≤ Λ \Lambda' \le\Lambda Λ ′ ≤ Λ such that
0 < λ ≤ Λ ′ ≤ min v d v , max v d v ≤ ( N ′ − 1 ) Λ ′ . (50) 0 < \lambda\le\Lambda' \le\min_v d_v,\qquad\max_v d_v \le(N' - 1)\Lambda'. \tag*{(50)} 0 < λ ≤ Λ ′ ≤ v min d v , v max d v ≤ ( N ′ − 1 ) Λ ′ . (50) Every original minimum cut survives. With the weighted degrees already known, the query cost is O ( ( N − N ′ ) log ( 2 N ) ) O((N - N')\log(2N)) O (( N − N ′ ) log ( 2 N )) . Across all invocations in one algorithm, the total normalization cost is O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) .
Proof. While some vertex v v v has d v > ( N − 1 ) Λ d_v > (N - 1)\Lambda d v > ( N − 1 ) Λ , find an edge v u vu v u of weight greater than Λ \Lambda Λ as follows. Start with candidates W = V ∖ { v } W = V \setminus\{v\} W = V ∖ { v } and known total mass w G ( v , W ) = d v w_G(v,W) = d_v w G ( v , W ) = d v . Split W W W into two nearly equal nonempty parts. Evaluate one part’s mass using
2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v } ) , v ∉ X , 2w_G(v,X) = d_v + c_G(X) - c_G(X \cup\{v\}),\qquad v \notin X, 2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v }) , v ∈ / X , @page 35/57 starts_mid=0 ends_mid=1
Terminal compression of explicit trees Lemma 34 (Terminal compression of a tree). Let T T T be a finite tree with nonnegative edge capacities and let C C C be a nonempty set of its vertices, with q = ∣ C ∣ q = |C| q = ∣ C ∣ . There is a fixed contraction map π : V ( T ) → V ( T ′ ) \pi: V(T) \to V(T') π : V ( T ) → V ( T ′ ) , injective on C C C , with
∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , |V(T')| \le\max\{1, 2q - 2\}, ∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , such that, for every assignment of binary labels to C C C , some minimum-cost extension to T T T is constant on each fiber of π \pi π . The contraction is computable from the explicit tree and is independent of the terminal labels.
Proof. Repeatedly contract leaves outside C C C into their neighbors. This prunes the tree down to the minimal subtree joining C C C ; every removed branch can be labeled uniformly with its attachment vertex at zero cost. If q = 1 q = 1 q = 1 , this leaves one vertex and proves the assertion.
For q ≥ 2 q \ge2 q ≥ 2 , every leaf of the pruned tree lies in C C C . On each maximal path whose internal vertices lie outside C C C and have degree two, choose a minimum-capacity edge, breaking ties deterministically, and contract all other edges of the path. For fixed endpoint labels, the optimum path cost is zero if the labels agree and the minimum edge capacity if they differ. Both optima are attained with all contracted edges uncut. The choices on different paths are compatible, so the fixed contraction preserves the minimum extension cost for every labeling of C C C . In the resulting tree T ′ T' T ′ with n ′ n' n ′ vertices, every vertex outside C C C has degree at least three and every vertex of C C C has degree at least one. Summing degrees gives 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) 2(n' - 1) \ge q + 3(n' - q) 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) , so n ′ ≤ 2 q − 2 n' \le2q - 2 n ′ ≤ 2 q − 2 . The argument also applies when some capacities are zero, and the terminals need not be leaves.
Safe contractions and weighted degree normalization We work on a current quotient of the input. Write N N N for its number of vertices, G G G for this quotient, and δ = min v d v \delta= \min_v d_v δ = min v d v . Every query to G G G is one original query on a union of contracted classes. We maintain all weighted degrees and a known nontrivial cut of value Λ \Lambda Λ , with
0 < λ ≤ Λ ≤ δ . (51) 0 < \lambda\le\Lambda\le\delta. \tag*{(51)} 0 < λ ≤ Λ ≤ δ . (51) Initially query the weighted degrees and use a singleton of minimum weighted degree. An individually learned edge with weight strictly greater than Λ \Lambda Λ can be contracted: no cut of value at most Λ \Lambda Λ , including every minimum cut and the witness for Λ \Lambda Λ , can separate its endpoints.
Lemma 35 (Weighted degree normalization). Using safe contractions, one can obtain a quotient with N ′ N' N ′ vertices and an updated witnessed bound Λ ′ ≤ Λ \Lambda' \le\Lambda Λ ′ ≤ Λ such that
0 < λ ≤ Λ ′ ≤ min v d v , max v d v ≤ ( N ′ − 1 ) Λ ′ . (52) 0 < \lambda\le\Lambda' \le\min_v d_v,\qquad\max_v d_v \le(N' - 1)\Lambda'. \tag*{(52)} 0 < λ ≤ Λ ′ ≤ v min d v , v max d v ≤ ( N ′ − 1 ) Λ ′ . (52) Every original minimum cut survives. With the weighted degrees already known, the query cost is O ( ( N − N ′ ) log ( 2 N ) ) O((N - N')\log(2N)) O (( N − N ′ ) log ( 2 N )) . Across all invocations in one algorithm, the total normalization cost is O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) .
Proof. While some vertex v v v has d v > ( N − 1 ) Λ d_v > (N - 1)\Lambda d v > ( N − 1 ) Λ , find an edge v u vu v u of weight greater than Λ \Lambda Λ as follows. Start with candidates W = V ∖ { v } W = V \setminus\{v\} W = V ∖ { v } and known total mass w G ( v , W ) = d v w_G(v,W) = d_v w G ( v , W ) = d v . Split W W W into two nearly equal nonempty parts. Evaluate one part’s mass using
2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v } ) , v ∉ X , 2w_G(v,X) = d_v + c_G(X) - c_G(X \cup\{v\}),\qquad v \notin X, 2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v }) , v ∈ / X , @page 35/57 starts_mid=0 ends_mid=1
Terminal compression of explicit trees Lemma 34 (Terminal compression of a tree). Let T T T be a finite tree with nonnegative edge capacities and let C C C be a nonempty set of its vertices, with q = ∣ C ∣ q = |C| q = ∣ C ∣ . There is a fixed contraction map π : V ( T ) → V ( T ′ ) \pi: V(T) \to V(T') π : V ( T ) → V ( T ′ ) , injective on C C C , with
∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , |V(T')| \le\max\{1, 2q - 2\}, ∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , such that, for every assignment of binary labels to C C C , some minimum-cost extension to T T T is constant on each fiber of π \pi π . The contraction is computable from the explicit tree and is independent of the terminal labels.
Proof. Repeatedly contract leaves outside C C C into their neighbors. This prunes the tree down to the minimal subtree joining C C C ; every removed branch can be labeled uniformly with its attachment vertex at zero cost. If q = 1 q = 1 q = 1 , this leaves one vertex and proves the assertion.
For q ≥ 2 q \ge2 q ≥ 2 , every leaf of the pruned tree lies in C C C . On each maximal path whose internal vertices lie outside C C C and have degree two, choose a minimum-capacity edge, breaking ties deterministically, and contract all other edges of the path. For fixed endpoint labels, the optimum path cost is zero if the labels agree and the minimum edge capacity if they differ. Both optima are attained with all contracted edges uncut. The choices on different paths are compatible, so the fixed contraction preserves the minimum extension cost for every labeling of C C C . In the resulting tree T ′ T' T ′ with n ′ n' n ′ vertices, every vertex outside C C C has degree at least three and every vertex of C C C has degree at least one. Summing degrees gives 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) 2(n' - 1) \ge q + 3(n' - q) 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) , so n ′ ≤ 2 q − 2 n' \le2q - 2 n ′ ≤ 2 q − 2 . The argument also applies when some capacities are zero, and the terminals need not be leaves.
Safe contractions and weighted degree normalization We work on a current quotient of the input. Write N N N for its number of vertices, G G G for this quotient, and δ = min v d v \delta= \min_v d_v δ = min v d v . Every query to G G G is one original query on a union of contracted classes. We maintain all weighted degrees and a known nontrivial cut of value Λ \Lambda Λ , with
0 < λ ≤ Λ ≤ δ . (53) 0 < \lambda\le\Lambda\le\delta. \tag*{(53)} 0 < λ ≤ Λ ≤ δ . (53) Initially query the weighted degrees and use a singleton of minimum weighted degree. An individually learned edge with weight strictly greater than Λ \Lambda Λ can be contracted: no cut of value at most Λ \Lambda Λ , including every minimum cut and the witness for Λ \Lambda Λ , can separate its endpoints.
Lemma 35 (Weighted degree normalization). Using safe contractions, one can obtain a quotient with N ′ N' N ′ vertices and an updated witnessed bound Λ ′ ≤ Λ \Lambda' \le\Lambda Λ ′ ≤ Λ such that
0 < λ ≤ Λ ′ ≤ min v d v , max v d v ≤ ( N ′ − 1 ) Λ ′ . (54) 0 < \lambda\le\Lambda' \le\min_v d_v,\qquad\max_v d_v \le(N' - 1)\Lambda'. \tag*{(54)} 0 < λ ≤ Λ ′ ≤ v min d v , v max d v ≤ ( N ′ − 1 ) Λ ′ . (54) Every original minimum cut survives. With the weighted degrees already known, the query cost is O ( ( N − N ′ ) log ( 2 N ) ) O((N - N')\log(2N)) O (( N − N ′ ) log ( 2 N )) . Across all invocations in one algorithm, the total normalization cost is O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) .
Proof. While some vertex v v v has d v > ( N − 1 ) Λ d_v > (N - 1)\Lambda d v > ( N − 1 ) Λ , find an edge v u vu v u of weight greater than Λ \Lambda Λ as follows. Start with candidates W = V ∖ { v } W = V \setminus\{v\} W = V ∖ { v } and known total mass w G ( v , W ) = d v w_G(v,W) = d_v w G ( v , W ) = d v . Split W W W into two nearly equal nonempty parts. Evaluate one part’s mass using
2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v } ) , v ∉ X , 2w_G(v,X) = d_v + c_G(X) - c_G(X \cup\{v\}),\qquad v \notin X, 2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v }) , v ∈ / X , @page 35/57 starts_mid=0 ends_mid=1
Terminal compression of explicit trees Lemma 34 (Terminal compression of a tree). Let T T T be a finite tree with nonnegative edge capacities and let C C C be a nonempty set of its vertices, with q = ∣ C ∣ q = |C| q = ∣ C ∣ . There is a fixed contraction map π : V ( T ) → V ( T ′ ) \pi: V(T) \to V(T') π : V ( T ) → V ( T ′ ) , injective on C C C , with
∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , |V(T')| \le\max\{1, 2q - 2\}, ∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , such that, for every assignment of binary labels to C C C , some minimum-cost extension to T T T is constant on each fiber of π \pi π . The contraction is computable from the explicit tree and is independent of the terminal labels.
Proof. Repeatedly contract leaves outside C C C into their neighbors. This prunes the tree down to the minimal subtree joining C C C ; every removed branch can be labeled uniformly with its attachment vertex at zero cost. If q = 1 q = 1 q = 1 , this leaves one vertex and proves the assertion.
For q ≥ 2 q \ge2 q ≥ 2 , every leaf of the pruned tree lies in C C C . On each maximal path whose internal vertices lie outside C C C and have degree two, choose a minimum-capacity edge, breaking ties deterministically, and contract all other edges of the path. For fixed endpoint labels, the optimum path cost is zero if the labels agree and the minimum edge capacity if they differ. Both optima are attained with all contracted edges uncut. The choices on different paths are compatible, so the fixed contraction preserves the minimum extension cost for every labeling of C C C . In the resulting tree T ′ T' T ′ with n ′ n' n ′ vertices, every vertex outside C C C has degree at least three and every vertex of C C C has degree at least one. Summing degrees gives 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) 2(n' - 1) \ge q + 3(n' - q) 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) , so n ′ ≤ 2 q − 2 n' \le2q - 2 n ′ ≤ 2 q − 2 . The argument also applies when some capacities are zero, and the terminals need not be leaves.
Safe contractions and weighted degree normalization We work on a current quotient of the input. Write N N N for its number of vertices, G G G for this quotient, and δ = min v d v \delta= \min_v d_v δ = min v d v . Every query to G G G is one original query on a union of contracted classes. We maintain all weighted degrees and a known nontrivial cut of value Λ \Lambda Λ , with
0 < λ ≤ Λ ≤ δ . (55) 0 < \lambda\le\Lambda\le\delta. \tag*{(55)} 0 < λ ≤ Λ ≤ δ . (55) Initially query the weighted degrees and use a singleton of minimum weighted degree. An individually learned edge with weight strictly greater than Λ \Lambda Λ can be contracted: no cut of value at most Λ \Lambda Λ , including every minimum cut and the witness for Λ \Lambda Λ , can separate its endpoints.
Lemma 35 (Weighted degree normalization). Using safe contractions, one can obtain a quotient with N ′ N' N ′ vertices and an updated witnessed bound Λ ′ ≤ Λ \Lambda' \le\Lambda Λ ′ ≤ Λ such that
0 < λ ≤ Λ ′ ≤ min v d v , max v d v ≤ ( N ′ − 1 ) Λ ′ . (56) 0 < \lambda\le\Lambda' \le\min_v d_v,\qquad\max_v d_v \le(N' - 1)\Lambda'. \tag*{(56)} 0 < λ ≤ Λ ′ ≤ v min d v , v max d v ≤ ( N ′ − 1 ) Λ ′ . (56) Every original minimum cut survives. With the weighted degrees already known, the query cost is O ( ( N − N ′ ) log ( 2 N ) ) O((N - N')\log(2N)) O (( N − N ′ ) log ( 2 N )) . Across all invocations in one algorithm, the total normalization cost is O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) .
Proof. While some vertex v v v has d v > ( N − 1 ) Λ d_v > (N - 1)\Lambda d v > ( N − 1 ) Λ , find an edge v u vu v u of weight greater than Λ \Lambda Λ as follows. Start with candidates W = V ∖ { v } W = V \setminus\{v\} W = V ∖ { v } and known total mass w G ( v , W ) = d v w_G(v,W) = d_v w G ( v , W ) = d v . Split W W W into two nearly equal nonempty parts. Evaluate one part’s mass using
2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v } ) , v ∉ X , 2w_G(v,X) = d_v + c_G(X) - c_G(X \cup\{v\}),\qquad v \notin X, 2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v }) , v ∈ / X , @page 35/57 starts_mid=0 ends_mid=1
Terminal compression of explicit trees Lemma 34 (Terminal compression of a tree). Let T T T be a finite tree with nonnegative edge capacities and let C C C be a nonempty set of its vertices, with q = ∣ C ∣ q = |C| q = ∣ C ∣ . There is a fixed contraction map π : V ( T ) → V ( T ′ ) \pi: V(T) \to V(T') π : V ( T ) → V ( T ′ ) , injective on C C C , with
∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , |V(T')| \le\max\{1, 2q - 2\}, ∣ V ( T ′ ) ∣ ≤ max { 1 , 2 q − 2 } , such that, for every assignment of binary labels to C C C , some minimum-cost extension to T T T is constant on each fiber of π \pi π . The contraction is computable from the explicit tree and is independent of the terminal labels.
Proof. Repeatedly contract leaves outside C C C into their neighbors. This prunes the tree down to the minimal subtree joining C C C ; every removed branch can be labeled uniformly with its attachment vertex at zero cost. If q = 1 q = 1 q = 1 , this leaves one vertex and proves the assertion.
For q ≥ 2 q \ge2 q ≥ 2 , every leaf of the pruned tree lies in C C C . On each maximal path whose internal vertices lie outside C C C and have degree two, choose a minimum-capacity edge, breaking ties deterministically, and contract all other edges of the path. For fixed endpoint labels, the optimum path cost is zero if the labels agree and the minimum edge capacity if they differ. Both optima are attained with all contracted edges uncut. The choices on different paths are compatible, so the fixed contraction preserves the minimum extension cost for every labeling of C C C . In the resulting tree T ′ T' T ′ with n ′ n' n ′ vertices, every vertex outside C C C has degree at least three and every vertex of C C C has degree at least one. Summing degrees gives 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) 2(n' - 1) \ge q + 3(n' - q) 2 ( n ′ − 1 ) ≥ q + 3 ( n ′ − q ) , so n ′ ≤ 2 q − 2 n' \le2q - 2 n ′ ≤ 2 q − 2 . The argument also applies when some capacities are zero, and the terminals need not be leaves.
Safe contractions and weighted degree normalization We work on a current quotient of the input. Write N N N for its number of vertices, G G G for this quotient, and δ = min v d v \delta= \min_v d_v δ = min v d v . Every query to G G G is one original query on a union of contracted classes. We maintain all weighted degrees and a known nontrivial cut of value Λ \Lambda Λ , with
0 < λ ≤ Λ ≤ δ . (57) 0 < \lambda\le\Lambda\le\delta. \tag*{(57)} 0 < λ ≤ Λ ≤ δ . (57) Initially query the weighted degrees and use a singleton of minimum weighted degree. An individually learned edge with weight strictly greater than Λ \Lambda Λ can be contracted: no cut of value at most Λ \Lambda Λ , including every minimum cut and the witness for Λ \Lambda Λ , can separate its endpoints.
Lemma 35 (Weighted degree normalization). Using safe contractions, one can obtain a quotient with N ′ N' N ′ vertices and an updated witnessed bound Λ ′ ≤ Λ \Lambda' \le\Lambda Λ ′ ≤ Λ such that
0 < λ ≤ Λ ′ ≤ min v d v , max v d v ≤ ( N ′ − 1 ) Λ ′ . (58) 0 < \lambda\le\Lambda' \le\min_v d_v,\qquad\max_v d_v \le(N' - 1)\Lambda'. \tag*{(58)} 0 < λ ≤ Λ ′ ≤ v min d v , v max d v ≤ ( N ′ − 1 ) Λ ′ . (58) Every original minimum cut survives. With the weighted degrees already known, the query cost is O ( ( N − N ′ ) log ( 2 N ) ) O((N - N')\log(2N)) O (( N − N ′ ) log ( 2 N )) . Across all invocations in one algorithm, the total normalization cost is O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) .
Proof. While some vertex v v v has d v > ( N − 1 ) Λ d_v > (N - 1)\Lambda d v > ( N − 1 ) Λ , find an edge v u vu v u of weight greater than Λ \Lambda Λ as follows. Start with candidates W = V ∖ { v } W = V \setminus\{v\} W = V ∖ { v } and known total mass w G ( v , W ) = d v w_G(v,W) = d_v w G ( v , W ) = d v . Split W W W into two nearly equal nonempty parts. Evaluate one part’s mass using
2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v } ) , v ∉ X , 2w_G(v,X) = d_v + c_G(X) - c_G(X \cup\{v\}),\qquad v \notin X, 2 w G ( v , X ) = d v + c G ( X ) − c G ( X ∪ { v }) , v ∈ / X ,
and obtain the other’s by subtraction. Retain the part with larger average mass per candidate, with fixed tie-breaking. Its average is at least the old average, which is strictly greater than Λ \Lambda Λ . After O ( log ( 2 N ) ) O(\log(2N)) O ( log ( 2 N )) queries, the remaining singleton gives w G ( v , u ) > Λ w_G(v,u)>\Lambda w G ( v , u ) > Λ .
Contract u , v u,v u , v . No cut of value at most Λ \Lambda Λ separates them, so all minimum cuts and the current witness survive. The new vertex has weighted degree
d u v = d u + d v − 2 w G ( u , v ) . (59) d_{uv}=d_u+d_v-2w_G(u,v). \tag*{(59)} d uv = d u + d v − 2 w G ( u , v ) . (59)
Every other vertex keeps exactly the same weighted degree. Thus no additional queries are needed to update the entire weighted degree list. Replace Λ \Lambda Λ by min { Λ , d u v } \min\{\Lambda,d_{uv}\} min { Λ , d uv } , using the new singleton shore as witness if its weighted degree is smaller, and decrement N N N . The new witnessed bound still satisfies λ ≤ Λ ≤ min v d v \lambda\leq\Lambda\leq\min_v d_v λ ≤ Λ ≤ min v d v .
Repeat with the new values of N N N and Λ \Lambda Λ . The witness remains nontrivial, so at least two vertices remain. The stopping condition is exactly (42). There is one search per contraction, proving the query bound. Over the entire algorithm there are at most n − 2 n-2 n − 2 contractions, even when the witnessed bound changes many times. □
The lemma does not assert that every remaining edge has weight at most Λ ′ \Lambda' Λ ′ . For example, on vertices 0, 1, 2, 3 give edges 01, 02, 12, 23 weights 2, 1, 1, 1, respectively. The minimum weighted degree and the witnessed bound can both be 1, and every weighted degree is at most 3, so normalization does nothing although edge 01 has weight 2. Such edges may be retained in the explicit graph K K K during the next phase.
Lemma 36 (A large bound decrease forces halving). Suppose the current graph has N ≥ 2 N\geq2 N ≥ 2 vertices and all weighted degrees are at least a witnessed bound Λ \Lambda Λ . If a new nontrivial cut gives a bound u < Λ / ( 4 N ) u<\Lambda/(4N) u < Λ/ ( 4 N ) , as in Lemma 40, then normalization started with u u u leaves at most ⌊ N / 2 ⌋ \lfloor N/2\rfloor ⌊ N /2 ⌋ vertices.
Proof. Throughout this normalization, the current bound Λ ′ \Lambda' Λ ′ is at most u u u and the number of vertices is at most N N N . Every witnessed bound is the value of a nontrivial cut, so Λ ′ ≥ λ > 0 \Lambda'\geq\lambda>0 Λ ′ ≥ λ > 0 . Consider an old vertex that never participates in a contraction. Its weighted degree is unchanged and at least Λ \Lambda Λ . At termination the weighted degree condition would require
Λ ≤ d v ≤ ( N ′ − 1 ) Λ ′ ≤ ( N − 1 ) u < Λ , \Lambda\leq d_v\leq(N'-1)\Lambda'\leq(N-1)u<\Lambda, Λ ≤ d v ≤ ( N ′ − 1 ) Λ ′ ≤ ( N − 1 ) u < Λ ,
a contradiction; the third inequality uses Λ ′ ≥ 0 \Lambda'\geq0 Λ ′ ≥ 0 . Every final vertex therefore contains at least two vertices from the graph at the start of this invocation. These classes partition the old vertices, proving the claim. Further decreases of the bound during normalization only strengthen it. □
Learning a residual graph down to a weighted degree floor
Start each phase after weighted degree normalization, so
Λ ≤ d v ≤ ( N − 1 ) Λ ( v ∈ V ( G ) ) . (60) \Lambda\leq d_v\leq(N-1)\Lambda\qquad(v\in V(G)). \tag*{(60)} Λ ≤ d v ≤ ( N − 1 ) Λ ( v ∈ V ( G )) . (60)
Fix an integer 2 ≤ k ≤ N − 1 2\leq k\leq N-1 2 ≤ k ≤ N − 1 and set
t = Λ 16 N 2 , L = 16 ⌈ N / k ⌉ ⌈ log 2 ( 2 N ) ⌉ . (61) t=\frac{\Lambda}{16N^2},\qquad L=16\lceil N/k\rceil\lceil\log_2(2N)\rceil. \tag*{(61)} t = 16 N 2 Λ , L = 16 ⌈ N / k ⌉ ⌈ log 2 ( 2 N )⌉ . (61)
The parameter t t t is a residual weighted degree floor, and L L L bounds the number of centers. Both remain fixed during the phase. Contractions occur only during normalization between phases.
Lemma 37 (Residual preparation). Using O ( N k log 2 ( 2 N ) ) O(Nk\log^{2}(2N)) O ( N k log 2 ( 2 N )) cut queries, one can learn an exact subgraph K ⊆ G K \subseteq G K ⊆ G such that, for R = G − K R = G - K R = G − K and its known weighted degrees r v r_v r v ,
r v ≤ t or w R ( v , u ) ≤ r v / k for every u . (62) r_v \le t \quad\text{or} \quad w_R(v,u) \le r_v/k \quad\text{for every }u. \tag*{(62)} r v ≤ t or w R ( v , u ) ≤ r v / k for every u . (62) The graph K K K may contain edges heavier than Λ \Lambda Λ .
Proof. Start with K K K empty. Cut queries to R R R are simulated by subtracting the known contribution of K K K from a query to G G G . Its weighted degrees are updated without further queries whenever an edge is added to K K K .
A scan of a vertex v v v with r v > t r_v > t r v > t sets q v = r v q_v = r_v q v = r v and, keeping K K K fixed during the search, finds all residual incident edges heavier than q v / ( 2 k ) q_v/(2k) q v / ( 2 k ) . By Lemma 8 , there are fewer than 2 k 2k 2 k such edges and the scan costs O ( k log ( 2 N ) ) O(k\log(2N)) O ( k log ( 2 N )) queries. Add their full weights to K K K and update the residual weighted degrees. Thus each edge of R R R is either an entire original edge or zero.
After a scan every remaining incident edge has weight at most q v / ( 2 k ) q_v/(2k) q v / ( 2 k ) , and subsequent removals preserve this upper bound. The relative lightness condition holds while r v ≥ q v / 2 r_v \ge q_v/2 r v ≥ q v /2 . Repeatedly scan any vertex with r v > t r_v > t r v > t that has not been scanned or whose weighted degree has fallen below half its last reference value. At termination this proves (62) .
Every first reference is at most ( N − 1 ) Λ (N-1)\Lambda ( N − 1 ) Λ . Successive references for a vertex decrease by a factor greater than two and stay above t t t . Since ( N − 1 ) Λ / t = 16 N 2 ( N − 1 ) (N-1)\Lambda/t = 16N^{2}(N-1) ( N − 1 ) Λ/ t = 16 N 2 ( N − 1 ) , there are at most 1 + log 2 ( 16 N 2 ( N − 1 ) ) = O ( log ( 2 N ) ) 1+\log_{2}(16N^{2}(N-1)) = O(\log(2N)) 1 + log 2 ( 16 N 2 ( N − 1 )) = O ( log ( 2 N )) scans per vertex. This proves both finite termination and the query bound, independently of the weight spread. The argument uses only Λ > 0 \Lambda> 0 Λ > 0 and the upper bound d v ≤ ( N − 1 ) Λ d_v \le(N-1)\Lambda d v ≤ ( N − 1 ) Λ in (60) , not the lower bound Λ ≤ d v \Lambda\le d_v Λ ≤ d v ; the count of edges found by one scan is likewise not needed for the query bound. □
Selecting centers with weighted degree buckets
Freeze K K K , R R R , and the residual weighted degrees after preparation. Learning center rows does not remove further edges from R R R . Let H C R H_C^R H C R be the subgraph of R R R containing exactly the edges incident to the selected center set C C C .
For possibly overlapping vertex sets A A A , W W W , write
m R ( A , W ) = ∑ v ∈ A ∑ u ∈ W w R ( v , u ) . m_R(A,W) = \sum_{v\in A}\sum_{u\in W} w_R(v,u). m R ( A , W ) = v ∈ A ∑ u ∈ W ∑ w R ( v , u ) .
This counts an edge inside A ∩ W A \cap W A ∩ W twice. With I = A ∩ W I = A \cap W I = A ∩ W , X = A ∖ W X = A \setminus W X = A ∖ W , Y = W ∖ A Y = W \setminus A Y = W ∖ A , and Z = V ∖ ( A ∪ W ) Z = V \setminus(A \cup W) Z = V ∖ ( A ∪ W ) ,
m R ( A , W ) = ∑ v ∈ I r v − w R ( I , Z ) + w R ( X , Y ) . (63) m_R(A,W) = \sum_{v\in I} r_v - w_R(I,Z) + w_R(X,Y). \tag*{(63)} m R ( A , W ) = v ∈ I ∑ r v − w R ( I , Z ) + w R ( X , Y ) . (63)
The weighted degrees are known and the two disjoint-set masses cost at most six cut queries in total by (17) .
Lemma 38 (Bucketed center selection). Let 2 ≤ k ≤ N − 1 2 \le k \le N-1 2 ≤ k ≤ N − 1 be as in (61) , so in particular k ≤ 8 N k \le8N k ≤ 8 N . Using O ( ( N 2 / k ) log ( 2 N ) ) O((N^{2}/k)\log(2N)) O (( N 2 / k ) log ( 2 N )) further queries, one can learn all edges incident to a set C C C of at most L L L centers such that
v ∉ C ⟹ r v ≤ t or w R ( v , C ) ≥ r v / k . (64) v \notin C \quad\Longrightarrow\quad r_v \le t \quad\text{or} \quad w_R(v,C) \ge r_v/k. \tag*{(64)} v ∈ / C ⟹ r v ≤ t or w R ( v , C ) ≥ r v / k . (64)
Proof. Call a vertex active when
v ∉ C , r v > t , b v : = w R ( v , C ) < r v / k . v \notin C,\qquad r_v > t,\qquad b_v := w_R(v,C) < r_v/k. v ∈ / C , r v > t , b v := w R ( v , C ) < r v / k .
For an active vertex put a v u = k w R ( v , u ) / ( 2 r v ) a_{vu}=k w_R(v,u)/(2r_v) a v u = k w R ( v , u ) / ( 2 r v ) and p v = ∏ c ∈ C ( 1 − a v c ) p_v=\prod_{c\in C}(1-a_{vc}) p v = ∏ c ∈ C ( 1 − a v c ) . Relative lightness gives 0 ≤ a v u ≤ 1 / 2 0\le a_{vu}\le1/2 0 ≤ a v u ≤ 1/2 and p v ≥ 1 − ∑ c ∈ C a v c > 1 / 2 p_v\ge1-\sum_{c\in C}a_{vc}>1/2 p v ≥ 1 − ∑ c ∈ C a v c > 1/2 . With Φ = ∑ v a c t i v e p v \Phi=\sum_{v\ \mathrm{active}}p_v Φ = ∑ v active p v and σ ( u ) = ∑ v a c t i v e p v a v u \sigma(u)=\sum_{v\ \mathrm{active}}p_v a_{vu} σ ( u ) = ∑ v active p v a v u , we have
∑ u ∉ C σ ( u ) = k 2 ∑ v a c t i v e p v ( 1 − b v / r v ) ≥ k 4 Φ . (65) \sum_{u\notin C}\sigma(u)=\frac{k}{2}\sum_{v\ \mathrm{active}}p_v(1-b_v/r_v)\ge\frac{k}{4}\Phi. \tag*{(65)} u ∈ / C ∑ σ ( u ) = 2 k v active ∑ p v ( 1 − b v / r v ) ≥ 4 k Φ. (65)
To evaluate group scores cheaply, use t < r v ≤ ( N − 1 ) Λ t<r_v\le(N-1)\Lambda t < r v ≤ ( N − 1 ) Λ and 1 / 2 < p v ≤ 1 1/2<p_v\le1 1/2 < p v ≤ 1 to bound θ v = p v / r v \theta_v=p_v/r_v θ v = p v / r v by
1 2 ( N − 1 ) Λ < θ v < 1 t , 2 ( N − 1 ) Λ t < 32 N 3 . \frac{1}{2(N-1)\Lambda}<\theta_v<\frac{1}{t},\qquad\frac{2(N-1)\Lambda}{t}<32N^3. 2 ( N − 1 ) Λ 1 < θ v < t 1 , t 2 ( N − 1 ) Λ < 32 N 3 .
Round each coefficient down to a power of two times [ 2 ( N − 1 ) Λ ] − 1 [2(N-1)\Lambda]^{-1} [ 2 ( N − 1 ) Λ ] − 1 , so θ ~ v ≤ θ v < 2 θ ~ v \widetilde{\theta}_v\le\theta_v<2\widetilde{\theta}_v θ v ≤ θ v < 2 θ v . There are O ( log ( 2 N ) ) O(\log(2N)) O ( log ( 2 N )) buckets A j A_j A j with common coefficient θ j \theta_j θ j . The surrogate scores
σ ~ ( u ) = k 2 ∑ v a c t i v e θ ~ v w R ( v , u ) \widetilde{\sigma}(u)=\frac{k}{2}\sum_{v\ \mathrm{active}}\widetilde{\theta}_v w_R(v,u) σ ( u ) = 2 k v active ∑ θ v w R ( v , u )
satisfy σ ( u ) / 2 ≤ σ ~ ( u ) ≤ σ ( u ) \sigma(u)/2\le\widetilde{\sigma}(u)\le\sigma(u) σ ( u ) /2 ≤ σ ( u ) ≤ σ ( u ) . For a candidate set W W W , their total is
∑ u ∈ W σ ~ ( u ) = k 2 ∑ j θ j m R ( A j , W ) , (66) \sum_{u\in W}\widetilde{\sigma}(u)=\frac{k}{2}\sum_j\theta_jm_R(A_j,W), \tag*{(66)} u ∈ W ∑ σ ( u ) = 2 k j ∑ θ j m R ( A j , W ) , (66)
which costs O ( log ( 2 N ) ) O(\log(2N)) O ( log ( 2 N )) queries by (63) . The total over V ∖ C V\setminus C V ∖ C is also known directly from the r v r_v r v and b v b_v b v .
Keep the active set and the buckets fixed during a balanced search. Split the candidate set into two nearly equal parts, evaluate one part’s total score, and obtain the other’s by subtraction. Retain the part with larger average surrogate score, with fixed tie-breaking. The average never decreases. Since the surrogate scores are nonnegative, the initial average over the at most N N N candidates is at least 1 N ∑ x ∉ C σ ~ ( x ) \frac{1}{N}\sum_{x\notin C}\widetilde{\sigma}(x) N 1 ∑ x ∈ / C σ ( x ) , so the selected vertex u u u satisfies
σ ( u ) ≥ σ ~ ( u ) ≥ 1 N ∑ x ∉ C σ ~ ( x ) ≥ k 8 N Φ . \sigma(u)\ge\widetilde{\sigma}(u)\ge\frac{1}{N}\sum_{x\notin C}\widetilde{\sigma}(x)\ge\frac{k}{8N}\Phi. σ ( u ) ≥ σ ( u ) ≥ N 1 x ∈ / C ∑ σ ( x ) ≥ 8 N k Φ.
This search costs O ( log 2 ( 2 N ) ) O(\log^2(2N)) O ( log 2 ( 2 N )) queries. Add u u u to C C C and learn its full original row with O ( N ) O(N) O ( N ) queries, subtracting K K K to obtain its residual row.
A previously active vertex that stays active has its potential multiplied by 1 − a v u 1-a_{vu} 1 − a v u , so it decreases by p v a v u p_va_{vu} p v a v u . Other previously active vertices leave the sum; since 0 ≤ a v u ≤ 1 / 2 0\le a_{vu}\le1/2 0 ≤ a v u ≤ 1/2 , their potentials p v p_v p v are nonnegative and at least p v a v u p_va_{vu} p v a v u . No new vertex becomes active because C C C and each b v b_v b v only increase. Thus Φ \Phi Φ decreases by at least σ ( u ) ≥ k Φ / ( 8 N ) \sigma(u)\ge k\Phi/(8N) σ ( u ) ≥ k Φ/ ( 8 N ) . Initially Φ ≤ N \Phi\le N Φ ≤ N , whereas any nonempty active set has Φ > 1 / 2 \Phi>1/2 Φ > 1/2 . At most 8 ( N / k ) ln ( 2 N ) + 1 ≤ L 8(N/k)\ln(2N)+1\le L 8 ( N / k ) ln ( 2 N ) + 1 ≤ L selections therefore suffice. The total query cost is
O ( N 2 k log ( 2 N ) + N k log 3 ( 2 N ) ) = O ( N 2 k log ( 2 N ) ) . O\left(\frac{N^2}{k}\log(2N)+\frac{N}{k}\log^3(2N)\right)=O\left(\frac{N^2}{k}\log(2N)\right). O ( k N 2 log ( 2 N ) + k N log 3 ( 2 N ) ) = O ( k N 2 log ( 2 N ) ) .
When the active set is empty, (64) holds.
Keeping known edges and rounding only the residual
Suppose preparation and center selection both finish. The explicit graph
H = K + H C R ⊆ G H=K+H_C^R\subseteq G H = K + H C R ⊆ G
has disjoint contributions from K K K and H C R H_C^R H C R . Use Lemma 28 to find a canonical hierarchy T H T_H T H approximating all its cuts with distortion a 1 = O ( log ( 2 N ) log log ( 2 N ) ) a_1 = O(\log(2N)\log\log(2N)) a 1 = O ( log ( 2 N ) log log ( 2 N )) , a 1 ≥ 1 a_1 \ge1 a 1 ≥ 1 . Choose an arbitrary vertex v 0 v_0 v 0 and apply Lemma 34 with terminal set
T 0 = C ∪ { v 0 } . T_0 = C \cup\{v_0\}. T 0 = C ∪ { v 0 } .
The extra vertex ensures that this set is nonempty; no additional row is learned for it. The nonempty fibers on original vertices give a fixed partition P 1 , … , P p P_1,\ldots,P_p P 1 , … , P p , where
p ≤ N , p ≤ max { 1 , 2 ∣ T 0 ∣ − 2 } = O ( 1 + N k log ( 2 N ) ) . (67) p \le N,\qquad p \le\max\{1,2|T_0|-2\}=O\left(1+\frac{N}{k}\log(2N)\right). \tag*{(67)} p ≤ N , p ≤ max { 1 , 2∣ T 0 ∣ − 2 } = O ( 1 + k N log ( 2 N ) ) . (67)
For every cut S S S , minimum-cost extension of its labels on T 0 T_0 T 0 gives a union S ^ \widehat{S} S of these classes with
S ^ ∩ T 0 = S ∩ T 0 , c H ( S ^ ) ≤ a 1 c H ( S ) . (68) \widehat{S}\cap T_0=S\cap T_0,\qquad c_H(\widehat{S})\le a_1c_H(S). \tag*{(68)} S ∩ T 0 = S ∩ T 0 , c H ( S ) ≤ a 1 c H ( S ) . (68)
To verify this, fix only the labels on T 0 T_0 T 0 . The original labeling of all leaves costs at most a 1 c H ( S ) a_1c_H(S) a 1 c H ( S ) , terminal compression permits a minimizing extension constant on fibers, and the canonical tree dominates H H H .
Put X = S △ S ^ X=S\mathbin{\triangle}\widehat{S} X = S △ S . No vertex in X X X belongs to C C C . Charge the vertices with r v ≤ t r_v\le t r v ≤ t at most N t Nt N t in total, and use (64) on the others. Since V ∖ C V\setminus C V ∖ C is independent in H C R H_C^R H C R ,
vol R ( X ) ≤ k vol H C R ( X ) + N t = k c H C R ( X ) + N t ≤ k ( c H C R ( S ) + c H C R ( S ^ ) ) + N t ≤ k ( 1 + a 1 ) c G ( S ) + N t . (69) \begin{aligned}
\operatorname{vol}_R(X)&\le k\operatorname{vol}_{H_C^R}(X)+Nt=k c_{H_C^R}(X)+Nt\\
&\le k\bigl(c_{H_C^R}(S)+c_{H_C^R}(\widehat{S})\bigr)+Nt\\
&\le k(1+a_1)c_G(S)+Nt. \tag*{(69)}
\end{aligned} vol R ( X ) ≤ k vol H C R ( X ) + N t = k c H C R ( X ) + N t ≤ k ( c H C R ( S ) + c H C R ( S ) ) + N t ≤ k ( 1 + a 1 ) c G ( S ) + N t . (69)
There is no corresponding bound claimed for vol G ( X ) \operatorname{vol}_G(X) vol G ( X ) or vol K ( X ) \operatorname{vol}_K(X) vol K ( X ) . The known edges will be retained explicitly instead.
Learn the quotient Q = G / { P 1 , … , P p } Q=G/\{P_1,\ldots,P_p\} Q = G / { P 1 , … , P p } with O ( p 2 ) O(p^2) O ( p 2 ) queries. This partition is used for rounding and defining the auxiliary graph. Safe contractions in the algorithm are performed only by Lemma 35 on the current graph G G G . Construct a graph J a u x J_{\mathrm{aux}} J aux with terminal set V ( G ) V(G) V ( G ) and one additional vertex z i z_i z i for each part P i P_i P i , as follows:
Keep the edges of K K K between the original vertices.
Put the quotient graph Q Q Q on z 1 , … , z p z_1,\ldots,z_p z 1 , … , z p .
For v ∈ P i v\in P_i v ∈ P i , add an edge v z i vz_i v z i of weight r v r_v r v .
All its weights are known. For S ⊆ V ( G ) S\subseteq V(G) S ⊆ V ( G ) , let Ψ ( S ) \Psi(S) Ψ ( S ) be its minimum terminal-extension cut value in J a u x J_{\mathrm{aux}} J aux . Equivalently,
Ψ ( S ) = c K ( S ) + min S ^ a union of P i ( c G ( S ^ ) + vol R ( S △ S ^ ) ) . (70) \Psi(S)=c_K(S)+\min_{\widehat{S}\text{ a union of }P_i}\left(c_G(\widehat{S})+\operatorname{vol}_R(S\mathbin{\triangle}\widehat{S})\right). \tag*{(70)} Ψ ( S ) = c K ( S ) + S a union of P i min ( c G ( S ) + vol R ( S △ S ) ) . (70)
Lemma 39 (Auxiliary graph with an additive error). Set A = ( 1 + a 1 ) ( 2 k + 1 ) A=(1+a_1)(2k+1) A = ( 1 + a 1 ) ( 2 k + 1 ) , so that A = O ( k log ( 2 N ) log log ( 2 N ) ) A=O(k\log(2N)\log\log(2N)) A = O ( k log ( 2 N ) log log ( 2 N )) . For every cut S S S ,
c G ( S ) ≤ Ψ ( S ) ≤ A c G ( S ) + 2 N t . (71) c_G(S)\le\Psi(S)\le A c_G(S)+2Nt. \tag*{(71)} c G ( S ) ≤ Ψ ( S ) ≤ A c G ( S ) + 2 N t . (71) The explicit graph J a u x J_{\mathrm{aux}} J aux has at most 2 N 2N 2 N vertices and requires only O ( ( N 2 / k 2 ) log 2 ( 2 N ) ) O((N^2/k^2)\log^2(2N)) O (( N 2 / k 2 ) log 2 ( 2 N )) queries after residual preparation and center selection.
Proof. For any union S ^ \widehat{S} S in (70) , changing the labels in X = S △ S ^ X=S\mathbin{\triangle}\widehat{S} X = S △ S changes an R R R -cut by at most vol R ( X ) \operatorname{vol}_{R}(X) vol R ( X ) . Thus
c G ( S ^ ) + vol R ( X ) ≥ c R ( S ^ ) + vol R ( X ) ≥ c R ( S ) . c_G(\widehat{S})+\operatorname{vol}_{R}(X)\ge c_R(\widehat{S})+\operatorname{vol}_{R}(X)\ge c_R(S). c G ( S ) + vol R ( X ) ≥ c R ( S ) + vol R ( X ) ≥ c R ( S ) .
Adding c K ( S ) c_K(S) c K ( S ) and minimizing proves the lower bound.
For the upper bound, use the rounded cut from (68) . We have
c K ( S ^ ) ≤ a 1 c G ( S ) , c R ( S ^ ) ≤ c R ( S ) + vol R ( X ) . c_K(\widehat{S})\le a_1c_G(S),\qquad c_R(\widehat{S})\le c_R(S)+\operatorname{vol}_{R}(X). c K ( S ) ≤ a 1 c G ( S ) , c R ( S ) ≤ c R ( S ) + vol R ( X ) .
Substituting c G ( S ^ ) = c K ( S ^ ) + c R ( S ^ ) c_G(\widehat{S})=c_K(\widehat{S})+c_R(\widehat{S}) c G ( S ) = c K ( S ) + c R ( S ) in (70) and using c K ( S ) + c R ( S ) = c G ( S ) c_K(S)+c_R(S)=c_G(S) c K ( S ) + c R ( S ) = c G ( S ) , then applying (69) , gives
Ψ ( S ) ≤ ( 1 + a 1 ) c G ( S ) + 2 vol R ( X ) ≤ A c G ( S ) + 2 N t . \Psi(S)\le(1+a_1)c_G(S)+2\operatorname{vol}_{R}(X)\le Ac_G(S)+2Nt. Ψ ( S ) ≤ ( 1 + a 1 ) c G ( S ) + 2 vol R ( X ) ≤ A c G ( S ) + 2 N t .
The size and query claims follow from (67) . All hierarchy choices and tree compression steps operate on already explicit graphs.
A test that does not require knowing the optimum
Compute offline the minimum terminal-separating cut of J a u x J_{\mathrm{aux}} J aux :
μ = min ∅ ≠ S ⊊ V ( G ) Ψ ( S ) , Ψ ( S a u x ) = μ . (72) \mu=\min_{\varnothing\ne S\subsetneq V(G)}\Psi(S),\qquad\Psi(S_{\mathrm{aux}})=\mu. \tag*{(72)} μ = ∅ = S ⊊ V ( G ) min Ψ ( S ) , Ψ ( S aux ) = μ . (72)
The terminal side S a u x S_{\mathrm{aux}} S aux is nontrivial. The unrestricted global minimum cut of J a u x J_{\mathrm{aux}} J aux would not suffice here, since it might isolate only added vertices. Enumeration of terminal labelings and their extensions is one valid deterministic implementation. Lemma 39 implies
λ ≤ μ ≤ A λ + 2 N t . (73) \lambda\le\mu\le A\lambda+2Nt. \tag*{(73)} λ ≤ μ ≤ A λ + 2 N t . (73)
Lemma 40 (Certify a hierarchy or halve the graph). If μ ≥ 4 N t \mu\ge4Nt μ ≥ 4 N t , then O ( N ) O(N) O ( N ) additional queries construct a canonical hierarchy of G G G whose representation cost R G R_G R G satisfies
c G ( S ) ≤ R G ( S ) ≤ B c G ( S ) for every S ⊆ V ( G ) , B = O ( k log 2 ( 2 N ) ( log log ( 2 N ) ) 2 ) , c_G(S)\le R_G(S)\le Bc_G(S)\quad\text{for every }S\subseteq V(G),\qquad B=O\left(k\log^{2}(2N)(\log\log(2N))^{2}\right), c G ( S ) ≤ R G ( S ) ≤ B c G ( S ) for every S ⊆ V ( G ) , B = O ( k log 2 ( 2 N ) ( log log ( 2 N ) ) 2 ) , with an explicit valid value of B B B supplied to the algorithm. If μ < 4 N t \mu<4Nt μ < 4 N t , one additional query gives a new witnessed bound
Λ ′ = c G ( S a u x ) ≤ μ < Λ 4 N . (74) \Lambda'=c_G(S_{\mathrm{aux}})\le\mu<\frac{\Lambda}{4N}. \tag*{(74)} Λ ′ = c G ( S aux ) ≤ μ < 4 N Λ . (74) Weighted degree normalization with this new bound leaves at most ⌊ N / 2 ⌋ \lfloor N/2\rfloor ⌊ N /2 ⌋ vertices before the next phase.
Proof. Suppose first that μ ≥ 4 N t \mu\ge4Nt μ ≥ 4 N t . Combining this with (73) gives 2 N t ≤ A λ 2Nt\le A\lambda 2 N t ≤ A λ . Since c G ( S ) ≥ λ c_G(S)\ge\lambda c G ( S ) ≥ λ for every nontrivial cut, the additive error is absorbed uniformly:
Ψ ( S ) ≤ A c G ( S ) + 2 N t ≤ 2 A c G ( S ) ( ∅ ≠ S ⊊ V ( G ) ) . (75) \Psi(S)\le Ac_G(S)+2Nt\le2Ac_G(S)\qquad(\varnothing\ne S\subsetneq V(G)). \tag*{(75)} Ψ ( S ) ≤ A c G ( S ) + 2 N t ≤ 2 A c G ( S ) ( ∅ = S ⊊ V ( G )) . (75)
For trivial cuts, Ψ ( S ) = c G ( S ) = 0 \Psi(S)=c_G(S)=0 Ψ ( S ) = c G ( S ) = 0 .
Apply Lemma 28 to the explicit graph J a u x J_{\mathrm{aux}} J aux on all its vertices, obtaining a tree of distortion a 2 = O ( log ( 2 N ) log log ( 2 N ) ) a_2=O(\log(2N)\log\log(2N)) a 2 = O ( log ( 2 N ) log log ( 2 N )) , a 2 ≥ 1 a_2\ge1 a 2 ≥ 1 . Every vertex of J a u x J_{\mathrm{aux}} J aux is a leaf of this tree, since in a hierarchy the nodes of the vertex set have no children; in particular every terminal in V ( G ) V(G) V ( G ) already has degree one. In this tree leave the leaves corresponding to the added vertices of J a u x J_{\mathrm{aux}} J aux free, and apply Lemma 34 with terminal set V ( G ) V(G) V ( G ) . The resulting tree T ′ T' T ′ has O ( N ) O(N) O ( N ) vertices and preserves these terminal-extension costs. Minimizing the original tree inequalities over the labels of the added leaves proves
c G ( S ) ≤ Ψ ( S ) ≤ R T ′ ( S ) ≤ a 2 Ψ ( S ) . (76) c_G(S) \le\Psi(S) \le R_{T'}(S) \le a_2\Psi(S). \tag*{(76)} c G ( S ) ≤ Ψ ( S ) ≤ R T ′ ( S ) ≤ a 2 Ψ ( S ) . (76)
Compression contracts only leaves outside V ( G ) V(G) V ( G ) and shortens terminal-free paths, so each terminal keeps degree one and every remaining leaf is a terminal: the leaves of T ′ T' T ′ are exactly V ( G ) V(G) V ( G ) . Root it at an internal vertex; for two terminals subdivide its single edge into two edges of the same capacity and use the new vertex as root.
For an edge e e e of this rooted tree, let A e A_e A e be its descendant terminal set. Query c G ( A e ) c_G(A_e) c G ( A e ) and replace the edge capacity by this number. This never increases a capacity: cutting e e e alone is a feasible extension of the terminal cut A e A_e A e , so
c G ( A e ) ≤ R T ′ ( A e ) ≤ cap T ′ ( e ) . c_G(A_e) \le R_{T'}(A_e) \le\operatorname{cap}_{T'}(e). c G ( A e ) ≤ R T ′ ( A e ) ≤ cap T ′ ( e ) .
The resulting canonical hierarchy dominates every G G G -cut by the usual cut triangle inequality, and its extension costs are at most those of T ′ T' T ′ . By (75) and (76) , the explicit choice B = 2 a 2 A B=2a_2A B = 2 a 2 A works. The values a 1 , a 2 a_1,a_2 a 1 , a 2 can be computed by exhaustive evaluation of the distortions of the chosen explicit hierarchies. There are only O ( N ) O(N) O ( N ) newly queried cluster capacities.
Now suppose μ < 4 N t \mu<4Nt μ < 4 N t . The lower inequality in (71) gives c G ( S a u x ) ≤ μ c_G(S_{\mathrm{aux}})\le\mu c G ( S aux ) ≤ μ . Since 4 N t = Λ / ( 4 N ) 4Nt=\Lambda/(4N) 4 N t = Λ/ ( 4 N ) , querying this nontrivial cut proves (74) . Before the decrease every weighted degree is at least Λ \Lambda Λ , so Lemma 36 applies. The next phase therefore starts on at most half as many vertices, independently of the weight spread.
The tree cut sparsifier tradeoff
Proof of Theorem 7 . Fix an absolute constant D ≥ 1 D\ge1 D ≥ 1 large enough that a successful phase on N N N vertices with parameter k k k produces a canonical hierarchy of distortion at most D k L ( N ) 2 K ( N ) 2 DkL(N)^2K(N)^2 D k L ( N ) 2 K ( N ) 2 , by Lemma 40, and that the offline hierarchy of Lemma 28 has distortion at most D L ( N ) K ( N ) DL(N)K(N) D L ( N ) K ( N ) . Choose the constant C C C in the theorem large enough that its lower bound on α \alpha α implies α ≥ 2 D L ( n ) 2 K ( n ) 2 \alpha\ge2DL(n)^2K(n)^2 α ≥ 2 D L ( n ) 2 K ( n ) 2 .
Query the weighted degrees, initialize Λ \Lambda Λ with a singleton of minimum weighted degree, and apply Lemma 35. On the current quotient with N N N vertices, set
k = ⌊ α D L ( N ) 2 K ( N ) 2 ⌋ ≥ 2. k=\left\lfloor\frac{\alpha}{DL(N)^2K(N)^2}\right\rfloor\ge2. k = ⌊ D L ( N ) 2 K ( N ) 2 α ⌋ ≥ 2.
If k ≥ N k\ge N k ≥ N , reconstruct this quotient using O ( N 2 ) O(N^2) O ( N 2 ) queries and compute its offline hierarchy. Its distortion is at most D L ( N ) K ( N ) ≤ α DL(N)K(N)\le\alpha D L ( N ) K ( N ) ≤ α , and the query cost is O ( N α ) O(N\alpha) O ( N α ) . Otherwise run a discovery phase with this k k k : residual preparation (Lemma 37 ), center selection (Lemma 38 ), reconstruction of the rounding quotient and assembly of the auxiliary graph (Lemma 39 ), and the test of Lemma 40. On success, its hierarchy has distortion at most D k L ( N ) 2 K ( N ) 2 ≤ α DkL(N)^2K(N)^2\le\alpha D k L ( N ) 2 K ( N ) 2 ≤ α . On failure, Lemma 40 supplies a smaller witnessed bound; weighted degree normalization then at least halves N N N .
For the query bound, write L = L ( N ) L=L(N) L = L ( N ) and K = K ( N ) K=K(N) K = K ( N ) . Adding the costs stated in the four lemmas, one phase through its test and canonicalization uses
O ( N k L 2 + N 2 k L + N 2 k 2 L 2 + N ) (77) O\left(NkL^2+\frac{N^2}{k}L+\frac{N^2}{k^2}L^2+N\right) \tag*{(77)} O ( N k L 2 + k N 2 L + k 2 N 2 L 2 + N ) (77)
queries, the third term being the O ( p 2 ) O(p^2) O ( p 2 ) reconstruction of the rounding quotient on p p p parts. By (67) , the rounding partition has p ≤ N p\le N p ≤ N parts and p = O ( ( N / k ) L ) p=O((N/k)L) p = O (( N / k ) L ) . Thus p 2 ≤ N p = O ( N 2 L / k ) p^2\le Np=O(N^2L/k) p 2 ≤ N p = O ( N 2 L / k ) . Using this bound for quotient reconstruction in (77) , one phase costs
O ( N k L 2 + N 2 L k + N ) = O ( N α + N 2 L 3 K 2 α ) . O\left(NkL^2+\frac{N^2L}{k}+N\right)=O\left(N\alpha+\frac{N^2L^3K^2}{\alpha}\right). O ( N k L 2 + k N 2 L + N ) = O ( N α + α N 2 L 3 K 2 ) .
since α / ( 2 D L 2 K 2 ) ≤ k ≤ α / ( D L 2 K 2 ) \alpha/(2DL^2K^2)\leq k\leq\alpha/(DL^2K^2) α / ( 2 D L 2 K 2 ) ≤ k ≤ α / ( D L 2 K 2 ) . The successive phase sizes decrease geometrically, so their sum is at most 2 n 2n 2 n and the sum of their squares is O ( n 2 ) O(n^2) O ( n 2 ) . Since L ( N ) ≤ L ( n ) L(N)\leq L(n) L ( N ) ≤ L ( n ) and K ( N ) ≤ K ( n ) K(N)\leq K(n) K ( N ) ≤ K ( n ) , including a possible final reconstruction and the O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) queries for all normalization calls gives
O ( n α + n 2 L ( n ) 3 K ( n ) 2 α + n L ( n ) ) = O ( n 2 α log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) . O\left(n\alpha+\frac{n^2L(n)^3K(n)^2}{\alpha}+nL(n)\right)=O\left(\frac{n^2}{\alpha}\log^3(2n)(\log\log(2n))^2\right). O ( n α + α n 2 L ( n ) 3 K ( n ) 2 + n L ( n ) ) = O ( α n 2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) .
queries in total, where the last step uses α 2 ≤ n \alpha^2\leq n α 2 ≤ n .
Let P \mathcal{P} P be the final partition into contracted classes. Every contraction preserves every minimum cut, so P \mathcal{P} P is safe. The final canonical hierarchy has at most 2 N − 1 ≤ 8 n 2N-1\leq8n 2 N − 1 ≤ 8 n vertices and is the required α \alpha α -tree cut sparsifier of G / P G/\mathcal{P} G / P . The formalization omits the compression of Lemma 34 in Lemma 40 and keeps the hierarchy of J a u x J_{\mathrm{aux}} J aux restricted to the terminals V ( G ) V(G) V ( G ) , which has at most 2 ( N + p ) + 1 ≤ 8 N 2(N+p)+1\leq8N 2 ( N + p ) + 1 ≤ 8 N nodes; this is the source of the bound 8 n 8n 8 n .
The complete algorithm and its query bound
Proof of Theorem 4 . For n = 2 n=2 n = 2 , a singleton query returns a minimizing shore and its value, and the two singletons are the only shores. If n < 2 n<2 n < 2 , there is no proper shore; one may return no shore and value zero by convention, without queries. The theorem concerns n ≥ 2 n\geq2 n ≥ 2 .
First find a maximal forest of the positive support with O ( n log ( 2 n ) ) O(n\log(2n)) O ( n log ( 2 n )) queries by Lemma 9 . If the support is disconnected, return value zero, a proper component as a minimizing shore, and the partition of V V V into components. A cut has value zero exactly when it is a union of components, so the proper unions are exactly the minimum-cut shores, including in the all-zero graph. Otherwise λ = λ ( G ) > 0 \lambda=\lambda(G)>0 λ = λ ( G ) > 0 .
Let C C C be the constant of Theorem 7 , and fix an absolute integer N 0 ≥ 2 N_0\geq2 N 0 ≥ 2 such that
C log 2 ( 2 n ) ( log log ( 2 n ) ) 2 ≤ ⌊ n ⌋ ( n ≥ N 0 ) . C\log^2(2n)(\log\log(2n))^2\leq\lfloor\sqrt{n}\rfloor\qquad(n\geq N_0). C log 2 ( 2 n ) ( log log ( 2 n ) ) 2 ≤ ⌊ n ⌋ ( n ≥ N 0 ) .
Such an N 0 N_0 N 0 exists because every fixed power of a logarithm is o ( n ) o(\sqrt{n}) o ( n ) , and it is fixed before any oracle answer is read. For n < N 0 n<N_0 n < N 0 , reconstruct G G G from its singleton and pair cuts with O ( N 0 2 ) = O ( 1 ) O(N_0^2)=O(1) O ( N 0 2 ) = O ( 1 ) queries and compute a minimum cut offline.
For n ≥ N 0 n\geq N_0 n ≥ N 0 , apply Theorem 7 with α = ⌊ n ⌋ \alpha=\lfloor\sqrt{n}\rfloor α = ⌊ n ⌋ . Using O ( ( n 2 / α ) log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) = O ( n 3 / 2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O((n^2/\alpha)\log^3(2n)(\log\log(2n))^2)=O(n^{3/2}\log^3(2n)(\log\log(2n))^2) O (( n 2 / α ) log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) = O ( n 3/2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) queries, it returns a safe partition P \mathcal{P} P of V ( G ) V(G) V ( G ) and a canonical hierarchy of the quotient G q = G / P G_q=G/\mathcal{P} G q = G / P , on N ≤ n N\leq n N ≤ n vertices and with at most 8 n 8n 8 n nodes, with c G q ( S ) ≤ R ( S ) ≤ α c G q ( S ) c_{G_q}(S)\leq R(S)\leq\alpha c_{G_q}(S) c G q ( S ) ≤ R ( S ) ≤ α c G q ( S ) for every quotient shore S S S (§ 11.23 ). Since P \mathcal{P} P is safe, N ≥ 2 N\geq2 N ≥ 2 , λ ( G q ) = λ > 0 \lambda(G_q)=\lambda>0 λ ( G q ) = λ > 0 , and every minimum cut S q ∗ S_q^* S q ∗ of G q G_q G q satisfies R ( S q ∗ ) < α λ R(S_q^*)<\alpha\lambda R ( S q ∗ ) < α λ . Now apply Theorem 31 to G q G_q G q with B = α B=\alpha B = α . Using O ( N α log 3 ( 2 N ) ( log log ( 2 N ) ) 2 ) = O ( n 3 / 2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O(N\alpha\log^3(2N)(\log\log(2N))^2)=O(n^{3/2}\log^3(2n)(\log\log(2n))^2) O ( N α log 3 ( 2 N ) ( log log ( 2 N ) ) 2 ) = O ( n 3/2 log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) further queries, each of them one query to G G G on a union of classes, it constructs a weak skeleton H q H_q H q of G q G_q G q : λ ( H q ) ≥ λ \lambda(H_q)\geq\lambda λ ( H q ) ≥ λ and c H q ( S q ∗ ) ≤ ( 5 / 4 ) λ c_{H_q}(S_q^*)\leq(5/4)\lambda c H q ( S q ∗ ) ≤ ( 5/4 ) λ for every minimum cut S q ∗ S_q^* S q ∗ of G q G_q G q . The parameter balance happens here: learning costs O ( ( n 2 / α ) log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O((n^2/\alpha)\log^3(2n)(\log\log(2n))^2) O (( n 2 / α ) log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) and conversion O ( n α log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) O(n\alpha\log^3(2n)(\log\log(2n))^2) O ( n α log 3 ( 2 n ) ( log log ( 2 n ) ) 2 ) , and α = Θ ( n ) \alpha=\Theta(\sqrt{n}) α = Θ ( n ) equalizes them.
To produce a skeleton on the original n n n vertices, choose a fixed representative of each contracted class, realize the edges of H q H_q H q between these representatives, and connect the vertices inside each class by any explicit tree. Give every such internal tree edge capacity 2 λ ( H q ) 2\lambda(H_q) 2 λ ( H q ) , a known positive number. Every cut that splits a class has value at least 2 λ ( H q ) 2\lambda(H_q) 2 λ ( H q ) ; cuts respecting all classes have their exact H q H_q H q -values. Therefore the lifted graph H H H satisfies
λ ( H ) = λ ( H q ) ≥ λ . \lambda(H)=\lambda(H_q)\geq\lambda. λ ( H ) = λ ( H q ) ≥ λ .
Since P \mathcal{P} P is safe, every original minimum cut is a union of classes and has its exact H q H_q H q -value, so every original minimum cut has H H H -value at most ( 5 / 4 ) λ (5/4)\lambda ( 5/4 ) λ . Thus H H H is a weak skeleton of G G G , obtained without further oracle queries.
Finally, Lemma 17 supplies O ( log n ) O(\log n) O ( log n ) explicit trees covering every ( 5 / 4 ) (5/4) ( 5/4 ) -minimum cut of H H H , hence every minimum cut of G G G . The algorithm of Theorem 19 finds the minimum G G G -cut over these trees with O ( n log 2 n ) O(n\log^2 n) O ( n log 2 n ) more queries. Query the returned shore once more, if its value has not already been recorded, to learn λ \lambda λ exactly; this adds at most one query. Then apply Theorem 52 with ℓ = λ \ell=\lambda ℓ = λ to each tree and return λ \lambda λ together with the reported shores and their complements. Every minimum cut of G G G , or its complement, crosses at most two edges of some cover tree, so every minimum cut is reported, and every reported shore is a cut of G G G of value λ \lambda λ . A cut may be reported by several of the O ( log n ) O(\log n) O ( log n ) trees, or by one tree as a shore and by another as its complement; the final list is deduplicated offline, at no query cost. This uses O ( n log 2 n ) O(n\log^2 n) O ( n log 2 n ) further queries, independent of the number of minimum cuts.
All choices depend only on n n n , explicit graphs, and previous answers. The estimates give a fixed cap C ′ n ( ⌊ n ⌋ + 1 ) L ( n ) 3 K ( n ) 2 C'n(\lfloor\sqrt n\rfloor+1)L(n)^3K(n)^2 C ′ n (⌊ n ⌋ + 1 ) L ( n ) 3 K ( n ) 2 for a universal constant C ′ C' C ′ . If desired, stop any inconsistent answer path at this cap and return failure. Correctness on every nonnegative weighted graph shows that an honest path never fails. Thus one deterministic decision tree is selected for each n n n before the input graph, and its cap holds for every answer function.
Remark 41 (Where the logarithmic factors are saved). Suppose the offline distortion is a = a ( N ) a=a(N) a = a ( N ) and the guard quality is constant. The two offline hierarchies in discovery give B = O ( k a 2 ) B=O(ka^2) B = O ( k a 2 ) . Refinement costs O ( N B a 2 L ) = O ( N k a 4 L ) O(NBa^2L)=O(Nka^4L) O ( N B a 2 L ) = O ( N k a 4 L ) , while learning center rows costs O ( N 2 L / k ) O(N^2L/k) O ( N 2 L / k ) . Balancing these terms gives
k ≍ N / a 2 , Q ( N ) = O ( N 3 / 2 a 2 L ) . k\asymp\sqrt{N}/a^2,\qquad Q(N)=O(N^{3/2}a^2L). k ≍ N / a 2 , Q ( N ) = O ( N 3/2 a 2 L ) .
A cubic-distortion bound a = O ( L 3 ) a=O(L^3) a = O ( L 3 ) gives L 7 L^7 L 7 , a quadratic bound a = O ( L 2 ) a=O(L^2) a = O ( L 2 ) gives L 5 L^5 L 5 , and the Räcke–Shah bound a = O ( L K ) a=O(LK) a = O ( L K ) gives L 3 K 2 L^3K^2 L 3 K 2 . The constant guard and geometric phase sum are essential to this accounting: neither contributes a hidden factor of L L L .
Remark 42 (The exponent is independent of the terminal sparsifier). Lemma 28 also supplies a canonical tree of height O ( log N ) O(\log N) O ( log N ) . Choose the initial hierarchy of the explicit auxiliary graph and each subsequent refinement hierarchy among such trees. Terminal compression cannot increase diameter, so the initial canonical hierarchy also has height O ( log N ) O(\log N) O ( log N ) .
The elementary guard of Remark 27 then has a uniform quality bound ρ 0 = O ( log ( 2 N ) ) \rho_0=O(\log(2N)) ρ 0 = O ( log ( 2 N )) . The same refinement proof, with γ = ( 100 a 2 ρ 0 2 ) − 1 \gamma=(100a^2\rho_0^2)^{-1} γ = ( 100 a 2 ρ 0 2 ) − 1 , costs O ( N / a 2 ρ 0 2 B log ( 2 N ) ) O(N/a^2\rho_0^2B\log(2N)) O ( N / a 2 ρ 0 2 B log ( 2 N )) until the remaining bound satisfies b < 1 / γ b<1/\gamma b < 1/ γ . The final elementary completion costs
O ( N ρ 0 2 b 2 log ( 2 N ) ) = O ( N a 2 ρ 0 4 B log ( 2 N ) ) = O ( N B log 7 ( 2 N ) ( log log ( 2 N ) ) 2 ) . O(N\rho_0^2b^2\log(2N))=O(Na^2\rho_0^4B\log(2N))=O(NB\log^7(2N)(\log\log(2N))^2). O ( N ρ 0 2 b 2 log ( 2 N )) = O ( N a 2 ρ 0 4 B log ( 2 N )) = O ( N B log 7 ( 2 N ) ( log log ( 2 N ) ) 2 ) .
With B = O ( k log 2 ( 2 N ) ( log log ( 2 N ) ) 2 ) B=O(k\log^2(2N)(\log\log(2N))^2) B = O ( k log 2 ( 2 N ) ( log log ( 2 N ) ) 2 ) and k = ⌈ N ⌉ k=\lceil\sqrt N\rceil k = ⌈ N ⌉ , this gives O ( N 3 / 2 log 9 ( 2 N ) ( log log ( 2 N ) ) 4 ) O(N^{3/2}\log^9(2N)(\log\log(2N))^4) O ( N 3/2 log 9 ( 2 N ) ( log log ( 2 N ) ) 4 ) queries, so the exponent 3 / 2 3/2 3/2 is unchanged. The constant-quality terminal sparsifier improves the logarithmic factor.
Deterministic two-respecting cuts
We prove Theorem 19 using the interested-path and Monge-matrix structure of Gawrychowski, Mozes, and Weimann [10 ] . All input-dependent measurements will be ordinary cut queries. The given tree is any tree on V V V , including one with edges absent from G G G . A cut two-respects the tree when it crosses at most two tree edges; one-edge cuts are included.
Root T T T at any vertex r r r . For a vertex v v v , let T v = sub ( v ) T_v = \operatorname{sub}(v) T v = sub ( v ) be its set of descendants, including v v v . For an edge e = ( parent ( v ) , v ) e = (\operatorname{parent}(v), v) e = ( parent ( v ) , v ) , write A e = T v A_e = T_v A e = T v and a e = c G ( A e ) a_e = c_G(A_e) a e = c G ( A e ) . Two distinct tree edges are independent if their subtrees are disjoint; otherwise one is a proper ancestor of the other.
Lemma 43 (Cut-query identities). *For disjoint A , B ⊆ V A, B \subseteq V A , B ⊆ V ,
2 w ( A , B ) = c G ( A ) + c G ( B ) − c G ( A ∪ B ) . (78) 2w(A,B) = c_G(A) + c_G(B) - c_G(A \cup B). \tag*{(78)} 2 w ( A , B ) = c G ( A ) + c G ( B ) − c G ( A ∪ B ) . (78) *For distinct tree edges e , f e, f e , f , the unique cut, up to complementation, crossing precisely e e e and f f f has the side A e △ A f A_e \mathbin{\triangle} A_f A e △ A f . Its weight
K ( e , f ) = c G ( A e △ A f ) K(e,f) = c_G(A_e \mathbin{\triangle} A_f) K ( e , f ) = c G ( A e △ A f ) can therefore be evaluated with one cut query. Moreover,
K ( e , f ) = a e + a f − 2 w ( A e , A f ) (79) K(e,f) = a_e + a_f - 2w(A_e,A_f) \tag*{(79)} K ( e , f ) = a e + a f − 2 w ( A e , A f ) (79) if e , f e, f e , f are independent,
K ( e , f ) = a e + a f − 2 w ( A f , V ∖ A e ) (80) K(e,f) = a_e + a_f - 2w(A_f,V \setminus A_e) \tag*{(80)} K ( e , f ) = a e + a f − 2 w ( A f , V ∖ A e ) (80) if f f f is below e e e .
Proof. In c G ( A ) + c G ( B ) c_G(A) + c_G(B) c G ( A ) + c G ( B ) , edges between A A A and B B B are counted twice, and all other contributions are exactly c G ( A ∪ B ) c_G(A \cup B) c G ( A ∪ B ) , proving (78) . The indicator of A e A_e A e changes along exactly the tree edge e e e . Taking the exclusive-or of the indicators of A e A_e A e and A f A_f A f gives the assertion about their symmetric difference. Conversely, after choosing the side containing the root, membership in a cut is determined by the tree edges it crosses, so the cut is unique up to complementation. The two displayed formulas follow by cancelling the graph edges counted twice in a e + a f a_e + a_f a e + a f .
Query all a e a_e a e , using n − 1 n - 1 n − 1 queries, and store
λ 1 = min e ∈ E ( T ) a e (81) \lambda_1 = \min_{e \in E(T)} a_e \tag*{(81)} λ 1 = e ∈ E ( T ) min a e (81)
together with a minimizing edge. If λ 1 = 0 \lambda_1 = 0 λ 1 = 0 , return that cut: nonnegative weights make it optimal. Henceforth assume λ 1 > 0 \lambda_1 > 0 λ 1 > 0 , so every a e a_e a e is positive. We only need to ensure that every two-edge cut of weight strictly less than λ 1 \lambda_1 λ 1 is considered. If there is no such cut, the stored one-edge cut is already an answer. This observation handles all equality cases in the strict interest tests.
Interest paths and their deterministic discovery
Two boundary measures for each tree edge
For each tree edge e e e , put A = A e A = A_e A = A e and define two nonnegative additive measures on vertex subsets:
μ e o u t ( X ) = w ( A , X ∖ A ) , (82) \mu_e^{\mathrm{out}}(X) = w(A, X \setminus A), \tag*{(82)} μ e out ( X ) = w ( A , X ∖ A ) , (82)
μ e i n ( X ) = w ( A ∩ X , V ∖ A ) . (83) \mu_e^{\mathrm{in}}(X) = w(A \cap X, V \setminus A). \tag*{(83)} μ e in ( X ) = w ( A ∩ X , V ∖ A ) . (83)
They distribute the weight of the boundary of A A A over its outside endpoints and its inside endpoints, respectively. Both measures have total mass a e a_e a e . The following identities show that each evaluation costs at most two additional cut queries, since a e a_e a e is already stored:
2 μ e o u t ( X ) = a e + c G ( X ∖ A ) − c G ( A ∪ X ) , (84) 2\mu_e^{\mathrm{out}}(X) = a_e + c_G(X \setminus A) - c_G(A \cup X), \tag*{(84)} 2 μ e out ( X ) = a e + c G ( X ∖ A ) − c G ( A ∪ X ) , (84)
2 μ e i n ( X ) = a e + c G ( A ∩ X ) − c G ( A ∖ X ) . (85) 2\mu_e^{\mathrm{in}}(X) = a_e + c_G(A \cap X) - c_G(A \setminus X). \tag*{(85)} 2 μ e in ( X ) = a e + c G ( A ∩ X ) − c G ( A ∖ X ) . (85)
The first follows directly from (78) . For the second, apply (78) to A ∩ X A \cap X A ∩ X and V ∖ A V \setminus A V ∖ A , and use the symmetry of the cut function.
For any nonnegative measure μ \mu μ of total mass D > 0 D > 0 D > 0 , call a vertex v v v heavy for μ \mu μ if
μ ( T v ) > D / 2. \mu(T_v) > D/2. μ ( T v ) > D /2.
The root is heavy. Two incomparable vertices cannot both be heavy, because their subtrees are disjoint. Also, every ancestor of a heavy vertex is heavy. Consequently the heavy vertices are precisely the vertices on a root-to-vertex path.
Let C e C_e C e be this path for μ e o u t \mu_e^{\mathrm{out}} μ e out , and let D e D_e D e be this path for μ e i n \mu_e^{\mathrm{in}} μ e in ; write c e , d e c_e,d_e c e , d e for their last vertices. We use the same symbols for the edge sets of these paths. Thus an edge f f f with lower endpoint v v v belongs to C e C_e C e or D e D_e D e exactly when the corresponding measure of T v T_v T v is greater than a e / 2 a_e/2 a e /2 . A path ending at the root has no edges.
Say that e e e is interested in f f f if f ∈ C e ∪ D e f \in C_e \cup D_e f ∈ C e ∪ D e . For independent edges this is exactly the cross-interest inequality from [10 ] , because
μ e o u t ( A f ) = w ( A e , A f ) , μ e i n ( A f ) = 0. \mu_e^{\mathrm{out}}(A_f) = w(A_e,A_f), \qquad\mu_e^{\mathrm{in}}(A_f) = 0. μ e out ( A f ) = w ( A e , A f ) , μ e in ( A f ) = 0.
If f f f is below e e e , membership in D e D_e D e is exactly the down-interest inequality from that paper. If f f f is an ancestor of e e e , then μ e i n ( A f ) = a e \mu_e^{\mathrm{in}}(A_f) = a_e μ e in ( A f ) = a e , so f ∈ D e f \in D_e f ∈ D e automatically. The measure definition also specifies harmless extra cross-interest tests on ancestors. Its advantage is that the two sets really are entire root paths, without any ambiguity at ancestors or at the root.
Lemma 44 (Interest captures every improvement). If K ( e , f ) < λ 1 K(e,f) < \lambda_1 K ( e , f ) < λ 1 , then e e e is interested in f f f and f f f is interested in e e e .
Proof. If e , f e,f e , f are independent, then K ( e , f ) < λ 1 ≤ a f K(e,f) < \lambda_1 \le a_f K ( e , f ) < λ 1 ≤ a f and (79) imply 2 w ( A e , A f ) > a e 2w(A_e,A_f) > a_e 2 w ( A e , A f ) > a e . Hence f ∈ C e f \in C_e f ∈ C e . Interchanging e e e and f f f gives e ∈ C f e \in C_f e ∈ C f .
If f f f is below e e e , then K ( e , f ) < λ 1 ≤ a f K(e,f) < \lambda_1 \le a_f K ( e , f ) < λ 1 ≤ a f and (80) imply 2 w ( A f , V ∖ A e ) > a e 2w(A_f,V \setminus A_e) > a_e 2 w ( A f , V ∖ A e ) > a e . Hence f ∈ D e f \in D_e f ∈ D e . In the other direction, A f ⊂ A e A_f \subset A_e A f ⊂ A e gives μ f i n ( A e ) = a f > a f / 2 \mu_f^{\mathrm{in}}(A_e) = a_f > a_f/2 μ f in ( A e ) = a f > a f /2 , so e ∈ D f e \in D_f e ∈ D f . The other nesting order is symmetric.
Finding the last heavy vertex without seeing the graph
The centroid search in [10 Section 3.1] is one way of locating interest-path endpoints. In the cut-query model, the following search is convenient: it works directly on a tree of arbitrary degree and requires no auxiliary vertices or infinite-weight edges.
Lemma 45 (Majority-subtree search). Let μ \mu μ be an additive nonnegative measure on V V V , with known total mass D > 0 D > 0 D > 0 , and suppose μ ( X ) \mu(X) μ ( X ) can be evaluated for any specified subset X X X . The deepest vertex c c c with μ ( T c ) > D / 2 \mu(T_c) > D/2 μ ( T c ) > D /2 can be found deterministically with O ( log n ) O(\log n) O ( log n ) measure evaluations.
Proof. Fix a depth-first preorder v 1 , … , v n v_1,\ldots,v_n v 1 , … , v n of T T T ; every rooted subtree is an interval in this order. Let F ( k ) = μ ( { v 1 , … , v k } ) F(k)=\mu(\{v_1,\ldots,v_k\}) F ( k ) = μ ({ v 1 , … , v k }) , with F ( 0 ) = 0 F(0)=0 F ( 0 ) = 0 . Binary search finds the smallest k k k with F ( k ) > D / 2 F(k)>D/2 F ( k ) > D /2 using O ( log n ) O(\log n) O ( log n ) evaluations, since F F F is nondecreasing and F ( n ) = D F(n)=D F ( n ) = D .
Every subtree of mass greater than D / 2 D/2 D /2 contains v k v_k v k . Indeed, if the subtree occupies the interval [ ℓ , u ] [\ell,u] [ ℓ , u ] , then
F ( ℓ − 1 ) ≤ D − μ ( T v ) < D / 2 , F ( u ) ≥ μ ( T v ) > D / 2 , F(\ell-1) \le D-\mu(T_v) < D/2, \qquad F(u) \ge\mu(T_v) > D/2, F ( ℓ − 1 ) ≤ D − μ ( T v ) < D /2 , F ( u ) ≥ μ ( T v ) > D /2 ,
so ℓ ≤ k ≤ u \ell\le k \le u ℓ ≤ k ≤ u . Its root must therefore be an ancestor of v k v_k v k . Along the known path from r r r to v k v_k v k , subtree masses are nonincreasing. A second binary search finds the last vertex whose subtree mass is greater than $D/2, again in O ( log n ) O(\log n) O ( log n ) evaluations. The root satisfies the test, so this last vertex always exists.
Apply this lemma to each of μ e o u t \mu_e^{\mathrm{out}} μ e out and μ e i n \mu_e^{\mathrm{in}} μ e in , using (84) and (85) for the evaluations. Thus all endpoints c e , d e c_e,d_e c e , d e are found with O ( n log n ) O(n\log n) O ( n log n ) cut queries. Only these endpoints are stored; enumerating every edge of every interest path is unnecessary.
A small collection of path-pair problems
Construct a heavy-path decomposition P \mathcal{P} P of the edges of T T T using only its topology. One precise convention is as follows. At each nonleaf vertex choose a child of maximum subtree size, marking the edge to that child heavy and the others light. Continue each incoming edge through the heavy outgoing edge, if one exists. The resulting maximal downward paths partition all tree edges; a nonroot path may begin with a light edge. Omit empty paths. Every root-to-vertex path intersects O ( log n ) O(\log n) O ( log n ) paths of P \mathcal{P} P : each light edge reduces the remaining subtree size by at least a factor of two, and all consecutive heavy edges stay on one path.
For e ∈ P ∈ P e\in P\in\mathcal{P} e ∈ P ∈ P , let I ( e ) \mathcal{I}(e) I ( e ) consist of the paths Q ∈ P ∖ { P } Q\in\mathcal{P}\setminus\{P\} Q ∈ P ∖ { P } that contain an edge of C e ∪ D e C_e\cup D_e C e ∪ D e . Because C e , D e C_e,D_e C e , D e are root paths,
∣ I ( e ) ∣ = O ( log n ) , ∑ e ∈ E ( T ) ∣ I ( e ) ∣ = O ( n log n ) . (86) |\mathcal{I}(e)|=O(\log n),\qquad\sum_{e\in E(T)}|\mathcal{I}(e)|=O(n\log n). \tag*{(86)} ∣ I ( e ) ∣ = O ( log n ) , e ∈ E ( T ) ∑ ∣ I ( e ) ∣ = O ( n log n ) . (86)
The endpoints c e , d e c_e,d_e c e , d e and the decomposition determine these sets without further cut queries. They can be enumerated by jumping upward between heavy paths and deduplicating the two resulting lists.
For distinct P , Q ∈ P P,Q\in\mathcal{P} P , Q ∈ P , define the ordered lists
L P , Q = { e ∈ P : Q ∈ I ( e ) } , L Q , P = { f ∈ Q : P ∈ I ( f ) } , L_{P,Q}=\{e\in P:Q\in\mathcal{I}(e)\},\qquad L_{Q,P}=\{f\in Q:P\in\mathcal{I}(f)\}, L P , Q = { e ∈ P : Q ∈ I ( e )} , L Q , P = { f ∈ Q : P ∈ I ( f )} ,
where each list is initially ordered from the root toward the leaves. Retain the unordered pair { P , Q } \{P,Q\} { P , Q } only when both lists are nonempty. These are the interesting path pairs . They are constructed by producing a record ( P , Q , e ) (P,Q,e) ( P , Q , e ) for each Q ∈ I ( e ) Q\in\mathcal{I}(e) Q ∈ I ( e ) and sorting/grouping the records by their path identifiers. This is computation on known data, with no oracle calls. Equation (86) gives
∑ { P , Q } r e t a i n e d ( ∣ L P , Q ∣ + ∣ L Q , P ∣ ) = O ( n log n ) . (87) \sum_{\{P,Q\}\ \mathrm{retained}}\left(|L_{P,Q}|+|L_{Q,P}|\right)=O(n\log n). \tag*{(87)} { P , Q } retained ∑ ( ∣ L P , Q ∣ + ∣ L Q , P ∣ ) = O ( n log n ) . (87)
In particular there are only O ( n log n ) O(n\log n) O ( n log n ) retained pairs.
If K ( e , f ) < λ 1 K(e,f)<\lambda_1 K ( e , f ) < λ 1 and e , f e,f e , f lie on different paths P , Q P,Q P , Q , Lemma 44 ensures both that { P , Q } \{P,Q\} { P , Q } is retained and that e ∈ L P , Q e\in L_{P,Q} e ∈ L P , Q and f ∈ L Q , P f\in L_{Q,P} f ∈ L Q , P . We will search the entire Cartesian product of these lists. Pairs in this product need not themselves be mutually interested; including such extra pairs is harmless and allows a full Monge matrix to be searched.
Searching the pair-cut matrices
We use the convention that a matrix M M M is Monge when
M [ i , j ] + M [ i ′ , j ′ ] ≤ M [ i , j ′ ] + M [ i ′ , j ] ( i < i ′ , j < j ′ ) . (88) M[i,j]+M[i',j']\le M[i,j']+M[i',j]\qquad(i<i',\ j<j'). \tag*{(88)} M [ i , j ] + M [ i ′ , j ′ ] ≤ M [ i , j ′ ] + M [ i ′ , j ] ( i < i ′ , j < j ′ ) . (88)
The orientations below give this sign, appropriate for finding minima.
Lemma 46 (Full Monge rectangles). Let e 1 , … , e a e_1,\ldots,e_a e 1 , … , e a and f 1 , … , f b f_1,\ldots,f_b f 1 , … , f b be two nonempty lists of tree edges, each taken from a downward path, and put M [ i , j ] = K ( e i , f j ) M[i,j]=K(e_i,f_j) M [ i , j ] = K ( e i , f j ) . The matrix is Monge in either of these cases:
All edges in one list are independent of all edges in the other, and both lists are ordered from the root toward the leaves.
Every e i e_i e i is an ancestor of every f j f_j f j , the e i e_i e i are ordered from the root toward the leaves, and the f j f_j f j are ordered toward the root.
The lists may have gaps along their paths.
Proof. Write A i = A e i A_i = A_{e_i} A i = A e i and B j = A f j B_j = A_{f_j} B j = A f j . In the first case, for i < i ′ i < i' i < i ′ and j < j ′ j < j' j < j ′ we have A i ′ ⊂ A i A_{i'} \subset A_i A i ′ ⊂ A i and B j ′ ⊂ B j B_{j'} \subset B_j B j ′ ⊂ B j , and every A A A -set is disjoint from every B B B -set. The row and column terms in (79) cancel, leaving
M [ i , j ] + M [ i ′ , j ′ ] − M [ i , j ′ ] − M [ i ′ , j ] = − 2 w ( A i ∖ A i ′ , B j ∖ B j ′ ) ≤ 0. M[i,j] + M[i',j'] - M[i,j'] - M[i',j]
= -2w(A_i \setminus A_{i'}, B_j \setminus B_{j'}) \le0. M [ i , j ] + M [ i ′ , j ′ ] − M [ i , j ′ ] − M [ i ′ , j ] = − 2 w ( A i ∖ A i ′ , B j ∖ B j ′ ) ≤ 0.
In the second case A i ′ ⊂ A i A_{i'} \subset A_i A i ′ ⊂ A i and B j ⊂ B j ′ B_j \subset B_{j'} B j ⊂ B j ′ , with B j ′ ⊂ A i ′ B_{j'} \subset A_{i'} B j ′ ⊂ A i ′ . Put R i = V ∖ A i R_i = V \setminus A_i R i = V ∖ A i , so R i ⊂ R i ′ R_i \subset R_{i'} R i ⊂ R i ′ . Equation (80) reads M [ i , j ] = a e i + a f j − 2 w ( B j , R i ) M[i,j] = a_{e_i} + a_{f_j} - 2w(B_j,R_i) M [ i , j ] = a e i + a f j − 2 w ( B j , R i ) , and therefore
M [ i , j ] + M [ i ′ , j ′ ] − M [ i , j ′ ] − M [ i ′ , j ] = − 2 w ( B j ′ ∖ B j , R i ′ ∖ R i ) ≤ 0. M[i,j] + M[i',j'] - M[i,j'] - M[i',j]
= -2w(B_{j'} \setminus B_j, R_{i'} \setminus R_i) \le0. M [ i , j ] + M [ i ′ , j ′ ] − M [ i , j ′ ] − M [ i ′ , j ] = − 2 w ( B j ′ ∖ B j , R i ′ ∖ R i ) ≤ 0.
Both inequalities use nonnegative graph weights. The differences are disjoint sets, and nothing requires consecutive edges in a list.
Lemma 47 (Matrix searching: SMAWK [3 ] ). The minimum entry of a full a × b a \times b a × b Monge matrix, together with its row and column indices, can be found deterministically using O ( a + b ) O(a+b) O ( a + b ) entry evaluations.
To apply the standard theorem, note that leftmost row-minimum indices are nondecreasing in every submatrix of a Monge matrix. Such a matrix is totally monotone for row minima. SMAWK finds those minima using O ( a + b ) O(a+b) O ( a + b ) entry evaluations; comparing their values finds the minimum of the matrix. Each entry evaluation in our application is one cut query by Lemma 43 .
Two different heavy paths
Consider a retained pair P , Q P,Q P , Q and its two lists. Split their Cartesian product into at most two full rectangles so that each rectangle is either wholly independent or wholly nested, as in Lemma 46. Here is why this is possible.
For two edge-disjoint downward paths, either all their edges are independent, or, after possibly swapping their names, an edge of P P P is above an edge of Q Q Q . Such an edge must be above the first edge of Q Q Q , since otherwise it would itself lie on Q Q Q . Thus a prefix of P P P is above every edge of Q Q Q . The remainder of P P P , if nonempty, is independent of every edge of Q Q Q : it has branched away from Q Q Q , since following the branch into or beyond Q Q Q would make the paths share an edge. Thus split the list from P P P into the ancestor part and the independent part, and pair each nonempty part with the entire list from Q Q Q . This argument also covers paths meeting at an endpoint or lying consecutively on the same branch. The split is determined by tree ancestry alone.
Orient each rectangle as in Lemma 46 and apply Lemma 47. The sum of its row and column counts, over the at most two rectangles, is at most 2 ( ∣ L P , Q ∣ + ∣ L Q , P ∣ ) 2(|L_{P,Q}| + |L_{Q,P}|) 2 ( ∣ L P , Q ∣ + ∣ L Q , P ∣ ) . Consequently the total number of cut queries over all retained path pairs is, by (87) ,
O ( ∑ { P , Q } r e t a i n e d ( ∣ L P , Q ∣ + ∣ L Q , P ∣ ) ) = O ( n log n ) . (89) O\left(\sum_{\{P,Q\}\ \mathrm{retained}} \left(|L_{P,Q}| + |L_{Q,P}|\right)\right) = O(n \log n). \tag*{(89)} O { P , Q } retained ∑ ( ∣ L P , Q ∣ + ∣ L Q , P ∣ ) = O ( n log n ) . (89)
Two edges on the same heavy path
Let P P P have k k k edges in root-to-leaf order. If k ≤ 1 k \le1 k ≤ 1 , there is nothing to search. Otherwise split P P P into an upper half U U U and a lower half W W W , of sizes differing by at most one. Every edge of U U U is an ancestor of every edge of W W W . Search all pairs in U × W U \times W U × W using the nested orientation in Lemma 46 and SMAWK, at a cost of O ( k ) O(k) O ( k ) cut queries. Then recurse on each half.
Every pair of distinct edges is separated at exactly one split, so it occurs in one of the searched rectangles. At each recursion depth the subpaths have total length at most k k k , and there are O ( log ( k + 1 ) ) O(\log(k+1)) O ( log ( k + 1 )) depths. This costs O ( k log ( k + 1 ) ) O(k\log(k+1)) O ( k log ( k + 1 )) queries for P P P , and hence
∑ P ∈ P O ( ∣ P ∣ log ( ∣ P ∣ + 1 ) ) = O ( n log n ) (90) \sum_{P\in\mathcal{P}} O(|P|\log(|P|+1)) = O(n\log n) \tag*{(90)} P ∈ P ∑ O ( ∣ P ∣ log ( ∣ P ∣ + 1 )) = O ( n log n ) (90)
over all heavy paths. This avoids searching a partial matrix or assigning artificial entries to its diagonal.
The algorithm, correctness, and query count
The complete algorithm is the following.
Root the given tree and compute its preorder, ancestry information, and heavy-path decomposition. Query all a e a_e a e , store a minimum one-edge cut, and return it immediately if its weight is zero.
Compute c e , d e c_e,d_e c e , d e for every edge using the two measure oracles and Lemma 45 .
Construct the interested-edge lists and retained path pairs. Search their full Monge rectangles, retaining a minimum entry and its two defining tree edges.
Search pairs on each individual heavy path by the balanced recursion above, again retaining the best pair.
Return the lightest candidate among the stored one-edge cut and all pairs found. For a pair e , f e,f e , f , output A e △ A f A_e \mathbin{\triangle} A_f A e △ A f ; for a single edge e e e , output A e A_e A e .
Proof of Theorem 19 . Every candidate returned by a search is a valid nontrivial cut crossing one or two tree edges, so no candidate is lighter than the optimum OPT among those cuts. If O P T = λ 1 \mathrm{OPT}=\lambda_1 OPT = λ 1 , the stored one-edge cut is optimal. Otherwise an optimal cut is determined by distinct edges e , f e,f e , f and has K ( e , f ) = O P T < λ 1 K(e,f)=\mathrm{OPT}<\lambda_1 K ( e , f ) = OPT < λ 1 . If e , f e,f e , f lie on the same heavy path, their pair occurs in a rectangle of the same-path recursion. If they lie on different paths, then Lemma 44 puts them in the two lists of a retained pair, and the splitting step puts them together in one of its rectangles. That rectangle’s minimum is at most K ( e , f ) K(e,f) K ( e , f ) and is itself a feasible cut. In either case the algorithm finds a cut of weight OPT.
The query bounds are
Table 1.
Their sum is O ( n log n ) O(n\log n) O ( n log n ) .
All minimum cuts respecting a tree
The algorithm above discards ties on purpose: it only has to consider two-edge cuts strictly lighter than λ 1 \lambda_1 λ 1 . To report every cut at a given level, three changes are needed: a search for the weakly heavy vertices of a measure, a weak form of interest that captures ties, and a listing of all minima of a Monge matrix.
Weak heaviness and weak interest
For a nonnegative measure μ \mu μ of total mass D > 0 D > 0 D > 0 , call v v v weakly heavy if μ ( T v ) ≥ D / 2 \mu(T_v) \ge D/2 μ ( T v ) ≥ D /2 . Unlike heavy vertices, two incomparable vertices can both be weakly heavy: a root with two children each carrying mass D / 2 D/2 D /2 . Every ancestor of a weakly heavy vertex is weakly heavy.
Lemma 48 (Weak majority search). Let μ \mu μ be an additive nonnegative measure with known total mass D > 0 D > 0 D > 0 that can be evaluated on any specified set. The weakly heavy vertices are the vertices of two root-to-vertex paths, and their endpoints can be found deterministically with O ( log n ) O(\log n) O ( log n ) evaluations.
Proof. Use the preorder and the prefix masses F ( k ) F(k) F ( k ) of Lemma 45 . Binary search finds the least k 1 k_1 k 1 with F ( k 1 ) ≥ D / 3 F(k_1) \ge D/3 F ( k 1 ) ≥ D /3 and the least k 2 k_2 k 2 with F ( k 2 ) ≥ 2 D / 3 F(k_2) \ge2D/3 F ( k 2 ) ≥ 2 D /3 . A subtree occupying the interval [ ℓ , u ] [\ell, u] [ ℓ , u ] that contains neither k 1 k_1 k 1 nor k 2 k_2 k 2 has mass less than D / 3 D/3 D /3 if u < k 1 u < k_1 u < k 1 , mass F ( u ) − F ( ℓ − 1 ) < 2 D / 3 − D / 3 F(u) - F(\ell- 1) < 2D/3 - D/3 F ( u ) − F ( ℓ − 1 ) < 2 D /3 − D /3 if k 1 < ℓ k_1 < \ell k 1 < ℓ and u < k 2 u < k_2 u < k 2 , and mass at most D − F ( ℓ − 1 ) ≤ D / 3 D - F(\ell- 1) \le D/3 D − F ( ℓ − 1 ) ≤ D /3 if ℓ > k 2 \ell> k_2 ℓ > k 2 . Since D > 0 D > 0 D > 0 , these are all below D / 2 D/2 D /2 . So the root of every weakly heavy subtree is an ancestor of v k 1 v_{k_1} v k 1 or of v k 2 v_{k_2} v k 2 . Subtree masses are nonincreasing along each root path and the root is weakly heavy, so a binary search along each of the two root paths finds the deepest weakly heavy vertex on it.
Let C e ′ C'_e C e ′ and D e ′ D'_e D e ′ be the sets of weakly heavy vertices for μ e o u t \mu^{\mathrm{out}}_e μ e out and μ e i n \mu^{\mathrm{in}}_e μ e in , each a union of at most two root paths, and say that e e e is weakly interested in f f f if the lower endpoint of f f f lies in C e ′ ∪ D e ′ C'_e \cup D'_e C e ′ ∪ D e ′ . Since this set is a union of at most four root paths, (86) holds for weak interest with a larger constant, and Lemma 48 finds the four endpoints with O ( log n ) O(\log n) O ( log n ) cut queries per edge.
Lemma 49 (Weak interest captures every tie). If a e , a f > 0 a_e, a_f > 0 a e , a f > 0 and K ( e , f ) ≤ min { a e , a f } K(e, f) \le\min\{a_e, a_f\} K ( e , f ) ≤ min { a e , a f } , then e e e is weakly interested in f f f and f f f is weakly interested in e e e .
Proof. This is the proof of Lemma 44 with strict inequalities relaxed. If e , f e, f e , f are independent, K ( e , f ) ≤ a f K(e, f) \le a_f K ( e , f ) ≤ a f and (79) give 2 w ( A e , A f ) ≥ a e 2w(A_e, A_f) \ge a_e 2 w ( A e , A f ) ≥ a e , that is, μ e o u t ( A f ) ≥ a e / 2 \mu^{\mathrm{out}}_e(A_f) \ge a_e/2 μ e out ( A f ) ≥ a e /2 , so the lower endpoint of f f f is weakly heavy for μ e o u t \mu^{\mathrm{out}}_e μ e out ; interchanging e e e and f f f gives the other direction. If f f f is below e e e , K ( e , f ) ≤ a f K(e, f) \le a_f K ( e , f ) ≤ a f and (80) give 2 w ( A f , V ∖ A e ) ≥ a e 2w(A_f, V \setminus A_e) \ge a_e 2 w ( A f , V ∖ A e ) ≥ a e , that is, μ e i n ( A f ) ≥ a e / 2 \mu^{\mathrm{in}}_e(A_f) \ge a_e/2 μ e in ( A f ) ≥ a e /2 , while A f ⊆ A e A_f \subseteq A_e A f ⊆ A e gives μ f i n ( A e ) = a f ≥ a f / 2 \mu^{\mathrm{in}}_f(A_e) = a_f \ge a_f/2 μ f in ( A e ) = a f ≥ a f /2 .
All minima of a Monge matrix
Lemma 50 (Opposite minimum corners). Let M M M be Monge, ℓ ≤ M [ i , j ] \ell\le M[i,j] ℓ ≤ M [ i , j ] for all entries, i < k i < k i < k , ℓ ≤ j < r \ell\le j < r ℓ ≤ j < r , and M [ i , r ] = M [ k , ℓ ] = ℓ M[i,r] = M[k,\ell] = \ell M [ i , r ] = M [ k , ℓ ] = ℓ . Then M [ i , j ] = M [ k , j ] M[i,j] = M[k,j] M [ i , j ] = M [ k , j ] .
Proof. If ℓ = r \ell= r ℓ = r then j = ℓ = r j = \ell= r j = ℓ = r and both entries equal ℓ \ell ℓ . Otherwise the Monge inequality for rows i < k i < k i < k and columns ℓ < r \ell< r ℓ < r gives M [ i , ℓ ] + M [ k , r ] ≤ M [ i , r ] + M [ k , ℓ ] = 2 ℓ M[i,\ell] + M[k,r] \le M[i,r] + M[k,\ell] = 2\ell M [ i , ℓ ] + M [ k , r ] ≤ M [ i , r ] + M [ k , ℓ ] = 2 ℓ , so M [ i , ℓ ] = M [ k , r ] = ℓ M[i,\ell] = M[k,r] = \ell M [ i , ℓ ] = M [ k , r ] = ℓ . If j < r j < r j < r , the inequality for columns j < r j < r j < r gives M [ i , j ] ≤ M [ k , j ] M[i,j] \le M[k,j] M [ i , j ] ≤ M [ k , j ] ; if j = r j = r j = r both entries equal ℓ \ell ℓ . Symmetrically, columns ℓ < j \ell< j ℓ < j give M [ k , j ] ≤ M [ i , j ] M[k,j] \le M[i,j] M [ k , j ] ≤ M [ i , j ] , and j = ℓ j = \ell j = ℓ gives equality directly.*
Lemma 51 (All minima of a Monge matrix). Let M M M be a full a × b a \times b a × b Monge matrix and ℓ \ell ℓ a known number with ℓ ≤ M [ i , j ] \ell\le M[i,j] ℓ ≤ M [ i , j ] for all entries. The set of entries equal to ℓ \ell ℓ can be listed deterministically with O ( a + b ) O(a+b) O ( a + b ) entry evaluations, independently of its size.
Proof. Find the leftmost minimum L i L_i L i of every row by SMAWK, and the rightmost minimum R i R_i R i by SMAWK applied with both the row and the column orders reversed, which keeps the Monge property (reversing only the columns would not). Evaluate M [ i , L i ] M[i,L_i] M [ i , L i ] for every row and call the row active if the value is ℓ \ell ℓ . For each column j j j , let A j A_j A j be the active rows with L i ≤ j ≤ R i L_i \le j \le R_i L i ≤ j ≤ R i . If A j ≠ ∅ A_j \ne\varnothing A j = ∅ , evaluate one entry M [ i 0 , j ] M[i_0,j] M [ i 0 , j ] with i 0 ∈ A j i_0 \in A_j i 0 ∈ A j and report all of A j × { j } A_j \times\{j\} A j × { j } if it equals ℓ \ell ℓ . By Lemma 50 , all entries of A j × { j } A_j \times\{j\} A j × { j } are equal, so every reported entry is ℓ \ell ℓ . Conversely, if M [ i , j ] = ℓ M[i,j] = \ell M [ i , j ] = ℓ , then row i i i is active and L i ≤ j ≤ R i L_i \le j \le R_i L i ≤ j ≤ R i , so ( i , j ) (i,j) ( i , j ) is reported. The evaluations are two SMAWK runs, a a a row values and at most b b b column representatives.
The minima of one row need not be contiguous: two equal rows ( 0 , 1 , 0 ) (0,1,0) ( 0 , 1 , 0 ) form a Monge matrix whose row minima are separated by a gap. The representative evaluation in each column is what handles this.
The reporting theorem
Theorem 52 (All two-respecting cuts at a lower level). Given an explicit tree T T T on V ( G ) V(G) V ( G ) and a number ℓ > 0 \ell> 0 ℓ > 0 such that every cut crossing at most two edges of T T T has weight at least ℓ \ell ℓ , all such cuts of weight exactly ℓ \ell ℓ can be listed deterministically with O ( n log n ) O(n \log n) O ( n log n ) cut queries, independently of their number.
Proof. Run the algorithm of this section with three changes. First, in step 2 compute the weakly heavy paths of Lemma 48 for both measures of every edge, and build the interested-edge lists and retained path pairs from weak interest. Second, in steps 3 and 4 replace SMAWK by Lemma 51 at level ℓ \ell ℓ in every full Monge rectangle, including those of the same-path recursion; every entry of such a rectangle is a cut crossing two tree edges, so ℓ \ell ℓ is a lower bound on all entries, as that lemma requires. Third, report A e A_e A e for every one-edge cut whose value a e a_e a e , queried in step 1, equals ℓ \ell ℓ , and report A e △ A f A_e \mathbin{\triangle} A_f A e △ A f for every pair ( e , f ) (e,f) ( e , f ) listed by Lemma 51 ; no candidate is queried again. Distinct listed pairs give distinct shores, since a shore crossing exactly the tree edges e e e and f f f determines the pair, so no shore is listed twice.
Every reported shore is a cut crossing at most two tree edges whose weight is exactly ℓ \ell ℓ . Conversely, let e ≠ f e \ne f e = f with K ( e , f ) = ℓ K(e,f) = \ell K ( e , f ) = ℓ . Then a e , a f ≥ ℓ = K ( e , f ) a_e,a_f \ge\ell= K(e,f) a e , a f ≥ ℓ = K ( e , f ) and a e , a f > 0 a_e,a_f > 0 a e , a f > 0 , so Lemma 49 makes e e e and f f f weakly interested in each other. If they lie on different heavy paths, they belong to the two lists of a retained pair and the splitting step puts them in one rectangle; if they lie on the same path, the recursion separates them in one rectangle. In both cases Lemma 51 lists the pair. One-edge cuts of weight ℓ \ell ℓ are reported directly. The query counts are those of the table above with larger constants: O ( log n ) O(\log n) O ( log n ) evaluations per edge for the four path endpoints, and O ( a + b ) O(a+b) O ( a + b ) evaluations per a × b a \times b a × b rectangle.
Corollary 53.
With ℓ = λ ( G ) > 0 \ell= \lambda(G) > 0 ℓ = λ ( G ) > 0 , the algorithm lists every minimum cut of G G G that crosses at most two edges of T T T .
If every cut crossing at most two edges of T T T has positive weight, for instance if λ ( G ) > 0 \lambda(G) > 0 λ ( G ) > 0 , all cuts of least weight among them can be listed with O ( n log n ) O(n \log n) O ( n log n ) queries: take ℓ \ell ℓ to be the value found by Theorem 19 .
Proof. For the first part, every cut of G G G has weight at least λ ( G ) \lambda(G) λ ( G ) , so the hypothesis of Theorem 52 holds with ℓ = λ ( G ) \ell= \lambda(G) ℓ = λ ( G ) . For the second, the least weight ℓ \ell ℓ of a cut crossing at most two edges is found by Theorem 19 with O ( n log n ) O(n \log n) O ( n log n ) queries and is positive by assumption, so Theorem 52 applies.
Statement on AI use
I started with the problem of finding an upper bound on the certificate complexity of global minimum cut. Before using AI, I had a proof of an O ~ ( n 3 / 2 ) \widetilde{O}(n^{3/2}) O ( n 3/2 ) upper bound on certificate complexity for the complete graph, based on a two-case argument handling small and large shores separately. I gave this proof to GPT-6 Astra, which produced an O ~ ( n 3 / 2 ) \widetilde{O}(n^{3/2}) O ( n 3/2 ) upper bound for a general graph, again using a two-case argument. As part of this argument, it developed an O ( n ) O(n) O ( n ) certificate for the maximum s s s –t t t flow value. When I saw this, I suggested applying it within the isolating-cuts framework of Li and Panigrahi [17 ] . Astra then came up with the terminal-halving argument to obtain the O ( n log 2 n ) O(n\log^2 n) O ( n log 2 n ) certificate.
My work on the deterministic algorithm for global minimum cut began before I used AI, in a conversation with Paweł Gawrychowski. He told me that the minimum two-respecting-cut algorithm in his joint work with Shay Mozes and Oren Weimann [10 ] also worked deterministically in the cut query model, using O ~ ( n ) \widetilde{O}(n) O ( n ) queries. I wondered whether this could form the basis of a deterministic cut-query algorithm, rather than the flow-based approach of Anand, Saranurak, and Wang [5 ] . I asked GPT-6 Astra to try this approach. It quickly wrote up the minimum 2-respecting cut proof in the cut query model and understood the obstacle of coming up with a small set of trees such that a minimum cut of the input graph 2-respected at least one of them. With further guided prompting, it produced the argument to construct a weak skeleton.
I used Claude Opus 5.5 and GPT-6 Astra to assist with drafting and reviewing the manuscript. The Lean formalization was done with Claude Opus 5.5 as the main driver and using GPT-6 Astra to review the code and documentation after each session.
References
Correspondence with the Lean formalization
The Lean library is at https://github.com/troyjlee/cut-query-complexity , and the correspondence below refers to its version 0.1.0 [14 ] . Declaration names below are relative to the namespace CutQueryComplexity. Every algorithmic statement is a decision tree (DTree) or a query program (Search.Comp) selected from n n n and the public parameters before the hidden graph; its query cap holds for every answer function, and its correctness for every nonnegative weighted graph on the stated vertex set. Certificate statements quantify over every nonnegative weighted competitor on the same vertex set. The library’s integer logarithms are L ( n ) = max { 1 , ⌈ log 2 ( 2 n ) ⌉ } L(n) = \max\{1,\lceil\log_2(2n)\rceil\} L ( n ) = max { 1 , ⌈ log 2 ( 2 n )⌉} (DetMinCut.logL) and K ( n ) = L ( L ( n ) ) K(n) = L(L(n)) K ( n ) = L ( L ( n )) ; the statements in natural logarithms follow from L ( n ) ≤ 3 log ( 2 n ) L(n) \le3\log(2n) L ( n ) ≤ 3 log ( 2 n ) and K ( n ) ≤ 7 log log ( 2 n ) K(n) \le7\log\log(2n) K ( n ) ≤ 7 log log ( 2 n ) for n ≥ 2 n \ge2 n ≥ 2 . Each endpoint is restated literally and audited in CutQueryComplexityChecks/Endpoints.lean; the only axioms in their transitive closure are propext, Classical.choice and Quot.sound.
The quantity cert ( G ) \operatorname{cert}(G) cert ( G ) of (1) is Certificate.certificateComplexity, the least cardinality of a family of shores satisfying Certificate.IsMinCutCertificate; the minimum is attained (Certificate.exists_certificate_card_eq), and for n ≥ 2 n \ge2 n ≥ 2 the empty family certifies nothing (Certificate.one_le_certificateComplexity). The lower bound cert ( G ) ≤ D ( λ ) \operatorname{cert}(G) \le D(\lambda) cert ( G ) ≤ D ( λ ) on the deterministic cut-query complexity of the minimum-cut value is Certificate.certificateComplexity_le_minCutValueComplexity, with the instance-wise form Certificate.certificateComplexity_le_cost: a correct decision tree asks at least cert ( G ) \operatorname{cert}(G) cert ( G ) shores on input G G G . Remarks 14 and 33 are not formalized: no Lean statement bounds the number of edges of a skeleton, and all constants are explicit, so no calibration is needed.
Table 2.
Table 5.
Table 3.
Table 4.