Manuscript Offprint
arXiv:2610.22718Improved Pass Complexity for Semi-Streaming Matching in General Graphs via Budgeted Price Approach
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We present a simple deterministic semi-streaming algorithm that computes a -approximate maximum matching in general graphs in passes. This matches the pass complexity of the auction algorithm of Assadi, Liu, and Tarjan [SOSA'21] for bipartite graphs, and answers Open Question 2 of Assadi [SOSA'24 & TheoretiCS'25].
Our approach, which we call the budgeted price approach, is very different from the previous poly(1/ε)-pass semi-streaming algorithms for (1 - ε)-approximation of matching in general graphs and improves their pass complexity. All previous approaches are augmenting-path-based and use passes by Fischer, Mitrović, and Uitto [STOC'22], passes by Mitrović, Mukherjee, Sankowski, and Sheu [ICALP'25], and passes by Izumi, Kitamura, and Yamaguchi ['25].
1 Introduction
In the semi-streaming model for graph problems, formalized by Feigenbaum, Kannan, McGregor, Suri, and Zhang [FKM 05], the edges of an n-vertex graph arrive in an arbitrarily ordered stream, and an algorithm makes a small number of passes over the stream using space. We study the maximum matching problem in this model. The goal is to compute a -approximate maximum matching in as few passes as possible, using space.
The first -approximation semi-streaming algorithm, due to McGregor [McG05], is randomized and uses passes. Tirodkar [Tir18] later gave a deterministic algorithm with the same pass complexity.
For bipartite graphs, Eggert, Kliemann, and Srivastav [EKS09] gave a deterministic algorithm with passes, which was improved to passes by Eggert, Kliemann, Munstermann, and Srivastav [EKMS12]. Ahn and Guha [AG13] obtained passes even for weighted bipartite graphs, and the auction algorithm of Assadi, Liu, and Tarjan [ALT21] achieves passes. Their auction algorithm computes a sequence of maximal matchings in subgraphs of the input graph, and hence can be implemented in the semi-streaming model with passes.
For general graphs, whether poly(1/ε) passes suffice remained open for a long time, until Fischer, Mitrović, and Uitto [FMU22] gave a deterministic semi-streaming algorithm with passes. The pass complexity was subsequently improved to by Mitrović, Mukherjee, Sankowski, and Sheu [MMSS25], and to by Izumi, Kitamura, and Yamaguchi [IKY25].
Assadi [Ass25] posed, as an open question, whether this gap can be closed, i.e., whether passes are achievable for general graphs. We answer this question affirmatively.
Theorem 1. For any , there exists a deterministic semi-streaming algorithm that computes -approximate maximum matching in passes. The algorithm uses words of space.
Research Institute for Mathematical Sciences, Kyoto University. E-mail: ttatsuya@kurims.kyoto-u.ac.jp
Throughout this paper, a word consists of bits.
Our approach, which we call the budgeted price approach, is very different from the previous poly(1/ε)-pass semi-streaming algorithms for the (1-ε)-approximation of matching in general graphs [FMU22, MMSS25, IKY25]. Our algorithm computes a sequence of weighted matchings in subgraphs of the input graph, where the edge weights are carefully chosen at each step. Moreover, a constant-factor approximate maximum weight matching suffices at each step, which can be computed in a single pass [FKM 05, ELMS11, Zel12, CS14, PS18, GW19]. Hence, our algorithm can be implemented in the semi-streaming model with passes.
In the single-pass setting, the greedy algorithm that computes a maximal matching gives a 1/2-approximation, and a line of work has established lower bounds on the achievable approximation ratio [GKK12, Kap13, Kap21, AJX26a]. Whether greedy can be beaten had been one of the most well-known open questions in graph streaming. Very recently, Assadi, Jiang, and Xiang [AJX26b] resolved it by showing that 1/2 is optimal.
Recently, Konrad, Naidu, Walton, and Wang [KNWW26] further simplified the -pass semi-streaming algorithm of Assadi, Liu, and Tarjan [ALT21] and provided a hard instance on which the algorithm requires iterations.
Assadi and Sundaresan [AS23] proved a conditional -pass lower bound, even for -approximating the maximum matching size. As reported in Sundaresan's Ph.D. thesis [Sun26], Assadi, Konrad, Naidu, and Sundaresan established the same lower bound unconditionally for semi-streaming algorithms that output a -approximate matching.
2 Preliminaries
Notation. For and , let , and for an edge , let . We also write .
For and , let .
For , the vector is defined by for . We write if for every , and 0 denotes the all-zero vector.
Throughout, we identify an edge set with the subgraph of , and we write for the maximum size of a matching . In particular, is the maximum size of a matching in . For a matching , denotes the set of vertices covered by .
Tutte-Berge Formula We use the following classical min-max formula for the maximum matching size. Here, we write for the graph obtained from by deleting the vertices in together with the edges incident to them.
Theorem 2 (see e.g. Theorem 24.1 of [Sch03]). For every , there exists a set such that
where S ranges over the vertex sets of the connected components of H - U.
2.1 One-Pass Streaming algorithm for Weighted Matching
We use a one-pass semi-streaming algorithm for constant-factor approximate maximum weight matching. Feigenbaum, Kannan, McGregor, Suri, and Zhang [FKM 05] gave a 6-approximation, and the approximation ratio has since been improved by several subsequent works [ELMS11, Zel12, CS14, PS18, GW19].
Lemma 3 (From Theorem 2 of [FKM 05]). There exists a deterministic semi-streaming algorithm that computes a 6-approximate maximum weighted matching in one pass. The algorithm uses words of space.
3 Budgeted Price Approach
In this section, we present our algorithm and prove Theorem 1. We begin by introducing two notions, prices and budgets, on which both the algorithm and its analysis are built.
Prices. A vector is called a price vector. We call as the price of the vertex . For an edge , we define the residual of under by
and for we write .
Budgets. For a subgraph and a vector , we define
We call the budget of y on H.
The following properties are immediate from the definition.
(a) For every ,
Indeed, for every matching we have , because . The last sum is at most , and it equals for the submatching . Hence, the maximum of over all matchings equals the maximum of .
(b) For each fixed matching , the quantity is a constant plus the sum of some coordinates of , and hence it is convex and nondecreasing in each coordinate of . Since is the maximum of finitely many such quantities, is also convex and nondecreasing in each coordinate. Moreover, whenever , since the maximum is taken over a larger family of matchings.
(c) , and for every .
3.1 Probe Procedure
The core of our algorithm is a procedure PROBE(B, ), which receives a budget and an accuracy parameter . The budget should be thought of as a guess for . It either finds a matching of size more than , or certifies that . Our overall algorithm then performs a binary search for using PROBE as the test (see Section 3.2 for details).
The guarantee of PROBE is formalized in the following proposition.
Proposition 4. Let and . uses passes, and the subgraph stored by always has edges. Moreover, if , then returns a matching of size more than .
The name is reminiscent of the auction algorithm of Assadi, Liu, and Tarjan [ALT21].
Algorithm 1 PROBE(B, )
Input: A budget and an accuracy parameter .
1: .
2: for do
3: if then
4: return a maximum matching of .
5: Compute a price vector with .
6: In one pass, run the one-pass algorithm of Lemma 3 on the edges with weights , and let be the output matching.
7: .
8: return a maximum matching of .
Parameters. We set
Energy and potential. For and , we define the energy of on by
Let be the set of price vectors whose budget on is at most , and define the potential of by
The procedure maintains a subgraph , which is initially empty. In each iteration, it first checks whether already contains a matching of size more than , and if so, returns a maximum matching of (line 3). Otherwise, it computes a price vector with (line 5). This step uses only the stored subgraph and does not access the stream, and it is implemented by exhaustive search on with words of working space (Lemma 10 in Section 3.3). It then makes one pass over the stream and computes, among the edges outside , a constant-factor approximate maximum weight matching with respect to the weights (line 6). The matching is added to , and the procedure proceeds to the next iteration. After iterations, it returns a maximum matching of . See Algorithm 1 for the pseudocode of PROBE( ).
To prove Proposition 4, we first establish Lemmas 5 and 6, and then combine them to complete the proof.
Lemma 5. Let , , and . If , then there exists with . In particular, .
Proof. By Theorem 2, there exists such that , where denotes the family of the vertex sets of the connected components of . We call a component small if is odd and , and let be the family of small components. We define by
and we write
We will show that , and that both and are at most . This proves the lemma: the former bound on gives , i.e., , and the latter gives , which also implies by the definition of .
We first show that . Partition into the family of the even components, the family of the small components, and the family of the remaining components, which are odd with . Since if is even and if is odd, we have
and hence . Every satisfies because , and hence . Summing this over , we obtain
Therefore, .
Next, we compute the residual of each edge under the price vector defined above. These values are used to upper-bound and . Every edge either has an endpoint in or lies inside a component in . In the former case because for , and inside a component that is not small . Thus, if lies inside a small component, where , and otherwise. In particular, for every , is the number of edges of inside small components.
We now show that , which implies since . By property (a) of budgets, , where the maximum is taken over all matchings . Fix a matching . Here, is the number of edges of inside small components, that is,
Since the edges of inside are pairwise disjoint and is odd, there are at most of them, and hence . Therefore, .
Finally, we show that , where . For the first term, since implies for every , we have . For the second term, recall that is the number of edges of inside small components, i.e.,
Here, the number of edges inside is at most . Moreover, every small component satisfies , and hence since . Thus,
Therefore, , which completes the proof.
Lemma 6. Let , , and . Let be a price vector with , and let be a matching such that . Then, we have
Proof. We first show the following claim.
Claim 7. For every , we have .
Proof of Claim 7. Let . Then, , because is convex. Since each is convex, the function is convex, and we have . Thus,
where the third inequality holds by the convexity of for each . Rearranging the terms completes the proof of the claim.
Let be a price vector attaining . Since , we have , and hence
Since , we have , and hence Claim 7 applies to , which gives
Since , it remains to show that
Write for . Since is a matching, each vertex of belongs to exactly one edge of , and hence
Therefore, it suffices to show that every edge satisfies
If , this holds because the left-hand side is nonnegative. Otherwise, , and . Hence,
where the last inequality holds because for every real . This completes the proof.
We are now ready to prove Proposition 4.
Proof of Proposition 4. Suppose that . Suppose, for a contradiction, that returns a matching of size at most . The returned matching is a maximum matching of the final subgraph , and only grows during the execution. Hence, holds at every moment of the execution. For , let be the subgraph at the beginning of the -th iteration, so that and , where and denote the price vector and the matching in the -th iteration. By Lemma 5, we have and for every .
Now, we show that the potential grows by at least in every iteration. To lower-bound , we first show the following claim.
Claim 8. For every , every , and every matching , we have .
Proof of Claim 8. Apply the definition of to the matching of , which gives . Since is a matching, the endpoints of the edges of are distinct and are not covered by , and hence because . Therefore,
where the last inequality holds because .
Fix and let be a maximum matching of . Since , we have , and Claim 8 yields
Since is a matching consisting of edges in , and the matching found in Line 6 is a 6-approximate maximum weight matching of with respect to the weights by Lemma 3, we have
where the last equality holds because . We apply Lemma 6 to , , and . Now, holds as shown above. Using and , we obtain
Summing the above inequality over and using , we obtain
where the second inequality holds because , and the last inequality holds because . This contradicts , which completes the proof.
3.2 Whole Algorithm
In this section, we prove Theorem 1. The overall algorithm performs a binary search for , using PROBE (Algorithm 1) as the test. See Algorithm 2 for the pseudocode.
Theorem 1. For any , there exists a deterministic semi-streaming algorithm that computes -approximate maximum matching in passes. The algorithm uses words of space.
For , this means the subgraph H at the end of the T-th iteration.
Throughout this paper, a word consists of bits.
Algorithm 2 Whole algorithm
1: In one pass, compute a maximal matching of greedily, and let .
2: , , and .
3: while do
4: .
5: and .
6: , and discard the subgraph stored by PROBE.
7: if then
8: and .
9: else
10: .
11: return .
Proof of Theorem 1. We prove that Algorithm 2 returns a matching of size at least in passes using words of space. We first prove the following claim.
Claim 9. Throughout the execution of Algorithm 2, is a matching of G with , and . Moreover, each iteration of the while loop replaces the width by a width at most .
Proof of Claim 9. We proceed by induction on the number of iterations. Initially, , and holds because a maximal matching has at least half the size of a maximum matching. Consider an iteration that starts with and satisfying , and let . Let and denote the values of and after the iteration, respectively. Then, , and hence . Since , we have
Suppose that holds in the iteration. Then, the algorithm updates to and to , so and . Since is a matching of , we have . Moreover, , and hence the new width is .
Suppose instead that holds in the iteration. Then, by Proposition 4, we have , i.e., . The algorithm updates to , so and , and we have . Moreover, since for , we have , and hence the new width is .
In both cases, the new interval is contained in the old one and still contains , and is maintained. This completes the induction and the proof of the claim.
Approximation. The while loop terminates because strictly decreases in every iteration. When it terminates, , and hence, by Claim 9, the output satisfies .
Passes. Let be the widths at the beginnings of the iterations of the while loop. By Claim 9, we have for every , and the condition of the while loop gives , where we note that . By Proposition 4, the -th iteration makes passes, where . Therefore, the total number of passes is
Space. Consider the -th iteration. Since , we have , and hence, by Proposition 4, the subgraph stored by PROBE has edges. Note that it is discarded before the next iteration. Besides the stored subgraph, the algorithm keeps the matchings , , and , the price vector , which take words in total. Therefore, the algorithm uses words of space, which completes the proof.
3.3 Computing Prices by Exhaustive Search
It remains to show how Line 5 of PROBE is implemented in small space. We implement these steps by exhaustive search. Here, all computation is done on the stored subgraph H without accessing the stream.
Lemma 10. Let with . Then, a price vector with can be computed from using words of working space.
Proof. Let and , and let . The algorithm enumerates all points , and among those with , returns a point minimizing .
Let be a price vector attaining , and define by for . Then, and , and hence because is nondecreasing in each coordinate (property (b)). Thus, satisfies the constraint, so exists, and because and . By the minimality of , we have . Moreover, since , and implies for every edge . Therefore,
where the last inequality holds by the choice of W.
4 Further Results
Our approach extends in several directions. We only state the results here and defer the details to a forthcoming manuscript.
• Weighted matching. Our approach yields a semi-streaming algorithm that computes a -approximate maximum weight matching in passes.
• Massively Parallel Computation. Our approach also works in the Massively Parallel Computation (MPC) model.
• Running time. The running time of the algorithm in this paper is exponential in n and because of the exhaustive search in Section 3.3. It can be made polynomial in n and while keeping the same pass and space bounds.
Acknowledgment A manuscript containing the results in Section 4, together with their full proofs, will be made publicly available shortly.
Declaration of Generative AI Use The main ideas behind our budgeted price approach and its analysis were developed largely with the assistance of GPT-6 Astra (OpenAI). We also used GPT-6 Astra (OpenAI) and Claude Fable 5.1 (Anthropic) to assist in drafting the manuscript and improving its language and presentation. We carefully verified and revised the proofs and take full responsibility for the paper.
References
[AG11] Kook Jin Ahn and Sudipto Guha. Laminar families and metric embeddings: Non-bipartite maximum matching problem in the semi-streaming model. arXiv preprint arXiv:1104.4058, 2011.
[AG13] Kook Jin Ahn and Sudipto Guha. Linear programming in the semi-streaming model with application to the maximum matching problem. Information and Computation, 222:59–79, 2013. Announced at ICALP 2011.
[AG18] Kook Jin Ahn and Sudipto Guha. Access to data and number of iterations: Dual primal algorithms for maximum matching under resource constraints. ACM Transactions on Parallel Computing (TOPC), 4(4):1–40, 2018. Announced at SPAA 2015.
[AJJ 22] Sepehr Assadi, Arun Jambulapati, Yujia Jin, Aaron Sidford, and Kevin Tian. Semi-streaming bipartite matching in fewer passes and optimal space. In Proceedings of the 33rd Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2022), pages 627–669. SIAM, 2022.
[AJX26a] Sepehr Assadi, Max Jiang, and Mars Xiang. Semi-streaming matching in a single pass: A new framework for lower bounds via blueprints. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing (STOC 2026), pages 979–990, 2026.
[AJX26b] Sepehr Assadi, Max Jiang, and Mars Xiang. Semi-streaming matching in a single pass ii: Greedy is optimal. arXiv preprint arXiv:2607.14656, 2026.
[ALT21] Sepehr Assadi, S Cliff Liu, and Robert E Tarjan. An auction algorithm for bipartite matching in streaming and massively parallel computation models. In Proceedings of the 4th Symposium on Simplicity in Algorithms (SOSA 2021), pages 165–171. SIAM, 2021.
[AS23] Sepehr Assadi and Janani Sundaresan. Hidden permutations to the rescue: Multi-pass streaming lower bounds for approximate matchings. In Proceedings of the IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 909–932. IEEE, 2023.
[Ass25] Sepehr Assadi. A simple -approximation semi-streaming algorithm for maximum (weighted) matching. TheoretiCS, 4, 2025. Announced at SOSA'24.
[CS14] Michael Crouch and Daniel M Stubbs. Improved streaming algorithms for weighted matching, via unweighted matching. In Proceedings of the Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2014). Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2014.
[EKMS12] Sebastian Eggert, Lasse Kliemann, Peter Munstermann, and Anand Srivastav. Bipartite matching in the semi-streaming model. Algorithmica, 63(1):490–508, 2012.
[EKS09] Sebastian Eggert, Lasse Kliemann, and Anand Srivastav. Bipartite graph matchings in the semi-streaming model. In Proceedings of the 17th Annual European Symposium on Algorithms (ESA 2009), pages 492–503. Springer, 2009.
[ELMS11] Leah Epstein, Asaf Levin, Julián Mestre, and Danny Segev. Improved approximation guarantees for weighted matching in the semi-streaming model. SIAM Journal on Discrete Mathematics, 25(3):1251–1265, 2011. Announced at STACS'10.
[FKM 05] Joan Feigenbaum, Sampath Kannan, Andrew McGregor, Siddharth Suri, and Jian Zhang. On graph problems in a semi-streaming model. Theoretical Computer Science, 348(2-3):207–216, 2005. Announced at ICALP 2004.
[FMU22] Manuela Fischer, Slobodan Mitrović, and Jara Uitto. Deterministic -approximate maximum matching with poly passes in the semi-streaming model and beyond. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing (STOC 2022), pages 248–260, 2022.
[GKK12] Ashish Goel, Michael Kapralov, and Sanjeev Khanna. On the communication and streaming complexity of maximum bipartite matching. In Proceedings of the 23rd Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2012), pages 468–485. SIAM, 2012.
[GW19] Mohsen Ghaffari and David Wajc. Simplified and space-optimal semi-streaming -approximate matching. In Proceedings of the 2nd Symposium on Simplicity in Algorithms (SOSA 2019), volume 69, pages 13:1–13:8, 2019.
[IKY25] Taisuke Izumi, Naoki Kitamura, and Yutaro Yamaguchi. Forgetting alternation and blossoms: A new framework for fast matching augmentation and its applications to sequential/distributed/streaming computation. arXiv preprint arXiv:2511.08210, 2025.
[Kap13] Michael Kapralov. Better bounds for matchings in the streaming model. In Proceedings of the 24th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2013), pages 1679–1697. SIAM, 2013.
[Kap21] Michael Kapralov. Space lower bounds for approximating maximum matching in the edge arrival model. In Proceedings of the 32th ACM-SIAM Symposium on Discrete Algorithms (SODA 2021), pages 1874–1893. SIAM, 2021.
[KNWW26] Christian Konrad, Kheeran K. Naidu, Archie Walton, and Eric Wang. On the Assadi-Liu-Tarjan auction algorithm for bipartite matching: Simplification, alternative analysis, and hard instance. In Proceedings of the 34th Annual European Symposium on Algorithms (ESA 2026), volume 388, pages 120:1–120:13, 2026.
[McG05] Andrew McGregor. Finding graph matchings in data streams. In Proceedings of the 8th International Workshop on Approximation Algorithms for Combinatorial Optimization Problems (APPROX 2005) and the 9th International Workshop on Randomized and Computation (RANDOM 2005), pages 170–181. Springer, 2005.
[MMSS25] Slobodan Mitrović, Anish Mukherjee, Piotr Sankowski, and Wen-Horng Sheu. Faster semi-streaming matchings via alternating trees. In Proceedings of the 52nd International Colloquium on Automata, Languages, and Programming (ICALP 2025), volume 334, pages 119:1–119:19, 2025.
[PS18] Ami Paz and Gregory Schwartzman. A -approximation for maximum weight matching in the semi-streaming model. ACM Transactions on Algorithms (TALG), 15(2):1–15, 2018. Announced at SODA'17.
[Sch03] Alexander Schrijver. Combinatorial optimization: polyhedra and efficiency, volume 24. Springer, 2003.
[Sun26] Janani Sundaresan. New techniques for lower bounds in graph streaming and distributed computing. 2026.
[Tir18] Sumedh Tirodkar. Deterministic algorithms for maximum matching on general graphs in the semi-streaming model. In Proceedings of the 38th IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS 2018). Schloss-Dagstuhl-Leibniz Zentrum für Informatik, 2018.
[Zel12] Mariano Zelke. Weighted matching in the semi-streaming model. Algorithmica, 62(1):1–20, 2012. Announced at STACS'08.