Manuscript Offprint
arXiv:2610.34097A Nearly Optimal Min-Cut Algorithm for Dynamic Streams
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We give an -space algorithm for the minimum cut problem in dynamic streams, resolving the space complexity of streaming min-cut up to polylogarithmic factors. Ding, Garces, Li, Lin, Nelson, Shah, and Woodruff (ITCS 2025) obtained the same space bound for insertion-only streams, while prior to our work the best known bound even for unweighted dynamic streams was , due to Ahn, Guha, and McGregor (PODS 2012). Our main technical contribution is an -space for each cut sketch in dynamic streams, which may be of independent interest. The construction applies to weighted graphs under general updates, a stronger model than the standard dynamic-stream setting in which weighted edges are inserted and deleted in their entirety. Despite this stronger guarantee, our algorithm is surprisingly simple and relies on very little machinery. We also obtain applications to minimum -norm k-partitioning for every fixed k, weighted correlation-clustering evaluation for two clusters, and for each cut sketching in balanced directed graphs.
*(yangl7@andrew.cmu.edu) Carnegie Mellon University. Supported in part by NSF Career Award CCF2542272.
†(hnnguyen@andrew.cmu.edu) Carnegie Mellon University. Supported in part by an NSF GRFP fellowship grant number DGE2140739/DGE2631988, NSF Career Award CCF2542272, Office of Naval Research award number N000142112647, and a Simons Investigator Award.
(vihanshah98@gmail.com) University of Birmingham. Supported in part by the European Union under the Horizon Europe Marie Skłodowska-Curie Actions, Grant Agreement No. 101282993 (HuNTR).
§(dwoodruf@cs.cmu.edu) Carnegie Mellon University, Google Research. Supported in part by Office of Naval Research award number N000142112647 and a Simons Investigator Award.
1 Introduction
Minimum cut is one of the most fundamental graph problems and has been studied extensively across every major model of computation. Beyond its theoretical interest, minimum cut also has practical applications, including measuring influence in social networks [WDL 20] and robustness to failures in power [HJJ 14] and road networks [SK23].
In the classical setting, a line of work [Kar93, KS96, BK96], culminating in [Kar00], gave the first randomized algorithm for minimum cut running in time, where is the number of edges in the graph. Many years later, Gawrychowski, Mozes, and Weimann [GMW20] improved the randomized running time to . Around the same time, Li and Panigrahi [LP20] showed that minimum cut can be solved deterministically within a polylogarithmic factor of max-flow time. Breakthroughs in max flow [CKL 22a, VDBCK 23] then implied an -time deterministic algorithm for minimum cut. Finally, a line of work [KT18, HRW20, Li21, HLRW24] showed that minimum cut can be solved deterministically in time.
We study the minimum cut problem in the graph streaming model, which is particularly relevant for processing massive graphs. We consider the arbitrary-order streaming setting, where the vertex set is fixed and edge insertions and deletions arrive sequentially in a stream in an arbitrary order. The goal is to solve the problem using as little space as possible. The streaming model was first formalized by Alon, Matias, and Szegedy [AMS96] and has been studied extensively over the past couple of decades (see, e.g., [McG14] for a survey on graph streams).
We first review the setting of simple unweighted graphs. Zelke [Zel11] showed that solving minimum cut exactly in the streaming model requires bits of space. Since the entire graph can be stored using bits, beating the quadratic bound requires settling for an approximation. Ahn and Guha [AG09] showed that a -approximation to minimum cut can be achieved using space, and also proved an -bit lower bound for this problem. These bounds hold in the insertion-only streaming model where the stream only contains edge insertions. Ahn, Guha, and McGregor [AGM12b] subsequently extended the -space upper bound to insertion-deletion streams for unweighted graphs. They also obtained a weighted extension by grouping edges into weight classes, but this requires the weight of an edge to be known when that edge is inserted or deleted and therefore does not apply to general turnstile weight updates. Chen, Khanna, and Li [CKL22b] later gave the first linear-sketching algorithm for weighted graphs in the general turnstile model, using space.
These approaches are based on the notion of cut sparsifiers introduced by Benczúr and Karger [BK96]. A cut sparsifier of a graph is a sparse weighted subgraph that approximately preserves the value of every cut. For a for-all guarantee, a single random sketch must simultaneously approximate every cut with high probability. In contrast, a for-each guarantee only requires that, for any fixed cut chosen independently of the sketch randomness, that cut is approximated with high probability.
These prior streaming algorithms achieve their guarantees by constructing for-all cut sparsifiers using or space. Benczúr and Karger [BK96] showed that every graph admits a cut sparsifier with edges, and this was later improved to edges by [BSS12]. On the other hand, an -bit lower bound for representing a cut sparsifier was established in a line of work [Alo97, ACK 16, CKST19], even when the sparsifier is not required to be a subgraph of the original graph. The corresponding existence results were also extended to the stronger notion of spectral sparsifiers [ST04, ST11, SS11, BSS12]. Consequently, any streaming algorithm for minimum cut that explicitly constructs such a cut sparsifier incurs bits of space.
Throughout the paper, we use to hide polylogarithmic factors in .
This limitation of the cut-sparsifier approach was later circumvented by Ding, Garces, Li, Lin, Nelson, Shah, and Woodruff [DGL 25], who gave a minimum cut algorithm for weighted graphs (where the weight of an edge is known upon insertion) using bits of space in insertion-only streams. A key ingredient in their algorithm is a streaming construction of a for-each spectral sparsifier, building on a line of work [ACK 16, JS18, CGP 18].
More specifically, the for-each spectral sparsifier of builds on the short-cycle decomposition framework of . At a high level, the approach finds a large collection of edge-disjoint short cycles, randomly keeps and reweights one alternating half of each cycle, and repeats on the remaining graph. Constructing the required short-cycle decompositions is itself highly nontrivial, relying on low-congestion cycle covers and additional graph-decomposition machinery. Thus, even the core sparsification primitive behind their result requires a substantial collection of sophisticated spectral and graph-theoretic tools.
[DGL 25] also proved an -bit lower bound for minimum cut, resolving the space complexity of the problem in insertion-only streams up to logarithmic factors. However, even for simple unweighted graphs in dynamic streams, the best known space bound remained bits.
This gap in our understanding is particularly interesting in light of a broader phenomenon in graph streaming, where many problems have essentially the same space complexity in insertion-only and dynamic streams up to logarithmic factors. This insertion-only versus dynamic “near-equivalence” is known for several problems, including k-edge-connectivity [NI92, AGM12a], k-vertex-connectivity [CKT93, AS23], cut sparsifiers [AG09, AGM12b], spectral sparsifiers [KL13, KLM 17], constant-factor approximation to densest subgraph [MTVV15, EHW16], correlation clustering [AKP25, ASW23], and -vertex coloring [ACK19]. Notable exceptions include maximum matching and minimum vertex cover, for which dynamic streams are provably harder than insertion-only streams [AKLY16, DK20, AS22, NS22]. Approximate minimum cut therefore represents one of the remaining gaps in our understanding of the relationship between insertion-only and dynamic streams:
Question 1.1. Can -approximate minimum cut be solved in bits of space in dynamic graph streams where both insertions and deletions are allowed?
Result 1 (Formalized in Theorem 1). There is a one-pass streaming algorithm that, given a weighted graph under general turnstile updates, outputs a -approximate minimum cut with high probability using bits of space. Take the update time of a constant-approximation for-all cut sparsifier to be . Then the update time is .
Our main technical contribution is an -space for-each cut sketch for weighted graphs under general turnstile updates. We note that our sketch also achieves poly log n update time. The overall result uses a for-all cut sparsifier as a blackbox, and therefore the update time of
We use the term for-each cut sketch rather than for-each cut sparsifier because our data structure need not output a weighted subgraph of the input graph. Instead, for any fixed cut chosen independently of the sketch randomness, it returns an approximation to the value of that cut.
the whole algorithm is where is the update time of the for-all sparsifier . In the offline setting, where the graph is given explicitly, Andoni, Chen, Krauthgamer, Qin, Woodruff, and Zhang previously gave an -size for each cut sketch. We obtain the same space bound with a sketch that can be maintained in a single pass over a dynamic stream. Moreover, our update model is strictly stronger than the weighted insertion-deletion setting typically considered in dynamic graph streams, where each edge is inserted or deleted together with its full weight.
The general weighted turnstile model is substantially more challenging: even for the extensively studied problem of constructing a for-all cut sparsifier, the optimal space complexity is not known. The best known upper bound is , due to Chen, Khanna, and Li [CKL22b], compared with the lower bound inherent to cut sparsification. Thus, there remains an extra factor of even for this fundamental and heavily studied primitive. For both minimum cut and for-each cut sketching, our space bound is optimal up to polylogarithmic factors: prove an lower bound for minimum cut, while prove the corresponding lower bound for for-each cut sketches.
A notable feature of our construction is its simplicity. Prior near-optimal for-each cut and spectral sketches rely on recursive decompositions into high-expansion pieces [ACK 16, JS18], while the recent insertion-only minimum-cut algorithm of [DGL 25] builds on the short-cycle decomposition framework of [CGP 18]. Our construction requires neither type of graph decomposition. Instead, it uses only a small collection of standard streaming primitives: exact counters, -samplers, and constant-dimensional Cauchy sketches for estimating the norm. Moreover, in the insertion-only streaming setting, the underlying -sampling and -estimation primitives admit simpler implementations, making our framework an especially elementary alternative to the prior near-optimal insertion-only algorithm of [DGL 25]. Thus, despite operating in the stronger turnstile model, the resulting sketch has a comparatively simple structure.
We emphasize that our construction is a cut sketch rather than a spectral sketch. Our techniques exploit the structure of a single queried cut and do not extend directly to preserving spectral information. This distinction is important in the weighted turnstile setting. Chen, Khanna, and Li [CKL22b] proved a lower bound for the stronger problem of spectral sparsification, which requires preserving all quadratic forms simultaneously rather than answering a single fixed query. They show that any incidence sketch that outputs even a constant-factor weighted spectral sparsifier requires measurements. Our sketch is also incidence-based, as are many natural graph-streaming sketches. Thus, while their lower bound does not apply to spectral sketches in general, it suggests that obtaining spectral guarantees within the incidence-sketch framework may be substantially more difficult.
Our techniques also extend to the minimum -norm -partitioning problem for every fixed and . In this problem, the goal is to partition the vertex set into nonempty parts. Each part has a boundary weight, given by the total weight of edges with exactly one endpoint in that part, and the objective is to minimize the -norm of these boundary weights. The case is equivalent to the minimum -cut problem which has been studied extensively in the classical setting [GH94, Tho08, CQX19, Li19]. The case is the Minmax -cut problem, studied by Chandrasekaran and Wang [CW21]; their work also considers the more general minimum -norm -partitioning objective for every .
A generic streaming approach is to construct a for-all cut sparsifier. Since such a sparsifier preserves the boundary weight of every part, it also preserves the -objective of every k-partition.
For unweighted graphs, or weighted graphs under the more restricted kind of updates where an edge is inserted or deleted with its weight, the overall update time is poly log n due to the existence of a for-all cut sparsifier in this setting with update time poly log n.
However, this again requires bits of space. By combining our for-each cut sketch with a constant-accuracy for-all sparsifier, we improve the dependence on to for every fixed and every .
Result 2 (Formalized in Corollary 4.1). Fix a constant integer and let . There is a randomized one-pass streaming algorithm that, given a weighted graph under general turnstile updates whose final edge weights are nonnegative, uses bits of space and, with high probability, outputs a -approximate minimum -norm -partition. The update time is where is the update time of a constant-approximation for-all cut sparsifier.
Our techniques also give an improved sketch for evaluating weighted correlation clusterings. In weighted correlation clustering, each pair is associated with two nonnegative weights and , corresponding respectively to the cost of placing and in different clusters and in the same cluster. The disagreement cost of a clustering is the sum of these costs over all pairs. Ahn, Cormode, Guha, McGregor, and Wirth [ACG21] gave an -space sketch for evaluating any fixed clustering in the unweighted setting, and an -space sketch for evaluating any fixed two-clustering with arbitrary nonnegative weights. As a direct consequence of our for-each cut sketch, we improve the latter bound to bits, even under general turnstile updates to the positive and negative weights.
Result 3 (Formalized in Corollary 5.1). There is a randomized one-pass streaming algorithm that, given general turnstile updates to the positive and negative weights of a weighted correlation-clustering instance whose final weights are nonnegative, uses bits of space and, with high probability, estimates the disagreement cost of any fixed two-clustering within a factor. The update time is poly log n.
Our techniques also extend to for-each cut sketching for balanced directed graphs . A weighted directed graph is -balanced if, for every nontrivial cut of the input graph , the total weight of edges from to is at most a factor larger than the total weight in the reverse direction. Cut sparsification for balanced directed graphs was previously studied outside the streaming setting. Ikeda and Tanigawa [IT18] and Cen, Cheng, Panigrahi, and Sun [CCPS21] gave offline constructions of cut sparsifiers and sketches; in particular, [CCPS21] gave an -space for each cut sketch. Cheng, Li, Lin, Tai, Woodruff, and Zhang [CLL 24] subsequently proved a matching lower bound up to logarithmic factors for the corresponding data-structure problem. More recently, dynamic algorithms have been developed for balanced directed sparsification, maintaining for-all sparsifiers of size [GHRS25, Zha26]. Our construction achieves the optimal for each space bound with a sketch that can be maintained in a single pass over a weighted directed graph under general turnstile updates. To the best of our knowledge, this is the first streaming algorithm to achieve the optimal for-each bound for balanced directed graphs. Moreover, the construction retains the same simple product-bucketing structure and streaming primitives as our undirected sketch.
Result 4 (Formalized in Theorem 3). For every , there is a randomized one-pass streaming algorithm that, given a weighted directed graph under general turnstile updates whose final edge weights are nonnegative and whose final graph is -balanced, uses bits of space and produces a for-each cut sketch. For any fixed nontrivial , the sketch returns a -approximation to the weighted cut value of with high probability. The update time is poly log n.
1.2 Technical Overview
Our main tool for solving minimum cut is a for-each cut sketch. We use the same high-level reduction as in [DGL 25]. We first store a constant-factor for-all cut sparsifier, say a -approximation, using space. This allows us to identify a polynomial-size family of sufficiently small cuts that contains the minimum cut, for example by enumerating all cuts whose value is within a constant factor of the minimum. We then evaluate every cut in this family using a for-each cut sketch with inverse-polynomial failure probability. A union bound guarantees that all candidate cut values are simultaneously preserved within a factor with high probability, and taking the minimum estimated value therefore yields a -approximation to the minimum cut.
We now describe the construction of our -approximate for-each cut sketch. For any cut C fixed independently of the sketch randomness, it outputs, with high probability, an estimate of its weight w with additive error at most .
A direct -sketching baseline. A natural baseline is to estimate the cut weight directly using a linear -norm sketch. Let , with one coordinate for every unordered pair of vertices, and fix an arbitrary orientation of each pair. For each vertex , define a signed incidence vector : the coordinate corresponding to an edge incident to is if is oriented out of , if it is oriented into , and 0 otherwise.
We maintain the same linear -norm sketch of for every vertex v. Once the query cut C is revealed, we add the sketches of all vertices in C. By linearity, this gives a sketch of
Every edge with both endpoints in C contributes through both of its endpoint vectors, once with sign and once with sign , so the two contributions cancel. An edge with neither endpoint in C contributes nothing to the sum. Finally, an edge crossing C has exactly one endpoint in C, so it contributes exactly once, with value either or . Thus, has one nonzero coordinate for each edge crossing C and no other nonzero coordinates. Therefore,
We can estimate this norm using a standard linear -norm sketch. A approximation requires space in the turnstile model [KNW10]. Since we maintain such a sketch for every vertex (as we do not know in advance of the stream what cut will be queried), this direct approach uses space. Our goal is to save a factor of by exploiting additional information so that we do not need to estimate the entire cut weight.

(a) The bipartite representation , partitioned into left buckets by and right buckets by . Each edge with is represented by the directed edge .

(b) The four edge types in a cell induced by the cut . Crossing edges have sign or -1, while noncrossing edges have sign 0.
Figure 1: Figure showing the graph H and a cut C.
A bipartite view of cut edges. We create a bipartite graph by making two copies of every original vertex : a left vertex and a right vertex . For every original edge with , we represent it by the single edge in , with the same weight as . Thus, every original edge appears exactly once in the bipartite graph.
Relative to the query cut C, assign each edge the sign
We call a crossing edge positive if and negative if . Thus, the nonzero signs correspond exactly to the edges crossing C. We will exploit exact information about the difference between the positive and negative cut-edge weights, rather than estimating the entire cut weight directly. Figure 1 illustrates the bipartite representation and previews the bucketing scheme introduced below.
Ideal thought experiment: independently throw edges into cells. For a parameter B to be chosen later, assign every edge independently and uniformly to one of cells (before the query cut is known). These cells partition the edges, not the vertices. For a cell c, let and denote the total weight of the positive and negative cut edges assigned to c, respectively, and let
denote the total cut weight contributed by the cell.
For every cell and every left vertex , we store the total weight of edges in incident to . Similarly, for every right vertex , we store the total weight of edges in incident to . Once the query cut is revealed, we add the counters for all left vertices with and subtract the counters for all right vertices with .
Consider an edge in cell . If both , then its weight appears once in each sum and the two contributions cancel. If neither nor belongs to , the edge appears in neither sum. If and , the edge contributes , while if and , it contributes . Thus, the resulting signed sum is exactly . The crucial identity is
The absolute imbalance is therefore known exactly, and only the minority mass needs estimation. This identity also shows where the difficulty lies. If one sign dominates the cell, then the imbalance already accounts for most of the cell's cut weight, leaving only a small minority mass to estimate. The difficult case is when the positive and negative masses are comparable: substantial weight then cancels in the signed difference, leaving a large minority mass to estimate. We estimate precisely this hidden mass using an -norm estimator together with an independent -sampler.
Estimating only the minority. To estimate the minority mass, we maintain two sketches for each vertex–cell pair. Specifically, for every cell c and every left or right vertex incident to edges in c, we maintain an -norm sketch and an -sampler over the edges of c incident to that vertex. For each cell, corresponding sketches across vertices use the same linear maps, while the randomness of the -norm sketch and the -sampler is independent.
Once the query cut C is revealed, we combine these sketches using the same signed sum as for the exact counters above. By linearity, the resulting -norm sketch corresponds to a vector whose nonzero coordinates are exactly the cut edges in the cell, with coordinate for a positive edge and for a negative edge. Its norm is therefore . Using a constant-dimensional linear sketch based on Cauchy random projections, we obtain an unbiased estimator of this quantity satisfying
Independently, the combined -sampler returns a cut edge from the cell with probability proportional to its weight. The exact imbalance tells us which sign is the minority. Let , and let if the sampled edge has the minority sign in cell , and otherwise. Since the sampler selects an edge with probability proportional to its weight,
By independence of and ,
Thus, is an unbiased estimate of the minority mass , and is an unbiased estimate of the correction term in the identity above.
What controls the variance? Suppose the positive edges are the majority in total weight in cell c, so the negative edges form the minority. The estimator uses to estimate the correction term , where exactly when the -sampler returns a negative edge, and otherwise. Define the cell estimator
Since the first term is deterministic once the cell is fixed, .
To bound , we use . Since and and are independent,
Using and , we obtain
where the last inequality uses and hence .
The variance is small in two favorable cases. If the cell has small total mass, then the -norm estimate itself is small in scale. If the cell is nearly one-sided, then the exact imbalance already captures almost all of its cut weight, leaving only a small minority mass to estimate. The difficult case is therefore a large cell containing substantial mass of both signs: much of its cut weight cancels in the signed imbalance, leaving a large minority mass that must be estimated. Importantly, we only need the sum of the cell estimates to have small additive error, rather than requiring a relative approximation for every individual cell.
Bucketing suppresses opposite-sign interaction. The product is the total weighted contribution of positive-negative edge pairs sharing cell , where each pair contributes the product of its two edge weights. Over the whole cut, the total contribution of all positive-negative pairs is , where and are the total positive and negative cut-edge weights and . Since each positive-negative pair is assigned to the same cell with probability ,
Thus, bucketing suppresses precisely the interactions that contribute to the variance: a cell has large variance only when it contains substantial weight from both positive and negative edges.
Our final estimate is the sum of the cell estimates. For every fixed bucket assignment, the cell estimates are unbiased and use independent estimation randomness, so their variances add. By the per-cell variance bound above,
Moreover,
for every bucket assignment. Thus, by the law of total variance,
We choose , with a sufficiently large constant, so that . Since , Chebyshev's inequality gives . Thus, one repetition returns a approximation to the cut weight with constant probability. Independent repetitions and taking the median amplify this guarantee to high probability.
Why the ideal implementation still costs . In the ideal implementation above, each vertex–cell pair stores an exact counter, an -norm sketch, and an -sampler, requiring only polylogarithmic space per pair. However, because edges are assigned to cells independently of their endpoints, edges incident to a single vertex can be scattered across all cells. Thus, each of the 2n vertex copies may require summaries, for a total of vertex–cell pairs. The resulting space complexity is
where we use . Thus, independently partitioning the edges into cells gives the variance reduction we need, but storing the corresponding summaries still costs too much space.
Product bucketing: preserve cells, pay for only . Instead, we independently assign each left vertex to one of left buckets and each right vertex to one of right buckets , uniformly at random. A cell consists of all edges whose left endpoint lies in and whose right endpoint lies in . Figure 1 illustrates this product-bucketing construction and the positive and negative edges within a cell.
There are still cells, but a left vertex in can be incident only to cells . It therefore needs only summaries, one for each right bucket. Symmetrically, each right vertex needs only summaries, one for each left bucket. To query a cell , we combine the corresponding left- and right-vertex summaries using the same signed sums as before. Thus, there are only vertex-bucket summaries in total, reducing the space to .
Moreover, an update to an edge affects only the two vertex–bucket structures associated with its endpoints. Since the exact counters, -norm sketches, and -samplers can each be updated in polylogarithmic time, the resulting worst-case update time is polylog(n).
Why dependencies between edge locations do not hurt. The storage reduction introduces dependencies between edge locations: all edges incident to a left vertex share a row, and all edges incident to a right vertex share a column. A high-degree or high-weight vertex can therefore concentrate substantial weight in a small number of cells, and we cannot assume that the cut weight is evenly distributed across cells.
Crucially, however, the variance analysis only uses the probability that a fixed positive-negative pair of cut edges lands in the same cell. The left endpoint of the positive edge corresponds to a vertex in C, while the left endpoint of the negative edge corresponds to a vertex outside C, so these two endpoints are distinct. Similarly, their right endpoints are distinct. Hence the two left endpoints land in the same left bucket with probability 1/B, and the two right endpoints land in the same right bucket with probability 1/B. Since the left and right bucket assignments are independent, the two edges share a cell with probability 1/B².
By linearity of expectation, we therefore retain the same bound on , even though the locations of different edge pairs may be correlated. Thus, the same variance analysis applies. The central saving is the statistical benefit of cells at the storage cost of only summaries per vertex.
1.3 Related Work
Exact minimum cut admits space-efficient algorithms when additional passes are allowed. Although developed in the cut query model, the -query algorithm of Rubinstein, Schramm, and Weinberg [RSW18] also implies a two-pass streaming algorithm using space for simple unweighted graphs. Assadi and Dudeja [AD21] formalized this implication and gave a simpler two-pass streaming algorithm for exact minimum cut in such graphs using bits of space. For weighted graphs, Mukhopadhyay and Nanongkai [MN20] obtained an exact algorithm using space and passes. In random order streams, exact minimum cut in simple unweighted graphs can be computed in one pass using space [DGL 25]. For approximate minimum cut in insertion-only streams, Cohen-Addad, Woodruff, Xie, and Zhou [CWXZ25] improved the logarithmic factors in the space bound of [DGL 25].
Beyond minimum cut, k-edge-connectivity and k-vertex-connectivity have also been studied in graph streams. These works address both connectivity testing and sparse certificate construction [AGM12a, GMT15, AS23, GS24, SY26]. For , Nelson and Yu [NY19] proved optimal space lower bounds for computing spanning forests in dynamic streams.
2 Preliminaries
Basic notation. We use to denote the set . All logarithms are base 2. We take with high probability to mean with probability . We may assume without loss of generality that , since otherwise we can store the entire weighted graph explicitly using bits. For , we write .
2.1 Streaming model
The vertex set is fixed in advance, and the graph is represented by a vector , where each coordinate denotes the weight of an edge . The input is a stream of updates , where , which perform . Positive updates increase the weight of an edge and negative updates decrease it. We assume that at the end of the stream for every edge . As is standard in the literature, we further assume that both the stream length and the magnitude of each update are bounded by . We consider one-pass streaming algorithms, with space complexity measured in bits. As is standard for dynamic graph streaming algorithms, our algorithms are based on linear sketches [LNW14, JLY26].
2.2 Cuts
For a simple, undirected graph let a cut of be such that . Let the edges crossing the cut be
We denote the global minimum-cut value by . The minimum-cut problem asks for a cut attaining this value; its -approximate version asks for a cut satisfying .
For a weighted, undirected graph , a cut is a set such that . We denote the weight of the cut by
and define the global minimum-cut value as . The -approximate min-cut problem asks for a cut satisfying .
For a partition of into nonempty parts, define the weight of the corresponding -cut by
We denote the minimum -cut value by , where the minimum is over all partitions of into nonempty parts. The -approximate minimum -cut problem asks for a partition of into nonempty parts satisfying .
2.3 samplers
For , an exact -sampler outputs an index s.t. for every we have .
Proposition 2.1 ([SWZ25]). Let be presented by a turnstile stream, and let . For any constant , there is a one-pass -sampler linear sketch that fails with probability at most and, conditioned on not failing, outputs an index such that, for every ,
The sampler uses bits of space and poly time per update.
In this paper, will be . Since the stream has polynomial length and the algorithm uses only polynomially many sampler outputs, for sufficiently large the joint distribution is within total variation distance of that obtained with exact -samplers for any constant . We therefore treat the samplers as exact throughout the analysis and absorb this negligible discrepancy into the final failure probability.
2.4 Cut Sparsifiers
A weighted graph on the same vertex set is a for-all cut sparsifier of if it approximates the value of every cut simultaneously. We use the following streaming construction.
Proposition 2.2 ([CKL22b]). For every , there is a randomized one-pass algorithm in the general weighted turnstile model that uses bits of space and, with high probability, recovers a weighted graph satisfying simultaneously for every nontrivial cut of the final graph .
In particular, setting to a constant gives a for-all cut sparsifier in bits of space in the same update model.
2.5 norm sketch via Cauchy random variables
Here we use standard techniques to build an -norm sketch with the guarantees required by our algorithm.
Definition 2.3. A random variable is a standard Cauchy random variable if it has probability density function for .
Proposition 2.4 (Cauchy 1-stability; cf. [Ind06]). Let be independent standard Cauchy random variables, and let be fixed. Then , where is a standard Cauchy random variable.
Lemma 2.5. Let be any fixed vector, and fix an integer . For every and , let be independent standard Cauchy random variables, and define for . Define
Then
where . In particular, .
Proof. If , the result is immediate. By Proposition 2.4, , where are independent standard Cauchy random variables. The result then follows directly from [LHC07, Lemma 6].
The Cauchy sketch above is defined using exact real arithmetic and fully independent Cauchy random variables. To obtain a finite-space streaming implementation, we use the bounded-precision and pseudorandomness techniques of [Ind06]. At a high level, the Cauchy coefficients and maintained measurements can be represented with logarithmically many bits, and the coefficients can be generated as needed from a short pseudorandom seed. We defer the formal statements and proofs to Section A; the following consequence is all that we use.
Lemma 2.6. Fix a constant integer . For any fixed constant , there is a linear sketch for that maintains an estimator using bits of space and update time, such that .
Throughout the analysis, we work with the ideal Cauchy estimator of Lemma 2.5. By Lemma 2.6, and since our algorithm uses only polynomially many estimator blocks, choosing the constant sufficiently large makes the cumulative finite-precision error and failure probability negligible. We absorb these errors into the final approximation and failure probability. We take , for which . We refer to the corresponding Cauchy measurements , together with the decoder , as an -norm estimator block.
2.6 Probabilistic Tools
We use the following standard concentration inequalities.
Proposition 2.7 (Markov's inequality; cf. [DP09]). Let X be a nonnegative random variable. Then, for every t > 0,
Proposition 2.8 (Chebyshev's inequality; cf. [DP09]). Let X be a random variable with finite variance. Then, for every t > 0,
Proposition 2.9 (Chernoff bound; cf. [DP09]). Suppose are independent random variables taking values in . Let and . Then, for any ,
We also use limited-independence hash functions in our algorithm.
Definition 2.10. For integers , a family is -wise independent if, for every , every collection of distinct inputs , and every choice of outputs ,
The output values need not be distinct.
Roughly speaking, a k-wise independent hash function behaves like a fully random function on any set of at most k distinct inputs. We use the following standard construction.
Proposition 2.11 ([MR95]). For all integers , there exists a -wise independent family such that a uniformly random function can be sampled and stored using bits of space.
We also use the following Chernoff–Hoeffding-type concentration bound for limited independence.
Proposition 2.12 ([SSS95]). Suppose is sampled from a -wise independent family, where and . Let be distinct, where , and let be random variables in , where if and only if . Set and . If , then, for every ,
If , then .
3 Min-cut algorithm
Theorem 1. For every , there is a randomized one-pass streaming algorithm that, given a weighted, undirected graph under general turnstile updates, uses bits of space and, with high probability, outputs a cut such that .
To prove this result, the main technical ingredient we require is a for-each cut sketch of the input graph. Given such a sketch, we can solve the -approximate minimum cut problem as follows. By Proposition 2.2, we can store a for-all cut sparsifier with set to a constant using space in the general weighted turnstile model. Let denote the minimum-cut value of this sparsifier, and call a cut small if its value in the sparsifier is at most a sufficiently large constant times . Since the sparsifier approximates every cut within a constant factor, every small cut is a constant-factor approximate minimum cut of . Karger's standard cut-counting bound [Kar93] implies that there are only such cuts. Moreover, a minimum cut of is itself small, so the small cuts form a polynomial-size candidate family containing a true minimum cut of .
Streaming construction
| Symbol | Description |
|---|---|
| Number of buckets | |
| Two independent bucket hashes | |
| Left/right buckets and their cell | |
| Exact aggregate-weight counters for a vertex-bucket pair. | |
| -norm estimator blocks for a vertex-bucket pair. | |
| -samplers for a vertex-bucket pair. |
Query and analysis
| Symbol | Description |
|---|---|
| Query cut, , and cut-edge sign. | |
| Positive and negative cut-edge weights in cell . | |
| Total mass, signed difference, and minority mass in . | |
| Graph-wide positive and negative cut-edge weights. | |
| -norm estimate of . | |
| Indicator that the -sample has the minority sign. | |
| Cell estimate and final cut estimate. |
Table 1: Notation for the weighted for-each cut sketch.
We can then query the for-each cut sketch with accuracy parameter and failure probability on every candidate (small cut) and output the cut with the smallest estimated value. A union bound ensures that all candidate estimates are simultaneously correct. Since a minimum cut of belongs to the candidate family, the cut with the smallest estimated value cannot have value more than a factor larger than the true minimum cut. This gives a approximation, which can be made by rescaling. A complete proof of this reduction from for-each cut sparsification to approximate minimum cut appears in [DGL]. Thus, the main technical ingredient we need is a for-each cut sketch in the general weighted turnstile model using space, and constructing such a sketch is our main technical result:
Theorem 2. Fix and . There is a randomized for-each cut sketch for weighted, undirected graphs in the general turnstile model such that, for every fixed query , the sketch returns an estimate satisfying
with probability at least , using bits of space. The update time is .
The bipartite representation of is the weighted bipartite graph , where and are copies of on the left and right sides. For every edge with , the graph contains the single edge with weight . For a potential edge , take . Thus, every edge of appears exactly once in .
We partition each side into buckets. Fix independent pairwise-independent hash functions . For , define the left bucket and the right bucket . A cell is a pair . We identify this cell with its index pair .
For every left vertex and right bucket , define
and, symmetrically, for every left bucket and right vertex , define
STREAMING MAINTENANCE
Dynamic stream
updates to edge weights
Maintain vertex–bucket structures
-
exact counters: ,
-
-norm estimator blocks: ,
-
-samplers: ,
an update to is applied to the structures for and
1
Recover cell imbalance
Receive query cut C and for each cell c, combine the exact counters to recover
,
which determines the minority sign in c.
2
Estimate
For each cell c, combine the -norm sketches according to C and get approximation
.
3
Estimate minority mass
For each cell c, combine the -samplers according to C and let indicate whether the sampled edge has the minority sign, so
.
4
Estimate one cell Form
This is an unbiased estimate of .
5
Aggregate and amplify
Sum the cell estimates
and return the median over independent repetitions.
Figure 2: Algorithm roadmap
The sketch explicitly stores these two families of exact counters. The order of the arguments follows the left-to-right orientation of H.
denotes an -norm estimator block for the edge-weight vector on edges of with , and denotes an -sampler for the same edge-weight vector. Symmetrically, and denote the corresponding structures for the edge-weight vector on edges entering from .
For each cell , all left -norm estimator blocks with and all right blocks with use the same linear map, so their sketches can be added and subtracted. The same holds for the corresponding -samplers. Different cells use independent randomness, and the -norm estimator blocks use randomness independent of the -samplers.
We now present our algorithm. See Figure 2 for a summary of the steps and Table 1 for a table with the relevant notation.
Configure every -sampler to have failure probability for a sufficiently large constant . The number of samplers used in a single repetition is , so by a union bound, with high probability, none of them outputs FAIL. The -norm estimator blocks satisfy the expectation and second-moment guarantees of Lemma 2.5. For a target failure probability , maintain independent repetitions of the sketch and return the median of their estimates.
Claim 3.1. This claim is deterministic and holds for every choice of , and the randomness used by the -norm estimator blocks and -samplers. A single repetition of the sketch uses bits of space and has worst-case update time. The full sketch uses bits of space and has worst-case update time.
Proof. One repetition stores two families of nb exact counters, for a total of 2nb counters. Since all intermediate edge weights are bounded by , each counter has magnitude and hence uses bits. Thus, the counters use bits of space. The descriptions of , use bits. The two families of structures store one -mass estimator block for each of the nb vertex–bucket pairs, and the two families of structures store one -sampler for each of the nb vertex–bucket pairs. Thus, one repetition stores 2nb -mass estimator blocks and 2nb -samplers. By Lemma 2.6, each -mass estimator block uses bits of space, and
Algorithm 1 Weighted For-Each Cut Sketch
Input: A dynamic stream of updates ( ) and parameter . Output: Given a cut , an estimate of its total weight . Initialization: 1: Set , and fix . 2: Maintain the exact counters and . 3: Maintain , , , and defined above. On an update of value to : 4: Order the endpoints so that , and view the update as acting on . 5: Add to and . 6: Apply to edge in and , and in and . Recovery for a cut : 7: Set for every , and set for every . 8: For every cell , compute
.
9: For every cell , form the temporary -norm estimator block
,
and let be the unbiased -norm estimate obtained by decoding it. 10: For every cell , form the temporary -sampler
,
query it, and let be the edge returned, where a sampler on the zero vector returns . 11: If , let and . Otherwise, let and . 12: Set . 13: return .
each -sampler uses poly bits of space. Since , these structures use bits of space.
An update changes two exact counters. It also changes two -mass estimator blocks and two -samplers. Each -mass estimator block and each -sampler can be updated in poly time, so the resulting update time is for one repetition. Multiplying by proves the claimed bounds.
We now analyze just one repetition of the algorithm.
3.1 Analysis
Fix a query cut C and analyze one repetition of the sketch. For every vertex u, define
For every ordered pair , define the signed cut value
The value is nonzero exactly when crosses the cut. Such an edge is called positive when i.e. the edge is leaving the cut in G and negative when i.e. the edge is entering the cut in G. We also write and for the corresponding edge of H.
For every cell c, define
Thus, is the total weight of cut edges in cell c, and is the total weight of the sign having smaller total weight. Define the total weights of positive and negative cut edges by
and define . Since every edge of G appears in exactly one cell of H,
For every cell, we use the identity
We first verify that the exact counters recover .
Claim 3.2. For every fixed outcome of and every cell ,
Proof. By the definitions of the two counters, the right-hand side equals
For every cell , the combined sampler vector used by the recovery procedure has coefficient on an edge in cell . Consequently, its support consists exactly of the cut edges in , the absolute value of the coordinate corresponding to an edge is , and its sign is . In particular, the norm of the combined vector is .
We next record the distribution of the samples returned by the -samplers.
Lemma 3.3. Fix any outcome of , and condition on all queried -samplers succeeding. For every cell with and every cut edge ,
If , the combined sampler vector is zero.
Proof. As observed above, the combined sampler vector for cell has coordinate on each cut edge and zero on every non-cut edge. Hence its norm is . Therefore, by the guarantee of the -sampler, the sampler returns a cut edge with probability .
For a cell with , let be the indicator that the sample has the minority sign, and define
By Lemma 3.3, the -sample has the minority sign with probability . Thus, . If , set . Let be the output of the -mass estimator block for the combined vector of cell . By Lemma 2.5,
Define the cell estimator as
Claim 3.4. Fix any outcome of and a cell c. We have
Proof. If , the claim is immediate. Assume that . The other case is symmetric. Then , so the negative edges have the minority sign and . Thus,
and
By Lemma 2.5, and . Moreover, is independent of . Since ,
For independent random variables X and Y,
Since and is independent of ,
Finally, is fixed once are fixed, so
where the last equality uses that r is a fixed constant.
For every cell,
Indeed, if , then , and the other case is symmetric. We now bound the sum of these products over all cells.
Claim 3.5. For every fixed graph G and cut C, the expectation over the independent bucket hashes satisfies
Proof. Consider a positive edge and a negative edge . We have , , , and . Hence and . By pairwise independence of each hash function and independence between and ,
The sum equals
Linearity of expectation therefore gives the equality. The inequality follows from
We can now prove the guarantee for one repetition. Let . If , every combined vector is zero and the algorithm returns zero. Assume henceforth that , and define .
Fix . The sketch and sampler randomness is independent across different cells, so the cell estimators are independent. By Claim 3.4 and its proof,
and
So we have
Chebyshev's inequality therefore gives
where the final inequality uses , for which .
The analysis above treats the -samplers as exact and works with the ideal Cauchy estimators. By choosing the failure probabilities in these primitives sufficiently small, the probability that any of these assumptions fails in one repetition is at most . Consequently, one repetition fails with probability at most
Thus, every repetition succeeds with probability at least 3/4.
Proof of Theorem 2. Run independent repetitions of Algorithm 1 and return the median estimate. The analysis above shows that each repetition returns a -approximation with probability at least 3/4, so Proposition 2.9 shows that the median fails with probability at most . The space bound follows from Claim 3.1.
4 -Norm k-Partitioning
The proof follows the same general strategy as our reduction from for-each cut sparsification to minimum cut. We first use an independent constant-accuracy for-all sparsifier to identify a polynomial-size family of candidate k-partitions containing an optimum solution. For a k-partition , define
for , and
Thus, the objective depends only on the values of the ordinary cuts , so both the for-all sparsifier and our for-each sketch can be used to estimate it through ordinary cut queries. The key observation is that an optimum -norm -partition is a constant-factor approximate minimum -cut. The counting argument of Chekuri, Quanrud, and Xu [CQX19] therefore implies that, for fixed , there are only polynomially many candidates. We can query our for-each sketch on the parts of every candidate with sufficiently small failure probability and take a union bound over all queries. Selecting the candidate with minimum estimated -norm then gives a -approximate minimum -norm -partition, while the total space remains .
Corollary 4.1. Fix a constant integer and let . For every , there is a randomized one-pass streaming algorithm that, given a weighted, undirected graph under general turnstile updates whose final edge weights are nonnegative, uses bits of space and, with high probability, outputs a partition of into nonempty parts satisfying
where
The update time is where is the update time of a constant-approximation for-all cut sparsifier.
Proof. Set . Independently maintain a for-all cut sparsifier using Proposition 2.2 and a for-each cut sketch for using Theorem 2 with accuracy parameter and a sufficiently small inverse-polynomial failure probability.
Let denote the ordinary minimum -cut value, and let be a minimum -norm -partition of . We first show that is a constant-factor approximate minimum -cut. For every -partition ,
since every edge crossing the partition is counted once from each of its two endpoint parts.
Let be a minimum k-cut of . For , Hölder's inequality gives
Since minimizes ,
Moreover, every part of has , since every edge in its boundary crosses the partition. Hence
and therefore
For , the same conclusion follows from
Thus, for every , an optimum -norm -partition is a -approximate minimum -cut.
On the event that H preserves every cut, it also preserves the value of every k-cut:
simultaneously for every k-partition P. In particular,
If , output any -partition attaining this value. The preceding inequalities imply that , and hence . Assume henceforth that . Define
Since
we have . Conversely, every satisfies
Thus, every partition in is a -approximate minimum -cut of . The counting argument of Chekuri, Quanrud, and Xu [CQX19] implies that, for fixed and , the number of -approximate minimum -cut partitions is . Since is a constant for fixed , it follows that for some constant depending only on .
For each , query the for-each sketch on . For , define
and for define . The for-all cut sparsifier is independent of the for-each sketch, so conditioned on , the family of queried cuts is fixed independently of the for-each sketch's randomness. Configure each cut query to fail with probability at most , where is a sufficiently large constant. Since there are at most queries, a union bound implies that, with high probability,
simultaneously for every part of every . Consequently,
simultaneously for every and every .
Let minimize over . Since ,
where the last inequality follows from and .
The constant-accuracy for-all sparsifier uses bits of space. Moreover,
so Theorem 2 uses bits of space for the required per-query failure probability.
Since is constant, the failure probability satisfies . Thus, by Theorem 2, the for-each cut sketch has poly update time. Since each update is processed by both sketches, the total update time is , where is the update time of the constant-accuracy for-all cut sparsifier.
Remark 4.2. The case p = 1 recovers minimum k-cut: for every partition P,
Thus, minimizing the objective gives exactly the same partition as minimum k-cut, and dividing the objective value by two gives the ordinary k-cut value.
The same computation also yields an estimate of the optimum -norm value. On the high-probability event above,
satisfies
This also shows that our space bound for estimating the optimum value is optimal up to polylogarithmic factors. Indeed, the lower bound for estimating ordinary minimum cut [DGL ] transfers to minimum -norm -partitioning for every fixed and . Given a graph , adjoin isolated vertices. Then, for ,
while
Thus, a -space algorithm for estimating the optimum -norm -partitioning value would imply a -space algorithm for estimating ordinary minimum cut.
5 Two-cluster correlation clustering
We now apply our for-each cut sketch to evaluating weighted two-cluster correlation clusterings. For every pair , let and denote the nonnegative costs of placing and in different clusters and in the same cluster, respectively. A two-clustering can be represented by labels for each vertex , with disagreement cost
We impose no probability constraints on the positive and negative weights. The key observation is that this disagreement cost can be expressed as the weight of a single cut in an auxiliary graph on two copies of the vertex set. Applying our for-each cut sketch to this graph then gives the desired space bound under general turnstile updates.
Corollary 5.1. For every , there is a randomized one-pass streaming algorithm that, given general turnstile updates to the positive and negative constraint weights of a weighted correlation-clustering instance on vertices whose final weights are nonnegative, uses bits of space and, with high probability, estimates the disagreement cost of any fixed two-clustering within a factor. The update time is poly log .
Proof. Construct an auxiliary graph on two copies of every vertex . Fix an arbitrary ordering of the vertices. For every pair with , place an edge of weight for its positive constraint and an edge of weight for its negative constraint.
Each update to or corresponds to an update of the same magnitude to the associated edge of H. Thus, we can maintain a for-each cut sketch of H directly under general turnstile updates, without explicitly storing H.
Consider a two-clustering and let indicate the cluster containing . Define the cut
The edge crosses exactly when , while the edge crosses exactly when . Hence
which is exactly the disagreement cost of the clustering.
Thus, evaluating a fixed two-clustering reduces to a single cut query in a graph on 2n vertices. Since the clustering is fixed independently of the sketch randomness, so is the corresponding cut . Applying Theorem 2 to gives a estimate using bits of space and polylogarithmic update time.
Remark 5.2. Our for-each cut sketch also applies to evaluating clusterings with arbitrarily many clusters when the negative constraints are sparse. Suppose has at most s nonzero edges. Maintain an -space for each cut sketch of and an -space turnstile sparse-recovery sketch of . For any fixed clustering , its disagreement cost is
The second term is recovered exactly, while the first is estimated using at most cut queries. A union bound and nonnegativity of both terms give a -approximation using bits of space under general turnstile updates. This improves the -dependence of the -space baseline obtained by combining a for-all cut sparsifier with exact storage of negative edges, as in [ACG21].
6 Balanced directed graphs
We now extend our for-each cut sketch to balanced directed graphs. For , let , where denotes the weight of the directed edge , taken to be zero if the edge is absent. A directed graph is -balanced if for every nontrivial cut . Unlike in the undirected setting, our goal is to estimate the weight of edges leaving the queried cut, rather than the total weight of edges crossing it. We adapt the construction of our for-each cut sketch (Theorem 2) to distinguish outgoing from incoming edges and exploit the balance condition to obtain an -space for each cut sketch under general turnstile updates.
Theorem 3. For every and , there is a randomized one-pass streaming algorithm that, given a weighted directed graph under general turnstile updates (under the bounded-integer stream assumptions of Section 2.1) whose final edge weights are nonnegative and whose final graph is -balanced, maintains a for-each cut sketch using bits of space and poly log n worst-case update time. For every fixed nontrivial chosen independently of the sketch randomness, the sketch returns an estimate such that
with high probability.
Proof. We adapt the construction of Theorem 2. Set . If , we store the entire directed graph explicitly using bits. Henceforth assume .
As for Theorem 2, create left and right copies of the vertex set, but now represent each directed edge by , without reordering its endpoints. We remove the restriction from the counters and sketches of Section 3, treating each ordered pair as a distinct coordinate. We maintain the same vertex-bucket counters, -norm estimator blocks, and -samplers, using independent bucket hashes .
Fix a query cut and set . For each directed edge , define . Thus, for edges leaving , for edges entering , and otherwise. For each cell , let and be the total weights of edges with signs 1 and -1, respectively, and define
Exactly as in Theorem 2, the counters recover exactly, while the combined sketches estimate .
Let be the ideal cell estimator from Section 3. We estimate the outgoing weight in cell c by
Since , Claim 3.4 and (2) give
where . These statements are conditional on the bucket hashes.
Write
and let . The cell estimators are conditionally independent, and . Therefore,
The collision argument of Claim 3.5 applies unchanged: an outgoing edge and an incoming edge have distinct left endpoints and distinct right endpoints, so they occupy the same cell with probability . Consequently,
By -balance, applied to the complementary cut, . Hence
If , balance also implies , and the estimate is zero. Otherwise, Chebyshev's inequality (Proposition 2.8) and the choice of b give
Finally, we replace the ideal primitives by their finite-space implementations, as in Theorem 2. Choose the primitive error parameters sufficiently small that, except with inverse-polynomial probability, all sampler outputs agree with their ideal counterparts and every norm estimate has additive error at most , where . This is possible with polylogarithmic space per primitive, since implies and are polynomially bounded in . The resulting total error is at most
Thus, one repetition succeeds with constant probability, and taking the median of independent repetitions gives high probability.
Each repetition maintains vertex-bucket structures, and each update modifies only a constant number of them. The total space is bits and the update time is poly log n.
AI disclosure
ChatGPT 5.6 Sol was used in the preparation of this manuscript. It was used to a limited extent for rewording, presentation, and figure design. AI assistance also contributed to the development of part of the technical result. In particular, while discussing several candidate hard instances and attempting to find counterexamples to them, the authors, in interaction with Sol, identified the bucketing idea underlying the algorithm. The subsequent development of the algorithm and its analysis was carried out by the authors. In addition, the authors brainstormed with various Gemini models. Part of the results of this brainstorming was the identification of the -norm k-partitioning corollary. The other two extensions were identified and written by Sol. The authors assume responsibility for all content.
References
[ACG 21] Kook Jin Ahn, Graham Cormode, Sudipto Guha, Andrew McGregor, and Anthony Wirth. Correlation clustering in data streams. Algorithmica, 83(7):1980–2017, 2021. 4, 24
[ACK 16] Alexandr Andoni, Jiecao Chen, Robert Krauthgamer, Bo Qin, David P. Woodruff, and Qin Zhang. On sketching quadratic forms. In Madhu Sudan, editor, Proceedings of the 2016 ACM Conference on Innovations in Theoretical Computer Science (ITCS), pages 311–319, 2016. 1, 2, 3
[ACK19] Sepehr Assadi, Yu Chen, and Sanjeev Khanna. Sublinear algorithms for vertex coloring. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2019, San Diego, California, USA, January 6-9, 2019, pages 767–786, 2019. 2
[AD21] Sepehr Assadi and Aditi Dudeja. A Simple Semi-Streaming Algorithm for Global Minimum Cuts, pages 172–180. Society for Industrial and Applied Mathematics, 01 2021. 10
[AG09] Kook Jin Ahn and Sudipto Guha. Graph sparsification in the semi-streaming model. In International Colloquium on Automata, Languages, and Programming, pages 328–338. Springer, 2009. 1, 2
[AGM12a] Kook Jin Ahn, Sudipto Guha, and Andrew McGregor. Analyzing graph structure via linear measurements. In Proceedings of the Twenty-Third Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2012, Kyoto, Japan, January 17-19, 2012, pages 459–467, 2012. 2, 10
[AGM12b] Kook Jin Ahn, Sudipto Guha, and Andrew McGregor. Graph sketches: sparsification, spanners, and subgraphs. In Proceedings of the 31st ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, PODS 2012, Scottsdale, AZ, USA, May 20-24, 2012, PODS '12, pages 5–14, New York, NY, USA, 2012. Association for Computing Machinery. 1, 2
[AKLY16] Sepehr Assadi, Sanjeev Khanna, Yang Li, and Grigory Yaroslavtsev. Maximum matchings in dynamic graph streams and the simultaneous communication model. In Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2016, Arlington, VA, USA, January 10-12, 2016, pages 1345–1364, 2016. 2
[AKP25] Sepehr Assadi, Sanjeev Khanna, and Aaron Putterman. Correlation clustering and (de)sparsification: Graph sketches can match classical algorithms. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC '25, page 417–428, New York, NY, USA, 2025. Association for Computing Machinery. 2
[Alo97] Noga Alon. On the edge-expansion of graphs. Combinatorics, Probability and Computing, 6(2):145–152, 1997. 1
[AMS96] Noga Alon, Yossi Matias, and Mario Szegedy. The space complexity of approximating the frequency moments. In Proceedings of the Twenty-Eighth Annual ACM Symposium on Theory of Computing, STOC '96, page 20–29, New York, NY, USA, 1996. Association for Computing Machinery. 1
[AS22] Sepehr Assadi and Vihan Shah. An asymptotically optimal algorithm for maximum matching in dynamic streams. In Mark Braverman, editor, 13th Innovations in Theoretical Computer Science Conference, ITCS 2022, January 31 - February 3, 2022, Berkeley, CA, USA, volume 215 of LIPIcs, pages 9:1–9:23, Dagstuhl, Germany, 2022. Schloss Dagstuhl - Leibniz-Zentrum für Informatik. 2
[AS23] Sepehr Assadi and Vihan Shah. Tight bounds for vertex connectivity in dynamic streams. In Symposium on Simplicity in Algorithms (SOSA), pages 213–227. SIAM, 2023. 2, 10
[ASW23] Sepehr Assadi, Vihan Shah, and Chen Wang. Streaming algorithms and lower bounds for estimating correlation clustering cost. Advances in Neural Information Processing Systems, 36:75201–75213, 2023. 2
[BK96] András A. Benczúr and David R. Karger. Approximating s-t minimum cuts in time. In Gary L. Miller, editor, Proceedings of the Twenty-Eighth Annual ACM Symposium on the Theory of Computing, Philadelphia, Pennsylvania, USA, May 22-24, 1996, pages 47–55. ACM, 1996. 1
[BSS12] Joshua D. Batson, Daniel A. Spielman, and Nikhil Srivastava. Twice-Ramanujan sparsifiers. SIAM J. Comput., 41(6):1704–1721, 2012. 1
[CCPS21] Ruoxu Cen, Yu Cheng, Debmalya Panigrahi, and Kevin Sun. Sparsification of directed graphs via cut balance. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, Glasgow, Scotland (Virtual Conference), July 12-16, 2021, volume 198 of LIPIcs, pages 45:1–45:21. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021. 4
[CGP 18] Timothy Chu, Yu Gao, Richard Peng, Sushant Sachdeva, Saurabh Sawlani, and Junxing Wang. Graph sparsification, spectral sketches, and faster resistance computation, via short cycle decompositions. In Mikkel Thorup, editor, 59th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2018, Paris, France, October 7-9, 2018, pages 361–372. IEEE Computer Society, 2018. 2, 3
[CKL 22a] Li Chen, Rasmus Kyng, Yang P Liu, Richard Peng, Maximilian Probst Gutenberg, and Sushant Sachdeva. Maximum flow and minimum-cost flow in almost-linear time. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 612–623. IEEE, 2022. 1
[CKL22b] Yu Chen, Sanjeev Khanna, and Huan Li. On weighted graph sparsification by linear sketching. In 63rd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2022, Denver, CO, USA, October 31 - November 3, 2022, pages 474–485. IEEE, 2022. 1, 3, 11
[CKST19] Charles Carlson, Alexandra Kolla, Nikhil Srivastava, and Luca Trevisan. Optimal lower bounds for sketching graph cuts. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2565–2569. SIAM, 2019. 1
[CKT93] Joseph Cheriyan, Ming-Yang Kao, and Ramakrishna Thurimella. Scan-first search and sparse certificates: an improved parallel algorithm for k-vertex connectivity. SIAM Journal on Computing, 22(1):157–174, 1993. 2
[CLL 24] Yu Cheng, Max Li, Honghao Lin, Zi-Yi Tai, David P. Woodruff, and Jason Zhang. Tight lower bounds for directed cut sparsification and distributed min-cut. Proc. ACM Manag. Data, 2(2):85, 2024. 4
[CQX19] Chandra Chekuri, Kent Quanrud, and Chao Xu. LP relaxation and tree packing for minimum k-cuts. In Jeremy T. Fineman and Michael Mitzenmacher, editors, 2nd Symposium on Simplicity in Algorithms, SOSA 2019, San Diego, CA, USA, January 8-9, 2019, volume 69 of OASIcs, pages 7:1–7:18. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2019. 3, 20, 22
[CW21] Karthekeyan Chandrasekaran and Weihang Wang. Fixed parameter approximation scheme for min-max k-cut. In Mohit Singh and David P. Williamson, editors, Integer Programming and Combinatorial Optimization - 22nd International Conference, IPCO 2021, Atlanta, GA, USA, May 19-21, 2021, Proceedings, volume 12707 of Lecture Notes in Computer Science, pages 354–367. Springer, 2021. 3
[CWXZ25] Vincent Cohen-Addad, David P. Woodruff, Shenghao Xie, and Samson Zhou. Nearly space-optimal graph and hypergraph sparsification in insertion-only data streams. CoRR, abs/2510.18180, 2025. 10
[DGL 25] Matthew Ding, Alexandro Garces, Jason Li, Honghao Lin, Jelani Nelson, Vihan Shah, and David P. Woodruff. Space complexity of minimum cut problems in single-pass streams. In Raghu Meka, editor, 16th Innovations in Theoretical Computer Science Conference, ITCS 2025, Columbia University, New York, NY, USA, January 7-10, 2025, volume 325 of LIPIcs, pages 43:1–43:23. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025. 2, 3, 5, 10, 14, 23
[DK20] Jacques Dark and Christian Konrad. Optimal lower bounds for matching and vertex cover in dynamic graph streams. In Shubhangi Saraf, editor, 35th Computational Complexity Conference, CCC 2020, July 28-31, 2020, Saarbrücken, Germany (Virtual Conference), volume 169 of LIPIcs, pages 30:1–30:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2020. 2
[DP09] Devdatt P Dubhashi and Alessandro Panconesi. Concentration of measure for the analysis of randomized algorithms. Cambridge University Press, 2009. 12, 13
[EHW16] Hossein Esfandiari, MohammadTaghi Hajiaghayi, and David P. Woodruff. Brief announcement: Applications of uniform sampling: Densest subgraph and beyond. In Proceedings of the 28th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA '16, page 397–399, New York, NY, USA, 2016. Association for Computing Machinery. 2
[GH94] Olivier Goldschmidt and Dorit S. Hochbaum. A polynomial algorithm for the k-cut problem for fixed k. Math. Oper. Res., 19(1):24–37, 1994. 3
[GHRS25] Gramoz Goranci, Monika Henzinger, Harald Räcke, and A. R. Sricharan. Incremental approximate maximum flow via residual graph sparsification. In Keren Censor-Hillel, Fabrizio Grandoni, Joël Ouaknine, and Gabriele Puppis, editors, 52nd International Colloquium on Automata, Languages, and Programming, ICALP 2025, Aarhus, Denmark, July 8-11, 2025, volume 334 of LIPIcs, pages 91:1–91:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025. 4
[GMT15] Sudipto Guha, Andrew McGregor, and David Tench. Vertex and hyperedge connectivity in dynamic graph streams. In Proceedings of the 34th ACM Symposium on Principles of Database Systems, PODS 2015, Melbourne, Victoria, Australia, May 31 - June 4, 2015, pages 241–247, 2015. 10
[GMW20] Pawel Gawrychowski, Shay Mozes, and Oren Weimann. Minimum cut in o(m log² n) time. In Artur Czumaj, Anuj Dawar, and Emanuela Merelli, editors, 47th International Colloquium on Automata, Languages, and Programming, ICALP 2020, Saarbrücken, Germany (Virtual Conference), July 8-11, 2020, volume 168 of LIPIcs, pages 57:1–57:15. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2020. 1
[GS24] Prantar Ghosh and Vihan Shah. New Lower Bounds in Merlin-Arthur Communication and Graph Streaming Verification. In Venkatesan Guruswami, editor, 15th Innovations in Theoretical Computer Science Conference (ITCS 2024), volume 287 of Leibniz International Proceedings in Informatics (LIPIcs), pages 53:1–53:22, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. 10
[HJJ 14] Julien M. Hendrickx, Karl Henrik Johansson, Raphaël M. Jungers, Henrik Sandberg, and Kin Cheong Sou. Efficient computations of a security index for false data attacks in power networks. IEEE Transactions on Automatic Control, 59(12):3194–3208, 2014. 1
[HLRW24] Monika Henzinger, Jason Li, Satish Rao, and Di Wang. Deterministic near-linear time minimum cut in weighted graphs. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3089–3139. SIAM, 2024. 1
[HRW20] Monika Henzinger, Satish Rao, and Di Wang. Local flow partitioning for faster edge connectivity. SIAM Journal on Computing, 49(1):1–36, 2020. 1
[Ind06] Piotr Indyk. Stable distributions, pseudorandom generators, embeddings, and data stream computation. J. ACM, 53(3):307–323, 2006. 12, 33, 34
[IT18] Motoki Ikeda and Shin-ichi Tanigawa. Cut sparsifiers for balanced digraphs. In Leah Epstein and Thomas Erlebach, editors, Approximation and Online Algorithms - 16th International Workshop, WAOA 2018, Helsinki, Finland, August 23-24, 2018, Revised Selected Papers, volume 11312 of Lecture Notes in Computer Science, pages 277–294. Springer, 2018. 4
[JLY26] Cheng Jiang, Yinchen Liu, and Huacheng Yu. Turnstile streaming algorithms might (still) as well be linear sketches, for polynomial-length streams. arXiv preprint arXiv:2604.22052, 2026. 10
[JS18] Arun Jambulapati and Aaron Sidford. Efficient spectral sketches for the laplacian and its pseudoinverse. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2487–2503. SIAM, 2018. 2, 3
[Kar93] David R. Karger. Global min-cuts in rnc, and other ramifications of a simple min-cut algorithm. In Proceedings of the Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '93, page 21–30, USA, 1993. Society for Industrial and Applied Mathematics. 1, 13
[Kar00] David R. Karger. Minimum cuts in near-linear time. J. ACM, 47(1):46–76, 2000. 1
[KL13] Jonathan A Kelner and Alex Levin. Spectral sparsification in the semi-streaming setting. Theory of Computing Systems, 53(2):243–262, 2013. 2
[KLM 17] Michael Kapralov, Yin Tat Lee, CN Musco, Christopher Paul Musco, and Aaron Sidford. Single pass spectral sparsification in dynamic streams. SIAM Journal on Computing, 46(1):456–477, 2017. 2
[KNW10] Daniel M. Kane, Jelani Nelson, and David P. Woodruff. On the exact space complexity of sketching and streaming small norms. In Moses Charikar, editor, Proceedings of the Twenty-First Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2010, Austin, Texas, USA, January 17-19, 2010, pages 1161–1178. SIAM, 2010. 5
[KS96] David R. Karger and Clifford Stein. A new approach to the minimum cut problem. J. ACM, 43(4):601–640, 1996. 1
[KT18] Ken-ichi Kawarabayashi and Mikkel Thorup. Deterministic edge connectivity in near-linear time. Journal of the ACM (JACM), 66(1):1–50, 2018. 1
[LHC07] Ping Li, Trevor Hastie, and Kenneth Ward Church. Nonlinear estimators and tail bounds for dimension reduction in using cauchy random projections. In Nader H. Bshouty and Claudio Gentile, editors, Learning Theory, 20th Annual Conference on Learning Theory, COLT 2007, San Diego, CA, USA, June 13-15, 2007, Proceedings, volume 4539 of Lecture Notes in Computer Science, pages 514–529. Springer, 2007. 12
[Li19] Jason Li. Faster minimum k-cut of a simple graph. In David Zuckerman, editor, 60th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2019, Baltimore, Maryland, USA, November 9-12, 2019, pages 1056–1077. IEEE Computer Society, 2019. 3
[Li21] Jason Li. Deterministic mincut in almost-linear time. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 384–395, 2021. 1
[LNW14] Yi Li, Huy L. Nguyen, and David P. Woodruff. Turnstile streaming algorithms might as well be linear sketches. In Symposium on Theory of Computing, STOC 2014, New York, NY, USA, May 31 - June 03, 2014, pages 174–183, 2014. 10
[LP20] Jason Li and Debmalya Panigrahi. Deterministic min-cut in poly-logarithmic max-flows. In 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS), pages 85–92. IEEE, 2020. 1
[McG14] Andrew McGregor. Graph stream algorithms: a survey. SIGMOD Rec., 43(1):9–20, may 2014. 1
[MN20] Sagnik Mukhopadhyay and Danupon Nanongkai. Weighted min-cut: sequential, cut-query, and streaming algorithms. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2020, Chicago, IL, USA, June 22-26, 2020, pages 496–509. ACM, 2020. 10
[MR95] Rajeev Motwani and Prabhakar Raghavan. Randomized Algorithms. Cambridge University Press, 1995. 13
[MTVV15] Andrew McGregor, David Tench, Sofya Vorotnikova, and Hoa T. Vu. Densest subgraph in dynamic graph streams. In Mathematical Foundations of Computer Science 2015 - 40th International Symposium, MFCS 2015, Milan, Italy, August 24-28, 2015, Proceedings, Part II, pages 472–482, 2015. 2
[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–6):583–596, June 1992. 2
[NS22] Kheeran K. Naidu and Vihan Shah. Space optimal vertex cover in dynamic streams. In Amit Chakrabarti and Chaitanya Swamy, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, AP-PROX/RANDOM 2022, September 19-21, 2022, University of Illinois, Urbana-Champaign, USA (Virtual Conference), volume 245 of LIPIcs, pages 53:1–53:15. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2022. 2
[NY19] Jelani Nelson and Huacheng Yu. Optimal lower bounds for distributed and streaming spanning forest computation. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2019, San Diego, California, USA, January 6-9, 2019, pages 1844–1860, 2019. 10
[RSW18] Aviad Rubinstein, Tselil Schramm, and S. Matthew Weinberg. Computing exact minimum cuts without knowing the graph. In Anna R. Karlin, editor, 9th Innovations in Theoretical Computer Science Conference, ITCS 2018, January 11-14, 2018, Cambridge, MA, USA, volume 94 of Leibniz International Proceedings in Informatics, LIPIcs, pages 39:1–39:16, Germany, January 2018. Schloss Dagstuhl-Leibniz-Zentrum für Informatik GmbH, Dagstuhl Publishing. 9
[SK23] Satoshi Sugiura and Fumitaka Kurauchi. Isolation vulnerability analysis in road network: Edge connectivity and critical link sets. Transportation Research Part D: Transport and Environment, 119:103768, 2023. 1
[SS11] Daniel A. Spielman and Nikhil Srivastava. Graph sparsification by effective resistances. SIAM J. Comput., 40(6):1913–1926, 2011. 1
[SSS95] Jeanette P. Schmidt, Alan Siegel, and Aravind Srinivasan. Chernoff-hoeffding bounds for applications with limited independence. SIAM J. Discret. Math., 8(2):223–250, 1995. 13
[ST04] Daniel A. Spielman and Shang-Hua Teng. Nearly-linear time algorithms for graph partitioning, graph sparsification, and solving linear systems. In László Babai, editor, Proceedings of the 36th Annual ACM Symposium on Theory of Computing, Chicago, IL, USA, June 13-16, 2004, pages 81–90. ACM, 2004. 1
[ST11] Daniel A. Spielman and Shang-Hua Teng. Spectral sparsification of graphs. SIAM J. Comput., 40(4):981–1025, 2011. 1
[SWZ25] William Swartworth, David P. Woodruff, and Samson Zhou. Perfect lp sampling with polylogarithmic update time. In 66th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2025, Sydney, Australia, December 14-17, 2025, pages 1936–1960. IEEE, 2025. 11
[SY26] Pachara Sawettamalya and Huacheng Yu. A (very) nearly optimal sketch for k-edge connectivity certificates. In 2026 SIAM Symposium on Simplicity in Algorithms (SOSA), pages 229–240, 2026. 10
[Tho08] Mikkel Thorup. Minimum k-way cuts via deterministic greedy tree packing. In Cynthia Dwork, editor, Proceedings of the 40th Annual ACM Symposium on Theory of Computing, Victoria, British Columbia, Canada, May 17-20, 2008, pages 159–166. ACM, 2008. 3
[VDBCK 23] Jan Van Den Brand, Li Chen, Rasmus Kyng, Yang P Liu, Richard Peng, Maximilian Probst Gutenberg, Sushant Sachdeva, and Aaron Sidford. A deterministic almost-linear time algorithm for minimum-cost flow. In 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 503–514. IEEE, 2023. 1
[WDL 20] Xinjue Wang, Ke Deng, Jianxin Li, Jeffery Xu Yu, Christian S Jensen, and Xiaochun Yang. Efficient targeted influence minimization in big social networks. World Wide Web, 23(4):2323–2340, 2020. 1
[Zel11] Mariano Zelke. Intractability of min- and max-cut in streaming graphs. Information Processing Letters, 111(3):145–150, 2011. 1
[Zha26] Yibin Zhao. Fully dynamic spectral and cut sparsifiers for directed graphs. In Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele Puppis, editors, 53rd International Colloquium on Automata, Languages, and Programming, ICALP 2026, Royal Holloway, University of London, Egham, United Kingdom, July 7-10, 2026, volume 374 of LIPIcs, pages 157:1–157:24. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2026. 4
A Omitted proofs from preliminaries
We prove Lemma 2.6 using the following two lemmas.
Lemma A.1. Fix a constant integer , let , and let . There is a finite-precision linear sketch for , such that, for
we have . Each can be represented using bits. Moreover, each can be represented using bits.
Proof. If , then , so the claim is immediate. Henceforth assume .
Let
By the bounded-precision construction of [Ind06], for any we can construct for each such that , using bits. Taking and applying a union bound, with probability at least , simultaneously for all and . On this event,
By Cauchy 1-stability, is a standard Cauchy random variable. Since a standard Cauchy variable satisfies , our choice of and a union bound imply that, with probability at least ,
Hence, with probability at least , both events hold simultaneously, and therefore for every . Set . Using and telescoping the two products, we obtain
This proves the claimed coupling guarantee.
Finally, , so [Ind06] gives the claimed coefficient precision. Thus each maintained measurement can be represented using bits.
Lemma A.2. Consider the finite-precision Cauchy sketch of Lemma A.1. The independent coefficient blocks for can be replaced by pseudorandom coefficient blocks determined by a seed of bits. For every fixed stream, this replacement changes the probability of any event determined by the final sketch state by at most . Moreover, the coefficient block associated with any coordinate can be regenerated from the seed in polylog( ) time, and hence each update can be processed in polylog( ) time.
Proof. Group the random bits used to generate into a single random block . By Lemma A.1, each such block has length , and the measurements can be stored using a polylogarithmic number of bits.
Applying the randomness-reduction argument of [Ind06, Lemma 3] replaces the independent blocks by pseudorandom blocks generated from a seed of bits, while changing the probability of any event determined by the final sketch state by at most . The same block can be regenerated whenever coordinate is updated. By [Ind06], this takes polylog( ) time per update.
Proof of Lemma 2.6. Fix any constant and set . By Lemma A.1, the finite-precision estimator can be coupled with the ideal estimator with additive error at most , except with probability . By Lemma A.2, the pseudorandom and fully independent finite-precision sketch states can be coupled to agree except with probability . Therefore,
The space and update-time bounds follow from the two lemmas and the polynomial bounds on the stream.