Manuscript Offprint
arXiv:2611.06906A Simple Subquadratic Cut Query Protocol for Directed Reachability
Abstract
We study reachability in an unweighted directed graph on vertices, accessed through a directed cut oracle: given , the oracle returns the number of edges directed from to . Directed cut functions are submodular, and reachability asks whether the minimum cut has positive value. This connects the problem to the query complexity of submodular function minimisation. Whether or not reachability can be solved in truly subquadratic query complexity has been an outstanding open question for a decade.
We give a simple algorithmic blueprint with two randomised implementations. The first uses outgoing-cut queries; the second improves this bound to . The common idea is to construct an alternative orientation with the same underlying undirected graph and vertex-wise degree imbalances, thereby preserving reachability. We first approximate the target imbalances using an averaging and rounding procedure, then correct the remaining error with a flow.
An earlier manuscript, made available in August 2026 in an online AI repository, reports an query bound. Our contribution is a simple and comprehensible alternative approach that already achieves a polynomial saving over quadratic query complexity.
*Carnegie Mellon University, USA †University of Birmingham, UK ‡University of Sheffield, UK
Contents
1 Introduction 1 1.1 Our contribution 2
2 Preliminaries 2
3 An Algorithmic Blueprint and the Query Protocol 5 3.1 Reduction to constructing an orientation rule 6 3.2 Constructing an approximate orientation rule 7 3.3 Repairing the imbalance by a flow 10 3.4 The resulting query bounds 12
4 Missing Proofs of Query Protocol 12 4.1 An online optimisation black box 12 4.2 Analysis of averaging and rounding 13
5 AI Disclosure 17
A A Faster Implementation: Queries 20 A.1 An online optimisation black box with predictions 20 A.2 Averaging fractional orientations 21 A.3 Rounding one bit at a time 22 A.4 Putting the faster implementation together 24
B Balanced Orientations by Completing a Partial Orientation 24 B.1 Completing a partial orientation 24 B.2 Constructing a suitable reserve 25
C The Flow Subroutine 26 C.1 Proof of Lemma C.2 part (b) 28 C.2 Why explicit flow recovery depends on 34
D Extension to General Unweighted Digraphs 36 D.1 Multi-orientation rules and the reduction from Section 3.1 36 D.2 Cut-query primitives on the multigraph 37 D.3 The first two steps of the warm-up algorithm 37 D.4 Repairing the multi-orientation rule using flow 38 D.5 The faster algorithm 38
ii
Graph cut queries. Graph cut functions provide a natural setting for this investigation. A value query to a cut function specifies a vertex set and returns the number, or total weight, of edges crossing the corresponding cut. This gives the cut-query model, introduced by Rubinstein, Schramm, and Weinberg [RSW18], in which an algorithm accesses the graph only through such queries. The goal is to exploit the structure of graph cuts without assuming direct access to individual edges. For undirected graphs, this has led to efficient algorithms: connectivity, the global minimum cut, and bipartite matching can be computed using randomised cut queries [AEG+22, MN20, BvdBE+22]; -minimum cut can be computed using deterministic cut queries [ASW25] and using randomised cut queries [JNS26]. The latter was quickly improved to an all-pairs minimum cut algorithm using randomised cut queries [KK26b].
Directed graphs present a different challenge. Consider the basic question of reachability, i.e., whether is reachable from . For undirected graphs, this is a question of connectivity which is easy in the cut-query model: a standard BFS or DFS can be implemented using cut queries. For directed graphs, however, the same approach does not work. Although outgoing-cut queries to a directed graph allow us to simulate undirected cut queries to its underlying undirected graph , they do not reveal the directions of individual edges. In fact, even knowing the answers to all outgoing-cut queries does not suffice to recover these directions. For example, reversing all edges of a directed triangle leaves every outgoing-cut value unchanged. Thus, the straightforward graph-search approach for undirected connectivity does not extend to directed reachability.
Nevertheless, directed reachability is closely related to submodular function minimisation. A vertex is unreachable from precisely when there exists a set containing but not with no outgoing edge. Thus deciding reachability is equivalent to determining whether there is a cut separating and that has value 0. Fixing inside the set and outside gives a submodular minimisation problem on the remaining vertices. Consequently, a superlinear randomised cut-query lower bound for directed reachability would also imply a superlinear value-query lower bound for general submodular function minimisation.
Recent work has obtained efficient reachability algorithms for directed acyclic graphs [KPS26, BTN26]. These works highlight the general directed case, for which the bounds they record are and . The question is therefore whether one can obtain a polynomial, rather than merely logarithmic, saving over quadratic query complexity. Here we develop a simple algorithmic blueprint that achieves such a saving for general unweighted directed graphs.
For deterministic algorithms, an lower bound is known [CGJS22].
1.1 Our contribution
Our main contributions are two directed cut query algorithms for s-t reachability on unweighted digraphs, one achieving query complexity, thus already breaking the quadratic barrier, and an improvement of this algorithm to achieve query complexity. To state these results here, we assume that the directed graph is oriented (i.e., no 2-cycle is present). This constraint can be removed with minimal modifications to the algorithms, as described in Appendix D.
Theorem 1.1 (Warm-up protocol). There is a randomised zero-error algorithm for directed s-t reachability in oriented graphs using outgoing-cut queries in expectation and with high probability.
Theorem 1.2 (Faster protocol). There is a randomised zero-error algorithm for directed s-t reachability in oriented graphs using outgoing-cut queries in expectation and with high probability.
The common idea is to construct an orientation rule that assigns a direction to every unordered pair of distinct vertices, and whose induced orientation of the underlying undirected graph of G has the same vertex imbalances as G. This preserves all outgoing-cut values and hence reachability (as observed in [GKMM26]). We first construct a sequence of (possibly fractional) orientation rules whose average induces vertex imbalances close to those of G. We then round this average to obtain an integral orientation rule and repair the remaining imbalance by reversing edges carrying a suitable flow. The two implementations differ in how they construct and round the average; the reduction and flow repair are the same.
Remark 1.3 (Why two implementations?). We include the warm-up for its pedagogical value: it presents the main ideas in a simple implementation that already achieves subquadratic query complexity. This lets the reader understand the blueprint before encountering the additional machinery needed for the faster bound. The faster implementation then shows how to improve the bound within the same blueprint, by refining the averaging and rounding steps while leaving the reduction and flow repair unchanged.
Remark 1.4 (Recent work). A recent unpublished AI-generated manuscript, which appeared in an online repository in August 2026, reports an algorithm [Dir26]. However, its technical exposition is difficult to follow, making the underlying algorithmic ideas and their analysis hard to understand and verify. Our algorithms were also initially discovered through interactive prompting of LLMs (see Section 5 for our AI disclosure), with the explicit goal of finding a substantially simpler and more transparent approach that already achieves a subquadratic upper bound, even though our bound is weaker. We sketch the main technical differences from [Dir26] in Section 3.
Organisation. We first mention the cut query primitives that we use in this work in Section 2. These primitives are standard, and readers who are familiar can jump directly to Section 3, which presents the blueprint and its warm-up implementation. Section 4 proves the averaging and rounding guarantees that are used but not proved in Section 3. Appendices A and B give the faster implementation. We provide the adaptation of [ASW25] that we use in our work in Appendix C.
2 Preliminaries
We collect the definitions and cut-query operations used in the rest of this section. Many of these are mentioned in previous works (for example, in [RSW18, MN20, AEG 22, KK26a, JNS26, KK26b, KPS26], to name a few) and are standard. We provide them here for completeness.
Graph notation. All graphs have labelled vertices and no loops. Throughout the main text, directed graphs have at most one edge between each unordered pair of vertices. For a directed graph , its undirected skeleton is the simple undirected graph obtained by removing the edge directions. The imbalance at a vertex is
For , its outgoing-cut value is
An outgoing-cut query specifies and returns .
For a simple undirected graph , write
An undirected cut query specifies and returns . For distinct vertices , let indicate whether is an edge of . Write for the edges with both endpoints in , and for the edges crossing the cut .
Definition 2.1 (Orientation rule). An orientation rule on a vertex set assigns a direction to every unordered pair of distinct vertices. We write when the assigned direction is . The direction of a pair can be evaluated from the data specifying the rule.
For a simple undirected graph on , the induced orientation is obtained by restricting to the edges of :
Here is a directed graph and represents its edge set. We say that matches an imbalance vector on if .
An imbalance vector is feasible for if some orientation of has imbalance vector . The rule itself is defined on , independently of which pairs are edges of .
In the following primitives, has vertices and is accessible through undirected cut queries. Any supplied orientation rule or predicate can be evaluated without queries to .
Counting edges between sets. For disjoint sets , define
Observation 2.2 (Edge-counting identity). For any two disjoint sets ,
Consequently, can be computed using three undirected cut queries.
Indeed, edges between and are counted twice in the numerator, while the contributions of all other edges cancel. In particular, for a vertex and a set , we can count the neighbours of in using queries. Taking to be a singleton also determines whether a specified pair is an edge.
Finding a neighbour. The edge-counting identity also allows us to find a neighbour within a specified set.
Lemma 2.3 (Neighbour search). Given a vertex and a set , we can find a neighbour of in , or certify that none exists, using undirected cut queries.
Proof. Use Observation 2.2 to compute . If this is zero, no such neighbour exists. Otherwise, partition into two nearly equal sets and compute . If this count is positive, continue with ; otherwise, continue with , which must contain a neighbour. Each iteration uses queries and reduces the candidate set by approximately half. After iterations, the remaining vertex is a neighbour of .
Subgraphs specified by known pairs. We will also need to work with subgraphs of without learning all their edges. Suppose we are explicitly given a family of potential pairs. Let be the subgraph of consisting of the edges belonging to , i.e.,
The following lemma shows that several basic operations on can be implemented using cut queries to .
Lemma 2.4 (Operations on subgraphs). Let be defined as above. Using undirected cut queries to , we can:
-
For any vertex and set , count the neighbours of in in using queries, or find one such neighbour (or certify its absence) using queries.
-
Count the number of edges of using queries.
-
Enumerate all edges of using queries.
-
Find a spanning forest of using queries.
Proof. For a vertex and a set , define
The neighbours of in in are exactly the neighbours of in in . Thus, their number is , which can be computed using queries by Observation 2.2. Similarly, Lemma 2.3 finds one such neighbour, or certifies its absence, using queries. This proves the first claim.
For the second claim, apply the first claim with to compute the degree of every vertex in . Summing the degrees and dividing by two gives the number of edges of .
To enumerate the edges of , consider each vertex and repeatedly find and remove its neighbours from the candidate set until none remains. Each edge is found exactly once. There are successful searches and at most unsuccessful searches, giving queries.
Finally, we can find a spanning forest of by graph search. Starting from an arbitrary vertex, repeatedly find neighbours outside the set of reached vertices, marking a vertex finished when no such neighbour exists. Once a component is exhausted, restart from an unreached vertex. There are at most successful searches and unsuccessful searches, giving queries.
Notice that the lemma does not imply that an arbitrary cut query to can be simulated using cut queries to .
Evaluating the imbalance of an induced orientation.
Observation 2.5 (Computing the imbalance vector). Given an orientation rule and undirected cut-query access to , the imbalance vector of the induced orientation can be computed using cut queries.
Proof. For each vertex , let
By the definition of imbalance,
Each count can be computed using queries by Observation 2.2, giving queries in total.
Finally, we make the following simple observation.
Observation 2.6 (Skeleton cuts and imbalance). Let be an oriented graph and its undirected skeleton. Then, for every and ,
Consequently, an undirected cut query to can be simulated using two outgoing-cut queries to , and the entire imbalance vector can be computed using outgoing-cut queries.
3 An Algorithmic Blueprint and the Query Protocol
Our algorithm has three parts.
- Reduction to constructing an orientation rule. Let be the undirected skeleton of the input graph , and let . We show that every orientation of with imbalance vector has the same reachability relation as (Lemma 3.2). Thus we need not recover the original edge directions.
Instead, we construct an orientation rule that assigns a direction to every unordered pair of distinct vertices. Restricting this rule to the edges of gives its induced orientation . Our task is to construct a rule with , without learning all the edges of , and then solve reachability in .
-
Approximating the target imbalance. We first construct an orientation rule whose induced orientation has imbalance close to in distance. Both the warm-up and the faster implementation use averaging and rounding for this step.
-
Repairing the remaining error by a flow. Once is obtained, we give every edge of unit capacity and find an integral flow whose net outgoing flow at each vertex equals . We show that such a flow always exists and can be found with cut query access to (Lemma 3.11). Reversing the edges carrying one unit of flow gives an orientation with imbalance exactly . These reversals define a new orientation rule, whose induced orientation therefore preserves the reachability relation of .
In this section, we also explain how to implement the blueprint using cut queries for the warm-up algorithm. The algorithm uses the same reduction and flow repair, but improves the averaging and rounding procedures used in the second step. We defer its implementation to §A.
Comparison to [Dir26]. Our approach shares a similar template with the earlier work [Dir26]. First, [Dir26] reduces the problem of reachability to computing a fractional orientation rule inducing an imbalance vector with . Since need not be integral, it induces an edge weighting instead of an orientation. But, being such a good approximation of implies that cuts in have weight at least if the corresponding cut in has value at least 1 and have weight at most otherwise. In particular, this suffices for simulating BFS with cut queries and hence for reachability, [Dir26, Lemmas 3.2–3.4]. This is a direct strengthening of the fact that we use, that an integral orientation inducing a matching imbalance vector suffices for reachability, Lemma 3.2.
Given this reduction, the algorithm then computes such a fractional orientation rule in queries, using an intricate cut-query implementation of an interior-point method based LP solver [LS19]. This step is direct in contrast with our two-phased approach.
3.1 Reduction to constructing an orientation rule
We consider the following auxiliary problem.
Definition 3.1 (Orientation rule with prescribed imbalances). Given a simple undirected graph on vertices and a feasible imbalance vector , construct an orientation rule on whose induced orientation of satisfies .
We now mention the reachability-preservation property underlying the reduction. This is already established in [GKMM26] (Corollary 3.2).
Lemma 3.2 (Preserving imbalances preserves reachability). Let be a directed graph with undirected skeleton , and let . Every orientation of with has the same outgoing-cut values and the same reachability relation as .
Proof. Fix . Recall that counts the edges of directed from to . When the imbalances in are summed over , contributions from edges internal to cancel. Each outgoing edge contributes +1 and each incoming edge contributes -1. Since counts both outgoing and incoming edges, we have
The same identity holds for with imbalance . Consequently, implies for every .
A vertex is unreachable from exactly when there is a set containing but not with no outgoing edge. In one direction, such a set prevents a path from reaching ; in the other, take the set of all vertices reachable from . Equality of outgoing-cut values therefore preserves reachability between every pair of vertices.
By Lemma 3.2, once we have constructed an orientation rule matching on , it remains to solve reachability in its induced orientation. We formalise this search problem as follows.
Definition 3.3 (Reachability under an orientation rule). The input consists of a simple undirected graph on labelled vertices, an orientation rule on , and two vertices . The task is to decide whether is reachable from in the induced orientation of .
In what follows, we show this problem can be solved using cut query access to .
3.1.1 Implementation Using Cut Queries
We first implement the graph search using undirected cut queries to . We then combine this with the construction of an orientation rule to obtain the reduction.
Lemma 3.4 (Graph search under an orientation rule). Given an orientation rule and undirected cut-query access to , the problem in Definition 3.3 can be solved using queries.
Proof. We implement the out-neighbour searches used by the graph-search procedure. Given a vertex and a set containing , form
This set can be computed from and without queries to . The out-neighbours of outside in are exactly the neighbours of in in . By Lemma 2.3, we can find one such neighbour, or certify that none exists, using queries. The graph search makes such calls, giving queries in total.
We next reduce directed reachability to constructing an orientation rule with prescribed imbalances (Definition 3.1), followed by the search above.
Lemma 3.5 (Directed reachability via orientation rules). Suppose the problem in Definition 3.1 can be solved using undirected cut queries on simple undirected graphs with vertices. Then directed -t reachability on vertices can be solved using outgoing-cut queries.
Proof. Let be the input directed graph, let be its undirected skeleton, and set . The vector is feasible for , since itself is an orientation of with this imbalance vector.
By Observation 2.6, we can compute using outgoing-cut queries to , and simulate each undirected cut query to using two outgoing-cut queries. Run the assumed algorithm on with target to construct an orientation rule matching on . Computing and constructing therefore use at most outgoing-cut queries.
Let be the induced orientation of . By Lemma 3.2, has the same reachability relation as . We can therefore decide whether is reachable from using Lemma 3.4. This takes undirected cut queries to , each simulated by two outgoing-cut queries to . The total number of outgoing-cut queries is , as required.
The rest of this section describes how to construct the required orientation rule, first approximately (Step 2 of the blueprint) in Section 3.2, and then exactly (Step 3) in Section 3.3.
3.2 Constructing an approximate orientation rule
In this section, we discuss Step 2 of the blueprint. Recall from Definition 3.1 that the input is a simple undirected graph and a feasible target imbalance vector . Before constructing an orientation rule matching exactly, we first find one whose induced orientation approximates . Both implementations use a parameter specifying the number of averaging iterations. Write for the total error bound guaranteed by the chosen implementation: its output is an orientation rule whose induced orientation satisfies
We establish the bound in the analysis of each implementation. This error determines the cost of the subsequent repair step.
The two implementations use averaging and rounding, but differ in the objects they compute. We introduce fractional orientation rules to describe their error analysis.
Definition 3.6 (Fractional orientation rule). Fix the reference direction whenever . A fractional orientation rule assigns a value to every unordered pair , written with . The values +1 and -1 encode the directions and , respectively. For an intermediate value, is the weight assigned to , with the remaining weight assigned to . The imbalance it induces on is
Since is feasible, there is an orientation of with imbalance . Encoding its directions by +1 and -1, and assigning arbitrary values to absent pairs, gives a fractional orientation rule with .
3.2.1 Warm-up implementation using cut queries
We now give the warm-up construction using undirected cut queries to . We state the two lemmas needed for its analysis (Lemma 3.7 and Lemma 3.8) in this section and defer their proofs to Section 4.
Averaging using FTRL. Our goal is to generate a sequence of orientations whose average imbalance is close to ; an individual orientation in the sequence need not have small error.
The algorithm maintains a value at each vertex, recording its accumulated imbalance error:
Fix such a vertex . If , the previous orientations have, on average, given an imbalance larger than its target . To compensate for this excess, we would like subsequent orientations to direct more edges into , since incoming edges reduce its imbalance. Conversely, if , its imbalance has been too small on average, so we would like subsequent orientations to give it more outgoing edges.
The direction of an edge must, however, take both endpoints into account. Consider a pair with . The accumulated signed imbalance error at is larger than at , so we direct the pair from to . If this pair is an edge of , it contributes -1 to the imbalance at and +1 to the imbalance at . This explains the rule of directing each pair from the smaller value to the larger one: it encourages later orientations to compensate for the errors accumulated in earlier iterations.
This choice of directions is important for the analysis, which is done using the follow-the-regularised-leader (FTRL) rule from online optimisation [SS12, Tre19]. We give a brief overview here; more details will follow in Section 4. Note that the loss vector used in Algorithm 1 (Step 2) is . Directing each pair from the smaller -value to the larger one minimises over all orientation rules. Since is the imbalance of some orientation of , we have , or equivalently, . Thus the loss incurred by the algorithm is nonnegative in every iteration.
At this point, define the average fractional rule
We are to show that the average imbalance of the generated orientations is close to . Suppose otherwise. Consider a fixed vector , whose coordinates are the signs of this average error. It can be shown that its cumulative loss, over all iterations, would be . On the other hand, using a standard telescoping argument one can show that the algorithm's cumulative loss cannot be much larger than that of any fixed vector, in particular, that of . This, in addition to the fact that the algorithm's loss is nonnegative, forces the average imbalance error to be small.
Algorithm 1: Averaging integral orientation rules
1.1 Input: Undirected cut-query access to a simple graph on vertices, a feasible target imbalance vector , and an integer .
1.2 Output: Integral orientation rules .
1.3 Set , and initialise . For each iteration , do the following.
- Define the orientation rule by setting, for every ,
Thus each pair is directed from the vertex with the smaller value to the vertex with the larger value, breaking ties by directing from the smaller label to the larger one.
- Compute the imbalance vector of the induced orientation using queries by Observation 2.5, and define the loss vector
- Update the vertex values using the FTRL rule:
Return .
Lemma 3.7 (Simple averaging). For every integer , Algorithm 1 deterministically uses undirected cut queries and generates orientation rules whose average satisfies
Only the imbalance computation requires queries to .
Independent rounding. For each unordered pair with , independently choose an iteration uniformly from and give the pair its direction in . These choices define an orientation rule ; let be its induced orientation of .
This procedure has exactly the same distribution as independent rounding of . Indeed, for every ,
and the choices for distinct pairs are independent. Thus the algorithm samples according to without explicitly forming it or evaluating its fractional imbalance. The following lemma bounds the rounding error.
Lemma 3.8 (Independent rounding). For every integer , the sampled orientation rule induces an orientation satisfying
with probability at least 1/2.
Checking the total error. By Lemmas 3.7 and 3.8, with probability at least 1/2,
We therefore set . After each rounding trial, compute using queries by Observation 2.5. If , return ; otherwise, repeat the rounding with fresh randomness, keeping the same sequence . This check uses only and , not the fractional imbalance .
Each trial succeeds with probability at least 1/2, so there are at most two trials in expectation and trials with high probability. Sampling the directions requires no queries, and checking each trial costs queries. Including the averaging iterations, the total cost is in expectation and with high probability, hence in both cases.
Whenever the procedure returns, the induced orientation satisfies . We then proceed to the exact repair step.
3.3 Repairing the imbalance by a flow
Section 3.2 constructs an orientation rule whose induced orientation has imbalance close to . We now correct the remaining error while retaining an implicit representation (Step 3 of the blueprint).
Reversing an edge decreases the imbalance at u by two and increases the imbalance at v by two. This suggests using a flow to determine which edges to reverse. The following lemma formalises this idea.
Lemma 3.9 (Exact repair). Let be any orientation of , with imbalance . Give each directed edge of unit capacity and set . Then:
-
There exists an integral flow in whose net outgoing flow at every vertex equals .
-
Reversing the edges carrying one unit of any such flow gives an orientation with imbalance .
-
The total supply is
Proof. Fix an orientation of with imbalance , which exists by feasibility. Since the total degree at each vertex is fixed,
Thus is integral. Now send one unit of flow along every edge of whose direction differs from . This respects the unit capacities. For every vertex , the net outgoing flow is exactly , since edges whose directions agree contribute nothing to either difference. This proves the first claim.
Now consider any integral flow satisfying the first claim, and let be obtained by reversing its edges carrying one unit. Each reversed outgoing edge decreases the imbalance by two, while each reversed incoming edge increases it by two. Consequently,
proving the second claim.
Finally, , so the total supply equals .
Remark 3.10 (Flow conservation). The flow in Lemma 3.9 need not satisfy the usual flow conservation condition at every vertex, since the net outgoing flow at is . We can formulate this as a standard s-t (or, in this case, p-q) flow problem by introducing a super-source and a super-sink . For every vertex with , add an edge of capacity , and for every vertex with , add an edge of capacity . An integral flow in with the required net outgoing flow at each vertex corresponds to a p-q flow of value . In this augmented network, the usual flow conservation holds at every vertex other than and .
3.3.1 Implementation using cut queries
By Observation 2.5, we can compute using undirected cut queries to . This also determines the demand vector . It remains to find the correction flow without learning all edges of . The flow subroutine in Appendix C adapts the blocking-flow implementation of Anand, Saranurak, and Wang [ASW25], combining it with the Even-Tarjan analysis of blocking-flow on uncapacitated networks [ET75]. Together with Lemma 3.9, it gives the following guarantee.
Lemma 3.11 (Cut-query repair). Given undirected cut-query access to , a feasible target imbalance vector , and an orientation rule on inducing an orientation , we can deterministically construct an orientation rule whose induced orientation has imbalance exactly using
undirected cut queries.
Below we provide a short proof sketch assuming an adaptation of [ASW25]. The full proof is deferred to Appendix C (Lemma C.1).
Proof sketch. Compute using queries by Observation 2.5, and set . Give each edge of unit capacity. By Lemma 3.9, there exists an integral flow respecting these capacities whose net outgoing flow at each vertex equals . The total supply is
If , return . Otherwise, the subroutine in Appendix C, adapted from [ASW25], computes such a flow explicitly using undirected cut queries to .
Define a new orientation rule by reversing the direction assigned by to each edge carrying one unit of flow, and leaving all other pairs unchanged. Since is explicit, this requires no additional queries. By Lemma 3.9, the orientation induced by on has imbalance .
Substituting the value of and including the queries used to compute gives the stated bound.
In particular, if the orientation rule constructed in Section 3.2 induces an orientation satisfying , then Lemma 3.11 gives a repair cost of
additional undirected cut queries. Thus a smaller approximation error reduces the error-dependent term in the repair bound.
3.4 The resulting query bounds
Fix the number of averaging iterations . Let and denote the undirected cut-query costs of averaging and rounding, and write for the resulting imbalance error bound. Combining Lemmas 3.5 and 3.11 gives a total outgoing-cut query bound of
The overhead of the reduction is absorbed by the term.
The two implementations give the following guarantees. The first two rows apply for every integer . The last two rows give the chosen value of and the resulting query bound from (5). All query bounds hold in expectation and with high probability.
| Warm-up | Faster implementation | |
|---|---|---|
| Imbalance error bound | ||
| Choice of | ||
| Total cut queries |
4 Missing Proofs of Query Protocol
In this section, we provide the technical details omitted from the warm-up implementation of Step 2 in Section 3, giving a complete description and analysis of this step. Recall that this step has two parts: first, we construct a sequence of integral orientation rules whose average imbalance is close to the target ; then, we round this sequence to a single orientation rule while controlling the additional error.
The first part is given by Algorithm 1. As discussed in Section 3.2.1, it is based on the follow-the-regularised-leader (FTRL) framework in online optimisation. In the next subsection, we introduce this framework and state the regret guarantee that we will use to analyse the algorithm.
4.1 An online optimisation black box
Consider the following online optimisation game. In each round , an algorithm first chooses a vector . It then receives a loss vector and incurs loss . The loss vector may depend on the algorithm's current choice and the entire preceding history. The objective of the algorithm is to minimise the total loss incurred .
For a fixed comparator , define the regret relative to by
Intuitively, this captures how much the algorithm loses for not choosing as in all the rounds.
Now consider the algorithm that starts with and, after receiving , chooses
where is a parameter. This update rule is an instance of Euclidean FTRL; see Section 3 of Trevisan's blog post [Tre19] for an exposition. The following theorem bounds its regret relative to any fixed comparator .
Theorem 4.1 (Euclidean FTRL, Theorem 2.4 of Shalev-Shwartz [SS12]). For the above algorithm, every , every sequence of loss vectors, and every ,
Theorem 4.1 is Theorem 2.4 of Shalev-Shwartz [SS12]. Optimising its parameter gives the following consequence, which we will invoke in our application.
Corollary 4.2 (Optimised regret bound). Let and let be an integer. Run the above algorithm with
If in every round, then, simultaneously for every satisfying ,
Proof. By Theorem 4.1,
For the stated choice of , both terms equal .
The algorithm as stated here needs (to set ), but does not need the comparator or the future loss vectors. The guarantee holds for adaptively chosen loss vectors. Since it holds simultaneously for all admissible comparators, we may choose after observing the entire sequence.
4.2 Analysis of averaging and rounding
We now complete the analysis of the two parts of the warm-up construction from Section 3.2.1. Throughout, are the orientation rules generated by Algorithm 1, and
Since imbalance is linear in the fractional orientation rule,
The averaging guarantee. We first prove Lemma 3.7 stated in Section 3.2.1 that asserts that is close to .
Lemma 3.7 (Simple averaging). For every integer , Algorithm 1 deterministically uses undirected cut queries and generates orientation rules whose average satisfies
Recall that Algorithm 1 uses
Thus the vectors follow the FTRL update from the preceding subsection. We first show that the algorithm incurs nonnegative loss in every iteration (Claim 4.3). We then choose a fixed comparator whose cumulative loss is (Claim 4.4). Comparing these two losses using the FTRL regret bound will imply Lemma 3.7
Claim 4.3 (Nonnegative algorithm loss). For every iteration ,
Proof. For any orientation of ,
Indeed, an edge contributes +1 to the imbalance at and -1 to the imbalance at . Its contribution to this inner product is therefore minimised by directing it from the endpoint with the smaller -value to the endpoint with the larger one. This is exactly how assigns directions. Consequently,
Since is feasible, some orientation of has imbalance . Hence
The second claim identifies a comparator whose cumulative loss measures the average imbalance error.
Claim 4.4 (Comparator loss). Define by
Then
Proof. By the definitions of and ,
The last equality follows coordinate by coordinate: has the opposite sign to whenever this difference is nonzero.
We now combine the two claims to prove Lemma 3.7.
Proof of Lemma 3.7. Choose as in Claim 4.4. By the definition of regret and the two claims,
by Claim 4.4
by Claim 4.3
We upper bound the regret using Corollary 4.2. Every coordinate of has absolute value 1. Also, both and lie between and , so . Therefore,
For these bounds, the step size prescribed by Corollary 4.2 is
which is precisely the step size used by the algorithm. Thus by Corollary 4.2 we have that
Dividing by T gives
Finally, each iteration computes one imbalance vector using queries by Observation 2.5. All other operations require no queries, so the total query complexity is .
The rounding guarantee. Recall that, independently for each unordered pair, we choose an iteration uniformly from and assign the direction prescribed in that iteration. Let be the resulting orientation rule and its induced orientation of . We now bound the error introduced by this rounding.
Lemma 3.8 (Independent rounding). For every integer , the sampled orientation rule induces an orientation satisfying
with probability at least 1/2.
Proof. For each vertex , let denote its set of neighbours in . For , define
Thus
The rounding procedure chooses an iteration uniformly from , independently for each unordered pair . Let
be the contribution of the edge to the imbalance at v after rounding. Then
Consequently,
For a fixed vertex , the variables are independent, since they depend on the choices for distinct unordered pairs. Moreover, , so
It follows that
We next bound the expected absolute error at v. By Cauchy-Schwarz and the expectation identity above,
Summing these bounds over all vertices gives
where the last inequality uses . This step uses only linearity of expectation; the imbalances at different vertices need not be independent.
Finally, Markov's inequality yields
Thus the claimed error bound holds with probability at least 3/4, and in particular at least 1/2. □
5 AI Disclosure
The algorithms were first discovered by ChatGPT 5.6 Sol and 6 Astra Pro using interaction. Before prompting the LLM, we were aware of the result [Dir26] and that it was generated using an AI harness. Our goal was to get a simpler and more ‘combinatorial’ algorithm that achieves subquadratic query complexity. As such, we have fully rewritten the paper for human-centred exposition with a particular focus on understandability. We used additional AIs for editorial aspects. We take full responsibility for the manuscript’s content and the correctness of results. We do not claim any credit for achieving subquadratic complexity first.
References
[AEG+22] Simon Apers, Yuval Efron, Pawel Gawrychowski, Troy Lee, Sagnik Mukhopadhyay, and Danupon Nanongkai. Cut query algorithms with star contraction. In Proceedings of the 2022 IEEE Symposium on Foundations of Computer Science (FOCS), pages 507–518. IEEE Computer Society, 2022. doi:10.1109/FOCS54457.2022.00055.
[ALS20] Brian Axelrod, Yang P. Liu, and Aaron Sidford. Near-optimal approximate discrete and continuous submodular function minimization. In Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 837–853. SIAM, 2020. doi:10.1137/1.9781611975994.51.
[ASW25] Aditya Anand, Thatchaphol Saranurak, and Yunfan Wang. Deterministic edge connectivity and max flow using subquadratic cut queries. In Proceedings of the 2025 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 124–142. SIAM, 2025. doi:10.1137/1.9781611978322.4. Full version: arXiv:2410.18704.
[BF24] Greg Bodwin and Henry Fleischmann. Spanning adjacency oracles in sublinear time. In Venkatesan Guruswami, editor, Innovations in Theoretical Computer Science Conference (ITCS 2024), volume 287 of Leibniz International Proceedings in Informatics (LIPIcs), pages 19:1–19:21, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ITCS.2024.19.
[BK15] András A. Benczúr and David R. Karger. Randomized approximation schemes for cuts and flows in capacitated graphs. SIAM Journal on Computing, 44(2):290–319, 2015. doi:10.1137/070705970.
[Blu16] Markus Blumenstock. Fast algorithms for pseudoarboricity. In 2016 Proceedings of the Eighteenth Workshop on Algorithm Engineering and Experiments (ALENEX), pages 113–126. SIAM, 2016.
[BTN26] Ben Bals, Matei Tinca, and Yasamin Nazari. Cut query reachability for DAGs with subquadratic queries. arXiv preprint arXiv:2607.26630, 2026. arXiv:2607.26630.
[BvdBE+22] Joakim Blikstad, Jan van den Brand, Yuval Efron, Sagnik Mukhopadhyay, and Danupon Nanongkai. Nearly optimal communication and query complexity of bipartite matching. In Proceedings of the 2022 IEEE Symposium on Foundations of Computer Science (FOCS), pages 1174–1185. IEEE Computer Society, 2022. doi:10.1109/FOCS54457.2022.00113.
[CGJS22] Deeparnab Chakrabarty, Andrei Graur, Haotian Jiang, and Aaron Sidford. Improved lower bounds for submodular function minimization. In Proceedings of the 2022 IEEE Symposium on Foundations of Computer Science (FOCS), pages 245–254. IEEE Computer Society, 2022. doi:10.1109/FOCS54457.2022.00030.
[CLRS09] Thomas H Cormen, Charles Eric Leiserson, Ronald L Rivest, and Clifford Stein. Introduction to algorithms, volume 3. MIT press, Cambridge, 2009.
[CLS+19] Deeparnab Chakrabarty, Yin Tat Lee, Aaron Sidford, Sahil Singla, and Sam Chiu-wai Wong. Faster matroid intersection. In Proceedings of the 2019 IEEE Symposium on Foundations of Computer Science (FOCS), pages 1146–1168. IEEE Computer Society, 2019. doi:10.1109/FOCS.2019.00072.
[Cun85] William H. Cunningham. On submodular function minimization. Combinatorica, 5(3):185–192, 1985. doi:10.1007/BF02579361.
[Din06] Yefim Dinitz. Dinitz' algorithm: The original version and Even's version. In Oded Goldreich, Arnold L. Rosenberg, and Alan L. Selman, editors, Theoretical Computer Science: Essays in Memory of Shimon Even, volume 3895 of Lecture Notes in Computer Science, pages 218–240. Springer, 2006. doi:10.1007/11685654_10.
[Dir26] Directed reachability from cut queries in queries. Unpublished manuscript, 2026. https://yangpliu.github.io/repo/directed-reachability-cut-queries/paper.pdf.
[EN26] Alina Ene and Huy L. Nguyen. A faster strongly polynomial time algorithm for submodular function minimization. arXiv preprint arXiv:2610.25403, 2026. arXiv:2610.25403.
[ET75] Shimon Even and R Endre Tarjan. Network flow and testing graph connectivity. SIAM journal on computing, 4(4):507–518, 1975.
[FI03] Lisa Fleischer and Satoru Iwata. A push-relabel framework for submodular function minimization and applications to parametric optimization. Discrete Applied Mathematics, 131(2):311–322, 2003. doi:10.1016/S0166-218X(02)00458-4.
[GKMM26] Prantar Ghosh, Sahil Kuchlous, Shravan Mehra, and Sagnik Mukhopadhyay. The power of the score sequence of a tournament. In European Symposium on Algorithms (ESA 2026), volume 388 of Leibniz International Proceedings in Informatics (LIPIcs), pages 156:1–156:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPIcs.ESA.2026.156.
[GLS81] Martin Grötschel, László Lovász, and Alexander Schrijver. The ellipsoid method and its consequences in combinatorial optimization. Combinatorica, 1(2):169–197, 1981. doi:10.1007/BF02579273.
[GLS88] Martin Grötschel, László Lovász, and Alexander Schrijver. Geometric Algorithms and Combinatorial Optimization, volume 2 of Algorithms and Combinatorics. Springer, 1988. doi:10.1007/978-3-642-97881-4.
[Har08] Nicholas J. A. Harvey. Matroid intersection, pointer chasing, and Young's seminormal representation of . In Proceedings of the 2008 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 542–549. SIAM, 2008.
[IFF01] Satoru Iwata, Lisa Fleischer, and Satoru Fujishige. A combinatorial strongly polynomial algorithm for minimizing submodular functions. Journal of the ACM, 48(4):761–777, 2001. doi:10.1145/502090.502096.
[IO09] Satoru Iwata and James B. Orlin. A simple combinatorial algorithm for submodular function minimization. In Proceedings of the 2009 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1230–1237. SIAM, 2009. doi:10.1137/1.9781611973068.133.
[Iwa03] Satoru Iwata. A faster scaling algorithm for minimizing submodular functions. SIAM Journal on Computing, 32(4):833–840, 2003. doi:10.1137/S0097539701397813.
[Jia21] Haotian Jiang. Minimizing convex functions with integral minimizers. In Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 976–985. SIAM, 2021. doi:10.1137/1.9781611976465.61.
[Jia22] Haotian Jiang. Minimizing convex functions with rational minimizers. Journal of the ACM, 70(1):5:1–5:27, 2022. doi:10.1145/3566050.
[JNS26] Yonggang Jiang, Danupon Nanongkai, and Pachara Sawettamalya. Minimum s-t cuts with fewer cut queries. In Proceedings of the 2026 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 258–296. SIAM, 2026. doi:10.1137/1.9781611978971.12.
[KK26a] Yotam Kenneth-Mordoch and Robert Krauthgamer. All-pairs minimum cut using cut queries. In Proceedings of the 2026 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4077–4095. SIAM, 2026.
[KK26b] Yotam Kenneth-Mordoch and Robert Krauthgamer. Faster all-pairs minimum cut: Bypassing exact max-flow. In Proceedings of the 2026 ACM Symposium on Theory of Computing (STOC), pages 1254–1265. ACM, 2026. doi:10.1145/3798129.3800836. Full version: arXiv:2511.10036.
[KPS26] Sanjeev Khanna, Aaron Putterman, and Junkai Song. Reachability in directed acyclic graphs with near-linear cut queries. arXiv preprint arXiv:2607.21390, 2026. arXiv:2607.21390.
[KS96] David R. Karger and Clifford Stein. A new approach to the minimum cut problem. Journal of the ACM, 43(4):601–640, 1996. doi:10.1145/234533.234534. Author version: https://people.csail.mit.edu/karger/Papers/contract.pdf.
[Lov83] László Lovász. Submodular functions and convexity. In Achim Bachem, Bernhard Korte, and Martin Grötschel, editors, Mathematical Programming: The State of the Art, pages 235–257. Springer, 1983. doi:10.1007/978-3-642-68874-4_10.
[LS19] Yin Tat Lee and Aaron Sidford. Solving linear programs with linear system solves. arXiv preprint arXiv:1910.08033, 2019. arXiv:1910.08033.
[LSW15] Yin Tat Lee, Aaron Sidford, and Sam Chiu-wai Wong. A faster cutting plane method and its implications for combinatorial and convex optimization. In Proceedings of the 2015 IEEE Symposium on Foundations of Computer Science (FOCS), pages 1049–1065. IEEE Computer Society, 2015. doi:10.1109/FOCS.2015.68.
[MN20] Sagnik Mukhopadhyay and Danupon Nanongkai. Weighted min-cut: sequential, cut-query, and streaming algorithms. In Proceedings of the 2020 ACM Symposium on Theory of Computing (STOC), pages 496–509. ACM, 2020. doi:10.1145/3357713.3384334.
[Nem04] Arkadi Nemirovski. Prox-method with rate of convergence for variational inequalities with Lipschitz continuous monotone operators and smooth convex-concave saddle point problems. SIAM Journal on Optimization, 15(1):229–251, 2004. doi:10.1137/S1052623403425629.
[NI92] Hiroshi Nagamochi and Toshihide Ibaraki. A linear-time algorithm for finding a sparse k-connected spanning subgraph of a k-connected graph. Algorithmica, 7(1):583–596, 1992. doi:10.1007/BF01758778.
[Orl09] James B. Orlin. A faster strongly polynomial time algorithm for submodular function minimization. Mathematical Programming, 118(2):237–251, 2009. doi:10.1007/s10107-007-0189-2.
[RS13] Alexander Rakhlin and Karthik Sridharan. Optimization, learning, and games with predictable sequences. In Advances in Neural Information Processing Systems 26, 2013. Proceedings paper. Full version: https://www.cs.cornell.edu/sridharan/predgamesopt.pdf.
[RSW18] Aviad Rubinstein, Tselil Schramm, and S. Matthew Weinberg. Computing exact minimum cuts without knowing the graph. In Innovations in Theoretical Computer Science Conference (ITCS 2018), volume 94 of Leibniz International Proceedings in Informatics (LIPIcs), pages 39:1–39:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018. doi:10.4230/LIPIcs.ITCS.2018.39.
[Sch00] Alexander Schrijver. A combinatorial algorithm minimizing submodular functions in strongly polynomial time. Journal of Combinatorial Theory, Series B, 80(2):346–355, 2000. doi:10.1006/jctb.2000.1989.
[SS12] Shai Shalev-Shwartz. Online learning and online convex optimization. Foundations and Trends in Machine Learning, 4(2):107–194, 2012. doi:10.1561/2200000018.
[Tre19] Luca Trevisan. Online optimization post 3: Follow the regularized leader. in theory, May 6, 2019. https://lucatrevisan.wordpress.com/2019/05/06/online-optimization-post-3-follow-the-regularized-leader/.
[Vyg03] Jens Vygen. A note on Schrijver's submodular function minimization algorithm. Journal of Combinatorial Theory, Series B, 88(2):399–402, 2003. doi:10.1016/S0095-8956(02)00047-3.
A A Faster Implementation: Queries
Throughout the appendix, the input is a simple undirected graph and a feasible target imbalance vector . We improve the approximation step in two places. Optimistic mirror descent reduces the average imbalance error from to , and dependent rounding gives constant error at each vertex, thereby incurring a negligible additional error of at most . We will need one additional primitive not outlined in Section 3.
Lemma A.1 (Weighted neighbour sums). Given , , and known weights , we can approximate to additive error using undirected cut queries, for any fixed . Doing this at every vertex gives error using queries.
Proof. Truncate each weight to binary digits with error at most , changing the sum by at most . For each digit, separately count the neighbours of in whose positive or negative weights have that digit nonzero in their magnitude. Each count takes queries by Observation 2.2. Subtract the negative count from the positive count, multiply by the digit's value, and sum over the digits. This computes the truncated weighted sum with the claimed query bound.
A.1 An online optimisation black box with predictions
We use a second standard regret bound, this time for an algorithm that receives a prediction of the loss vector before making its choice. Consider the online game from the warm-up, with choices restricted to , with . Let restrict each coordinate to . Fix , a horizon , and initialise . In each round , do the following:
- Receive a prediction of the next loss vector, and choose the trial vector
-
Receive the actual loss vector and incur loss .
-
Set the vector for the next round to
Both updates start from the previous round vector . This algorithm is called optimistic mirror descent; its prediction is the reason for the adjective “optimistic”. For a comparator , define regret as before:
We use the following bound, specialised to our parameters.
Theorem A.2 (Rakhlin and Sridharan [RS13, Lemma 1, equation (2)]). Suppose that in every round
Then, simultaneously for every ,
Condition (6) requires the predicted loss to be close to the actual loss when the trial vector is close to the previous round vector. The predictions and losses may depend on previous rounds, and the loss may depend on the current choice. The guarantee holds for all comparators at once, so we may choose the comparator afterwards.
A.2 Averaging fractional orientations
As in the warm-up, we choose the losses so that a regret bound implies a bound on imbalance. The state consists of a fractional orientation rule and vertex potentials . Positive excess outflow raises a vertex's potential, encouraging subsequent edge directions to point towards it. Unlike in the warm-up, the fractional orientation is now itself part of the online vector.
Losses and updates. To express the algorithm in the online framework, let have one coordinate per edge of , carrying its pair's value in , and coordinates per vertex , each carrying . Thus, , for . Unlike in the warm-up, each round may now involve a truly fractional orientation , and we cannot efficiently compute the induced imbalance vector exactly. Instead, we use an approximation matching on each entry up to bits of precision, computed by applying Lemma A.1. With this in mind, define the loss vector at state by
The first formula can be evaluated on every potential pair. The coordinates for a vertex evolve identically. Hence the implementation keeps only and ; it need not learn the edges or store repeated coordinates. Each loss evaluation to bits of precision uses queries by Lemma A.1.
Fix , an integer , and initialise and . In round , write and set
Then evaluate the loss at the trial state and update from :
Apply the edge updates to all potential pairs. After rounds, return . These are the extragradient updates of Mirror-Prox [Nem04]; we analyse them using Theorem A.2.
Lemma A.3 (Faster averaging). For every integer , the above algorithm uses queries and returns a fractional orientation rule with -bit rational probabilities and
Proof. There are two loss evaluations per round, giving the query bound. The updates keep all coordinates on the grid . Averaging and converting to probabilities adds a denominator factor of , so gives the claimed bit bound.
We first explain how the regret bound implies the imbalance bound. Choose to have the signs of , taking +1 at zero. By feasibility, there is an orientation of with imbalance . Let use its direction on each edge and repeat on the coordinates for vertex . The edge and vertex contributions to regret give
The final term has absolute value at most given a sufficiently strong approximation of the imbalance (and this is easy to achieve by just increasing the bit precision of the estimate). Since , summing and using the choice of gives
once Theorem A.2 applies.
It remains to check the Lipschitz estimate (6). Write and . The degree bound and Cauchy-Schwarz give
Here the first bound uses . For the second, apply Cauchy-Schwarz to the signed sum of incident edge changes at each vertex; the final equality counts each edge at its two endpoints. Each vertex loss is divided by and repeated times, so with exact imbalances these estimates bound the squared loss difference by . However, technically and are computed only via strong estimates of the imbalances and . Nonetheless, by choosing sufficiently large bit precision , we may assume that
using the triangle inequality. Hence, using this additive error bound and the fact that , we get an analogous bound as above on , up to an additive error of at most . Hence, (6) holds and Theorem A.2 applies, as required.
A.3 Rounding one bit at a time
The second improvement over the warm-up algorithm is a more efficient rounding procedure. Let us build up to this rounding procedure with some intuition.
First, note that each edge weight induced by the fractional orientation rule can be interpreted as a probability via the map . This interpretation is well-motivated—the imbalance is also the expected imbalance upon orienting each edge towards with probability . Suppose that these probabilities were all 0, 1/2, or 1. How would we round to an appropriate integral orientation matching the vertex imbalances in this toy case? Well, the only edges requiring rounding are those with corresponding probabilities 1/2. Call the graph on these edges . Moreover, notice that these edges in contribute 0 in expectation to the imbalances of their incident vertices. Crucially, this means that our goal is to compute an integral orientation of with imbalance 0. See Figure 1. In reality, computing an orientation with imbalance 0 might not be possible, but luckily we can tolerate some error in our rounding procedure.

Figure 1: The toy case of rounding probabilities in .
What about the general case with more varied probabilities? In fact, as we will show, the same procedure works, proceeding one bit at a time in the binary representations of the edge probabilities. Instead of orienting the edges in each rounding step, we round the least significant remaining bit in the probability. To implement this idea, we need a subroutine finding an integral orientation with imbalance close to 0. Lemma A.4 gives exactly the desired guarantees.
Lemma A.4 (Balanced orientation). Let be an undirected graph accessible by cut queries. There exists an always-correct randomised algorithm computing an orientation rule inducing an implicit orientation for with . The algorithm uses queries in expectation and with high probability. The algorithm also only uses neighbor searches, edge tests, and vertex imbalance evaluations.
We defer the proof of Lemma A.4 to Section B. Note that we can efficiently simulate neighbor searches, edge tests, and vertex imbalance evaluations using queries to . With this subroutine in hand, we can implement the dependent rounding algorithm.
Lemma A.5 (Dependent rounding). Let be a fractional orientation rule. An always-correct randomised algorithm rounds to an orientation rule such that the induced orientation satisfies
It uses queries in expectation and with high probability.
Proof. As in the proof sketch, we interpret the edge weights from as probabilities: . First round these probabilities down to multiples of , where . This changes each vertex's imbalance by . After this rounding, the probabilities correspond to binary strings on at most bits.
Starting from the least significant bit of the probabilities (at most the Bth bit), consider the pairs whose current jth bit is nonzero. Denote the resultant subgraph (of the complete graph) by . Apply Lemma A.4 to , emulating the neighborhood searches, edge tests, and vertex imbalance evaluations by restricting only to the set of possible edges. Let be the resulting orientation. On each edge in , set
That is, if the edge is oriented from to in the orientation outputted by Lemma A.4, the jth bit is rounded up. Otherwise it is rounded down.
Let be the orientation used at this step. The change in fractional imbalance is . By Lemma A.4, is almost perfectly balanced; for all , . Hence, since , the total additional error is at each vertex. The final probabilities are integral.
Finally, there are calls to Lemma A.4, each costing queries. The probability guarantees are inherited from Lemma A.4.
A.4 Putting the faster implementation together
We can now complete the proof of Theorem 1.2.
Proof of Theorem 1.2. By Lemma 3.5, it suffices to construct an orientation rule of matching . Apply the faster averaging algorithm Lemma A.3, followed by dependent rounding Lemma A.5. This gives an orientation rule with induced orientation satisfying
Computing requires total queries including the queries needed to compute exactly. To complete the argument, we use the same flow subroutine as before; Lemma 3.11 guarantees the required imbalance and takes queries. The total number of undirected cut queries is
The result then follows by setting ; the probabilistic guarantees are inherited from the analogous guarantees of the subroutines.
B Balanced Orientations by Completing a Partial Orientation
We now prove Lemma A.4. The strategy is to reserve a small set of known edges such that if we round the remaining edges uniformly at random, we are very likely able to orient the known edges to balance the full orientation. The reserved edges are a union of greedily computed spanning forests along with up to additional randomly sampled edges.
B.1 Completing a partial orientation
We first show simple sufficient conditions for the reserved set of edges to be able to correct the imbalance incurred by orienting the other edges. The following basic observation is quite useful.
Observation B.1 (Existence of orientations). Every undirected graph admits an orientation with imbalance at most one at every vertex.
Proof. Add an auxiliary vertex adjacent to every odd-degree vertex. All degrees are now even, including the auxiliary vertex's degree, since the number of odd-degree vertices is even. Compute an Eulerian tour in each component to direct all edges, ensuring equal in and out degrees. Finally, remove the auxiliary node and its incident edges. This changes the imbalance of each original vertex by at most 1.
Given Observation B.1, we can give a max flow based sufficient condition for the reserved edges.
Lemma B.2 (Completing a partial orientation). Let be the graph of reserved edges of , and let orient all other edges. If
then can be extended to an orientation with imbalance at most one at every vertex. Computing from uses only the explicit graph and the vector .
Proof. Consider the max flow problem on with vertex demands . By the max-flow mincut theorem, Equation (12) implies that is feasible. Indeed, since capacities and demands are integral, there is a feasible integral flow.
To extend to , first orient every edge carrying flow along the flow paths. Then, , combined with the orientations of the edges from the flow, yields imbalance 0 for each vertex. The last detail is to orient the edges in unused in the flow; we can orient this subgraph using Observation B.1, resulting in a final orientation with each vertex imbalance at most 1.
Given Lemma B.2, we know that it suffices to select a set of reserved edges of to learn explicitly such that Equation (12) ultimately holds. Then, after computing , we can extend it to as required for Lemma A.4.
B.2 Constructing a suitable reserve
We now demonstrate how to construct an appropriate reserve edge set . Set and greedily compute a union of successive edge-disjoint spanning forests of . Call the resultant subgraph . Each spanning forest takes cut queries by Lemma 2.4, excluding the pairs already removed from later neighbour searches. Thus learning costs queries. The subgraph is the Nagamochi-Ibaraki certificate [NI92] and is sometimes called a -connectivity certificate [BF24]. naturally preserves various connectivity properties of . Of relevance to our application, Benczür and Karger show the following property.
Theorem B.3 ([BK15, Section 8.2 and Theorem 8.3]). induces a partition of such that each component is either -edge connected or a singleton, and all inter-component edges belong to .
In addition to including in , we also sample each possible edge with probability . For each sampled candidate edge, we check whether it exists in in cut queries and, if it does, add it to . By a Chernoff bound, with high probability this takes total cut queries. This completes the construction of . For all remaining edges we orient them independently and uniformly at random, giving the partial orientation . The total query bound in constructing is as needed.
To complete the proof of Lemma A.4, it remains to show that and satisfy the requirements of Lemma B.2 with high probability. (To get the always correct guarantee, we simply compute in queries and repeat if it does not satisfy .)
Claim B.4. The reserved set and partial orientation satisfy the condition of Lemma B.2 with high probability.
To prove Claim B.4, the following classic cut-counting bound will be useful.
Theorem B.5 (Cut counting [KS96, Theorem 8.4]). In a graph on at most vertices with minimum cut at least , the number of cuts of size less than is at most , for every integer .
Proof of Claim B.4. Recall that we need to lower bound the probability that
We exploit the partition induced by from Theorem B.3. Fix a non-singleton component from the partition. Consider a nontrivial cut , and suppose there are edges crossing this cut within . That is, . Let and be the numbers of unreserved edges crossing into and out of within , respectively. We show that, with very high probability, .
To this end, recall that, in addition to , is formed by sampling each edge with probability . Then, by a Chernoff bound, since the expected number of edges in either direction is at most , the probability that either direction has at least edges is at most . Group the internal cuts by , for integers . By Theorem B.5, since the component is -edge connected, each group contains at most cuts. Then, a union bound over these groups and the at most parts gives total failure probability at most
for any fixed , setting constants appropriately.
So, with high probability, for all non-trivial , for all for which is non-trivial, the cut induced by in has at most half of its crossing edges in either direction. Every edge between different parts is reserved, so is the sum of the signed imbalances of the internal cuts induced by in the parts. For each induced cut , if there are crossing edges and of these are reserved, then , where . In particular, this means that the magnitude of the imbalance contributed by , , is at most
Summing over all induced cuts , this gives . Thus the required condition holds simultaneously for every with high probability.
C The Flow Subroutine
We are given undirected cut-query access to a simple graph on vertices and a feasible target imbalance vector . Feasibility means that some orientation of has imbalance . We are also given an orientation rule with the orientation that it induces on satisfying . The objective is to find an orientation rule whose induced orientation of satisfies . We call this problem FIX ORIENTATION RULE. Our goal is to prove the following lemma.
Lemma C.1. There is a deterministic algorithm that solves FIX ORIENTATION RULE using undirected cut queries to .
We prove Lemma C.1 by formulating FIX ORIENTATION RULE as a network flow problem. Define the demand vector
Its coordinates are integers because . Every orientation has total imbalance zero, since each edge contributes once with each sign. Consequently, , and the total supply is
The network has vertex set , where and are fresh vertices, and the following arcs and capacities:
-
Each edge of appears as an arc of capacity one, directed according to .
-
For each with , there is an arc of capacity .
-
For each with , there is an arc of capacity .
The source and sink of are and , respectively. The following lemma gives its maximum flow value and query complexity.
Lemma C.2. Let .
(a) The maximum flow value in is exactly .
(b) An integral maximum flow can be computed explicitly by a deterministic algorithm using undirected cut queries to .
First, we finish the proof of Lemma C.1 assuming Lemma C.2. Then we prove part (a) of Lemma C.2. Its part (b) is an adaptation of the algorithm by [ASW25] to our setting and will be proved in the next subsection.
Proof of Lemma C.1. Compute using undirected cut queries, which also determines , every , and the terminal arcs of . The internal arcs remain implicit. By Lemma C.2, we can compute an explicit integral flow in of value using undirected cut queries.
The total capacity leaving and the total capacity entering both equal . Thus every arc leaving or entering is saturated. By flow conservation, the net outgoing flow on the internal arcs at each vertex is : the source arc supplies when it is positive, and the sink arc removes when it is negative.
Every internal arc has capacity 1, so its integral flow is either 0 or 1. Define the orientation rule as follows: reverse the direction prescribed by on every pair whose internal arc carries one unit of flow, and retain its direction on every other pair. Let be the orientation of induced by .
Each reversed outgoing edge decreases the imbalance by two, and each reversed incoming edge increases it by two. Consequently,
Since and the flow are explicitly available, the direction prescribed by on any pair can be evaluated without further queries. The total query complexity is therefore .
Next, we prove part (a) of Lemma C.2.
Proof of Lemma C.2 part (a). The total capacity leaving is
so the maximum flow value is at most .
For the reverse inequality, fix an orientation of with imbalance , which exists by feasibility. On each internal arc of , send one unit of flow if its direction in differs from its direction in , and zero otherwise. At each vertex , the net outgoing flow on these arcs is
Saturate every terminal arc. If , the arc supplies the excess outgoing flow ; if , the arc removes the excess incoming flow . Thus flow conservation holds at every internal vertex, and all capacities are respected. All arcs leaving are saturated, so this flow has value .
C.1 Proof of Lemma C.2 part (b)
Recall that we have undirected cut query access to , a target imbalance vector , and an orientation rule with imbalance vector of the induced orientation of satisfying . These define the maxflow instance . We will implement Dinic's algorithm in our setting to compute a maximum flow in the network .
C.1.1 Proof overview
Our proof adapts the implementation of Dinic's algorithm by Anand, Saranurak, and Wang [ASW25] to our setting. Dinic's algorithm proceeds in phases, each of which increases the current flow by sending additional flow along shortest source-sink paths in the residual network. We recall the relevant definitions in the subsequent sections.
The main result we adapt is [ASW25, Claim 4.3], which implements one such phase efficiently. Two observations allow us to use it here.
-
Although their original network is undirected, the procedure operates on its directed residual network. The proof also applies when the original network is directed, as ours is.
-
To search the residual network, the procedure only needs to test whether a given vertex has an outgoing residual arc to a given set . These tests are called singleton BIS queries. We implement each test, and each numerical residual-capacity query needed to send flow, using cut queries (Lemma C.8).
The remaining analysis is a specialisation of standard arguments for Dinic's algorithm to our network , following the BFS-layer analysis in [ASW25, Section 4.2]. We account for the unit capacities and simplicity of the internal graph, the larger capacities on terminal arcs, and the required flow value . These arguments yield the query bound .
C.1.2 Blocking flows and Dinic's algorithm
Dinic's algorithm constructs a maximum flow by repeatedly sending additional flow along currently shortest residual paths. We recall the relevant definitions; see also [ASW25, Section 4.2].
Definition C.3 (Residual network). Let be a feasible flow in a network with source and sink . For each arc of capacity carrying flow , the residual network has a forward arc of capacity and a reverse arc of capacity . Zero-capacity arcs are omitted.
For every ordered pair of distinct vertices , let and denote its original capacity and flow, taking both to be zero if is absent from . Let denote its residual capacity, also taking this to be zero if the residual arc is absent.
Our network has at most one original arc between any pair of vertices. If this arc is , its forward residual capacity is . If instead the original arc is , its reverse residual arc points from to and has capacity . If neither original arc exists, the residual capacity is zero. These cases are expressed by the single identity
which holds for every ordered pair of distinct vertices, whether or not it is an original arc of .
A forward residual arc allows us to increase the flow on an original arc; a reverse residual arc allows us to cancel previously sent flow. Thus sending flow along a residual path increases the value of . This operation is called augmentation. The following lemma recalls the standard fact that routing a flow of value decreases the flow value in the residual graph by the same amount. (See, for example, [CLRS09, Lemma 26.4].)
Lemma C.4. Let be a feasible flow in a network with capacities and residual capacities . For every with and ,
Here capacities and flow values on absent arcs are zero.
Definition C.5 (Level graph). Suppose that is reachable from in . Let be the distance from to in , counting arcs, and set . The level graph retains the arcs satisfying
with their residual capacities.
Every path in the level graph has length . Conversely, every shortest path in lies in the level graph. The level graph therefore lets us focus on all currently shortest paths at once.
Definition C.6 (Blocking flow). A blocking flow is a feasible flow in the level graph that saturates at least one arc on every path in that graph. An arc is saturated when the flow through it equals its capacity in the level graph.
For example, suppose the level graph consists of two internally disjoint paths, all of whose arcs have capacity one. Sending one unit along just one path is not blocking, because the other path remains available. Sending one unit along each path gives a blocking flow.
A blocking flow eliminates every currently shortest residual path. Longer residual paths may remain, so further augmentation may still be necessary.
C.1.3 Implementing a blocking-flow phase
We use the blocking-flow procedure of Anand, Saranurak, and Wang [ASW25, Claim 4.3]. We first specify its input and oracle access, and then explain how to implement these oracles in our setting.
Input and oracle access. We state the blocking-flow subroutine for a general directed network on vertices, matching the size of our flow network . For this statement, the capacities may be arbitrary nonnegative integers, and the source and sink are denoted by and . The current feasible integral flow is given explicitly: we know every arc carrying positive flow and its flow value; unlisted arcs carry zero flow.
The residual network is given implicitly through the following two oracles:
-
Singleton Bipartite Independent Set (BIS) query: given a vertex and a set , determine whether for some .
-
Residual-capacity query: given an ordered pair , return , with zero indicating that the residual arc is absent.
Both oracles refer to the current residual network and remain available as the algorithm augments . The following lemma follows directly from the proof of [ASW25, Claim 4.3]. Their claim allows arbitrary BIS queries and assumes that the original flow network is undirected. However, their proof uses only the oracle operations specified above and does not rely on the residual network arising from an undirected network. It therefore applies to directed flow networks as well.
Lemma C.7 (Adapted from [ASW25, Claim 4.3]). With the input and oracle access described above, there is a deterministic algorithm that either certifies that is maximum using oracle calls, or computes an explicit integral blocking flow and augments by using
oracle calls in total, where is the value of . Here is the length of a shortest residual path before augmentation. The updated flow is maintained explicitly.
Implementing the oracles in our network. Return to the flow network defined above. Its terminal arcs and their capacities are explicitly known. Its internal arcs are the edges of , directed according to the orientation rule . We maintain the current integral flow explicitly, initially as the zero flow.
Consider an edge of , directed from to by . Its capacity is one, so is either zero or one. If , its only residual arc is , of capacity one. If , its only residual arc is , also of capacity one. Thus the internal residual network is itself an orientation of .
Define the orientation rule by reversing on every internal pair carrying one unit of flow and retaining its direction on every other pair. In particular, agrees with on non-edges, since these carry no flow. The rule can be evaluated without queries, using and the explicitly stored flow. For distinct , we therefore have
Lemma C.8. Given the orientation rule and the explicit current integral flow , each oracle call in Lemma C.7 can be implemented using at most three undirected cut queries to .
Proof. Let denote the undirected cut value of in .
Residual-capacity queries. If either endpoint is a terminal, the original capacities in both directions and their flow values are explicitly known, so the residual capacity requires no queries.
Now suppose . If directs the pair from to , then . Otherwise, equals the indicator that is an edge of , namely
This requires at most three cut queries.
Singleton BIS queries. Given and , first check the possible residual arcs from into having at least one terminal endpoint. Their capacities are explicitly known. If any is positive, answer yes. If is a terminal and none is positive, answer no, since this check covers every possible residual arc from into , including reverse arcs.
It remains to consider and possible neighbours in . Form the set
The set is determined without queries. By the definition of , a residual arc from into exists exactly when has an edge between and . The answer is therefore yes exactly when
This requires at most three cut queries.
Combining the two lemmas gives the subroutine we will use in each phase of Dinic's algorithm.
Lemma C.9 (A blocking-flow phase in ). Given the orientation rule and an explicit feasible integral flow in the repair network , a deterministic algorithm either certifies that is maximum using cut queries, or computes an explicit integral blocking flow and augments by using
undirected cut queries to , where is the current residual distance and . The updated flow is maintained explicitly.
Proof. Apply Lemma C.7, implementing its oracles by Lemma C.8. After each augmentation, the updated explicit flow determines the new rule without further queries.
C.1.4 Completing Dinic's algorithm
We now use Lemma C.9 to compute a maximum flow in . Recall that its maximum flow value is . The analysis uses BFS layers, as in [ASW25, Section 4.2].
The algorithm. Start with the zero flow. While the residual network contains a path, apply Lemma C.9 to compute a blocking flow and augment the current flow. Maintain the flow explicitly between phases. When no residual path remains, return the current flow.
All flows remain integral. Whenever a residual path exists, the subroutine finds a blocking flow of positive integral value. When no such path exists, the current flow is maximum and therefore has value . We use the following standard property of Dinic's algorithm to bound the number of blocking-flow phases.
Lemma C.10 ([Din06]). After a blocking-flow phase, the shortest residual p-q distance strictly increases, unless q becomes unreachable.
Remaining flow at large distance. The next lemma bounds the flow still to be sent once the residual distance becomes large. This closely follows the blocking-flow analysis of Even and Tarjan [ET75] on unit capacity networks; we provide a proof for completeness.
Lemma C.11 (Adapted from [ET75, Lemma 3]; explicit in [Blu16, Lemma B.3]). Let be the current flow, let , and let be the shortest residual distance. If , then .
Proof. Let be the set of vertices at residual distance from . The layers contain only vertices of . Thus
For some , therefore,
Consider the residual cut with source side . Every residual arc leaving goes from to : an arc cannot increase distance from by more than one. Neither of these layers contains a terminal. Hence the large capacities of terminal arcs do not contribute to this cut.
There is at most one edge of between any pair, and its total residual capacity in both directions is one. The residual capacity of the cut is therefore at most
By Lemma C.4, the residual capacity of this cut equals its original capacity minus val(f). Since admits a flow of value , the original cut capacity is at least . Hence
as required.
The total query complexity. We now finish the proof of Lemma C.2(b).
Proof of Lemma C.2(b). The algorithm returns an explicit integral flow of value , and hence a maximum flow. For phase , write for its initial residual distance, for the amount of flow it sends, and for the amount remaining before the phase. Thus
Let count only the successful blocking-flow phases. By Lemma C.9, the total query complexity is
The additional term accounts for the final check that no residual path exists. We bound and separately. If , the algorithm terminates after the initial -query check. Henceforth assume .
Number of phases. Set . By Lemma C.10, there are at most phases with . At the start of the first phase with , Lemma C.11 gives
Every phase from this point onwards, including the current phase, sends at least one unit. Hence there are at most such phases. Consequently,
The sum of path lengths. We first show that . Recall that is an orientation of with imbalance . The orientation induced by and the orientation have the same underlying graph . Their imbalances therefore satisfy
Subtracting these identities gives
In particular, whenever , we have , since outdegrees are nonnegative. Therefore,
The last equality holds because each edge of is directed out of exactly one endpoint in . Finally, is simple, so .
For , Lemma C.11 implies . For , the inequality instead gives . Thus, in every phase,
Since for , we have
The intervals partition , so
Combining the two bounds, the total number of undirected cut queries to H is
as required.
C.2 Why explicit flow recovery depends on
We show that explicitly recovering a correction flow can require cut queries. The construction adapts the layered-graph lower bound of Kenneth-Mordoch and Krauthgamer [KK26b, Lemma 1.8 and Appendix B], whose bound corresponds to .
The idea is to construct many graphs with the same orientation rule and target imbalance, but such that every valid correction flow reveals all the edges of the unknown graph.
A family of graphs. Fix integers and even , and set . Partition the vertices into layers , each containing vertices. Within each layer, fix a partition into pairs. The layers and these pairings are known to the algorithm.
We place edges only between consecutive layers. For each pair and each pair , choose independently one of the following two sets of edges:
Thus each pair of pairs contributes one independent binary choice. There are
such choices, giving a family of distinct simple graphs . The algorithm does not know these choices; it accesses through cut queries.
Regardless of the choices, every vertex has exactly one neighbour in each pair of the next layer, and hence neighbours in that layer. Similarly, it has neighbours in the previous layer whenever that layer exists.
The orientation rule and target imbalance. Use the same orientation rule for every graph in the family: direct every pair in consecutive layers from the earlier layer to the later layer, and fix arbitrary directions for all other pairs. The induced orientation of therefore directs every edge from to .
The degree calculation above gives
Set . This target is feasible: reversing every edge gives the required imbalance. The repair demand vector is
Thus each first-layer vertex has supply , each last-layer vertex has demand , and all other vertices have demand zero. The total supply is
In particular, , , and are identical for all graphs. Supplying them to the algorithm reveals none of the binary choices.
Why the flow reveals every edge. Sending one unit along every edge directed by gives a feasible correction flow: each first-layer vertex sends units, each last-layer vertex receives units, and every intermediate vertex receives and sends units.
We now show that every feasible correction flow must send one unit along every edge. Fix and consider the set
The total demand is , so any correction flow of divergence must send net flow out of . All arcs crossing this cut point from to . There are exactly
such arcs, each of capacity one. Consequently, every one of them must carry one unit of flow.
This holds for every boundary between consecutive layers, so every edge of carries one unit. An explicit correction flow therefore lists every edge of . In particular, it reveals which of the two matchings was chosen in each block, and hence recovers all binary choices.
The query lower bound. An undirected cut query to a simple graph on vertices returns an integer between zero and . A deterministic algorithm making at most queries therefore has at most
possible answer transcripts, even when its queries are adaptive.
For any fixed transcript, the algorithm produces one output. Since a correct explicit flow determines uniquely, this output can be correct for at most one graph in the family. Under the uniform distribution on the graphs, the algorithm's success probability is therefore at most
The same bound holds for a randomised algorithm with a worst-case budget of queries: fix its random choices, apply the preceding bound, and then average over those choices. Thus success probability at least 2/3 on every input requires
and hence
Finally, , , and give
Therefore explicit correction-flow recovery requires
cut queries for this family.
This lower bound concerns explicit flow recovery, not the task of producing a corrected orientation rule. Indeed, for this particular family, simply reversing the given rule already achieves the target imbalance without any queries.
D Extension to General Unweighted Digraphs
We sketch how to remove the assumption that the input digraph is oriented. Throughout this section, is an unweighted digraph, possibly with two arcs for a single unordered pair of vertices. Its undirected skeleton is now a multigraph, with multiplicities . The two algorithms are essentially identical, retaining their respective query bounds and , in expectation and with high probability. The main changes are to the representation of orientations and the implementation of the cut-query primitives.
D.1 Multi-orientation rules and the reduction from Section 3.1
For every unordered pair , fix two potential edge copies, labelled 1 and 2 in order of priority. If the multiplicity of the pair is , exactly the first copies exist. Thus copy 2 cannot exist without copy 1.
Definition D.1 (Multi-orientation rule). A multi-orientation rule assigns a direction to each of the two potential copies of every unordered pair of distinct vertices. Its induced orientation of is obtained by retaining the first copies of each pair. We say that matches an imbalance vector if , where degrees count edge copies.
Writing for the direction assigned to copy of , we maintain the invariant
Thus the nonexistent second copy follows the first, without changing the induced orientation. When both copies exist, their directions may differ. The rule is specified simply by the two directions on every pair. The algorithms below initially give both copies the same direction. Whenever they change copies separately, they determine the pair's multiplicity using queries and preserve this invariant.
The invariant is needed for the query implementation. Without it, a rule directing only copy 2 out of a vertex could specify an outgoing candidate even when the pair's sole existing copy points into . Under the invariant, a pair with an outgoing candidate has an existing outgoing copy whenever .
A fractional multi-orientation rule assigns one value to each pair . Each existing copy has probability of pointing from to . Its imbalance is still given by (3), now with . In particular, a common fractional value suffices even if the original arcs point in opposite directions. If and count the original arcs in the two directions, then
has imbalance . Values on absent pairs are arbitrary. The averaging procedures use this common fractional rule. During rounding, the two copies may acquire different probabilities, but we keep their probabilities equal whenever .
The analogue of Definition 3.1 asks for a multi-orientation rule satisfying invariant (13) and matching a feasible imbalance vector on . Once such a rule is constructed, we solve the following analogue of Definition 3.3.
Definition D.2 (Reachability under a multi-orientation rule). The input consists of an undirected multigraph with multiplicities at most two, a multi-orientation rule satisfying invariant (13), and vertices . Given undirected cut-query access to , the task is to decide whether is reachable from in the induced orientation .
We now show how to extend the reduction from Section 3.1 to this more general setting. In fact, the proof of Lemma 3.4 applies directly. To find an out-neighbour of in a set , restrict to vertices for which at least one potential copy of points out of . By the invariant, an existing pair in this candidate set has an outgoing copy. We can therefore apply the same strategy as in Lemma 2.3, the neighbor search subroutine. This search only distinguishes a zero count from a positive count, so multiplicities do not affect it. The resulting graph search still uses queries.
Finally, the cut identities used in Section 3.1 actually already count edge copies and therefore remain valid:
We can compute using outgoing-cut queries, and simulate an undirected cut query to using two outgoing-cut queries. Matching preserves every outgoing-cut value and hence reachability, exactly as in Lemma 3.2. Consequently, an algorithm constructing the required multi-orientation rule in queries gives a directed reachability algorithm using queries.
D.2 Cut-query primitives on the multigraph
As noted above, the edge-counting identity (1) returns the number of copies between two sets. Thus Lemma 2.3 still finds a neighbour using queries, and a pair's multiplicity can be tested using queries.
Integral imbalances. Let contain the vertices for which both potential copies of point out of , and let contain those for which both point into . By invariant (13), every existing pair with opposite directions has two copies, whose imbalance contributions cancel. Hence
These two counts cost queries by Observation 2.2, so the whole imbalance vector costs queries.
Fractional imbalances. More generally, suppose the two potential copies of a pair have known coefficients , with whenever . Then their total contribution is
We can therefore apply Lemma A.1 using the known pair coefficient . This computes approximate fractional imbalances even when the copies have different probabilities. There are at most incident copies at a vertex, so binary digits still suffice for inverse-polynomial additive error using queries.
D.3 The first two steps of the warm-up algorithm
The averaging step of the warm-up directs both potential copies from the smaller vertex value to the larger one. Its only query access is through imbalance evaluations, which can still be computed, as discussed above. Since degrees are at most , the loss bounds change only by a constant factor, as does the choice of step size. Hence, the resultant average imbalance error remains .
For independent rounding, choose one iteration independently for each pair and give both copies its direction. Random choices are independent between pairs, while the contribution of one pair to a vertex imbalance has magnitude at most two. In particular,
This is the only change to the analysis, so the rounding error bound and its verification therefore have the same query complexity as before.
D.4 Repairing the multi-orientation rule using flow
For repair, give each existing directed copy unit capacity. The feasibility argument and the identity from Lemma 3.9 are unchanged. If there are two directed copies pointing the same direction, we combine the two arcs into one with capacity 2. Whenever a pair carries flow, determine its multiplicity and update its two directions in the rule. An augmentation reverses copies along the current residual orientation. Choose the required number of existing copies in increasing priority order among those with the required direction. In particular, a reversal on a pair of multiplicity one must affect copy 1, after which its nonexistent second copy is assigned the same direction.
Internal residual-neighbour queries use the current multi-orientation rule in exactly the same way as the graph search above. The total internal residual capacity on an unordered pair is at most two. Thus the layer argument in Lemma C.11 gives instead of . However, this only leads to the remainder of the analysis in Appendix C changing by constants, yielding the same query bound as before.
D.5 The faster algorithm
The averaging procedure in Section A.2 maintains one fractional value for each pair. In the analysis, use one coordinate for each existing copy; the coordinates belonging to the same pair evolve identically. There are still coordinates, and the degree bound is now . The regret and Lipschitz estimates consequently change only by constants, and we can adjust the constant in the step size accordingly. Approximate weighted imbalance evaluations are the only query access needed by this procedure, and this can be implemented via the multigraph version of Lemma A.1 described above. Thus faster averaging still costs queries and gives error .
It remains to extend the balanced-orientation construction used in dependent rounding. The Eulerian-tour argument and the completion lemma in Appendix B apply to edge copies without change. When constructing successive spanning forests, learn each encountered pair's multiplicity and remove its chosen copies explicitly. For the additional random reserve, sample potential pairs independently and reserve all remaining copies of each sampled pair. Orient the nonreserved copies using one independent random direction per pair.
These changes preserve the query cost of constructing the reserve. They also preserve the concentration argument up to constants: if a cut has copies, its independent pair contributions have magnitudes , with
The cut-counting argument therefore gives the same high-probability completion guarantee after adjusting constants. The reserved pairs have known multiplicities, so completion can orient their copies separately while giving any nonexistent second copy the direction of the first. This proves the multigraph version of Lemma A.4 with the same query bound.
Finally, apply the bit-by-bit rounding procedure of Lemma A.5. The two potential copies may have different probabilities, but their probabilities agree whenever . Their membership in each bit subgraph therefore also agrees on such pairs. Each balanced orientation gives the nonexistent second copy the direction of the first, so the two probabilities remain equal after the bit update. Bit subgraphs retain their original copy labels and use cut queries to . When we assign different directions to the edges between some pair , we retain the knowledge that . We use this retained information to correct the cut queries used in neighbor searches and imbalance evaluations. The primitives above therefore implement each call to the balanced-orientation subroutine and preserve the invariant for the next bit. The initial truncation error remains per vertex, and each bit changes the imbalance by as before. Hence dependent rounding still has error per vertex and uses total queries. Combining this with faster averaging, the flow repair step, and gives the bound for general unweighted digraphs.