Skip to main content
Log in

Improved Bounds for Matching in Random-Order Streams

  • Published:
Theory of Computing Systems Aims and scope Submit manuscript

Abstract

We study the problem of computing an approximate maximum cardinality matching in the semi-streaming model when edges arrive in a random order. In the semi-streaming model, the edges of the input graph \(G = (V,E)\) are given as a stream \(e_1, \ldots , e_m\), and the algorithm is allowed to make a single pass over this stream while using \(O(n\text {polylog}(n))\) space (\(m = |E|\) and \(n = |V|\)). If the order of edges is adversarial, a simple single-pass greedy algorithm yields a 1/2-approximation in O(n) space; achieving a better approximation in adversarial streams remains an elusive open question. A line of recent work shows that one can improve upon the 1/2-approximation if the edges of the stream arrive in a random order. The state of the art for this model is two-fold: Assadi et al. [SODA 2019] show how to compute a \(\frac{2}{3}\) \((\sim .66)\)-approximate matching, but the space requirement is \(O(n^{1.5}\text {polylog}(n))\). Very recently, Farhadi et al. [SODA 2020] presented an algorithm with the desired space usage of \(O(n\text {polylog}(n))\), but a worse approximation ratio of \(\frac{6}{11}\) \((\sim .545)\), or \(\frac{3}{5}\) \((=.6)\) in bipartite graphs. In this paper, we present an algorithm that computes a \(\frac{2}{3}(\sim .66)\)-approximate matching using only \(O(n\log (n))\) space, improving upon both results above. We also note that for adversarial streams, a lower bound of Kapralov [SODA 2013] shows that any algorithm that achieves a \(1-\frac{1}{e}\)(\(\sim .63\))-approximation requires \((n^{1+\Omega (1/\log \log (n))})\) space; recent follow-up work by the same author improved this lower bound to \(1+\ln (2) \sim .59\) [SODA 2021]. As a consequence, both our result and the earlier result of Farhadi et al. prove that the problem of computing a maximum matching is strictly easier in random-order streams than in adversarial ones.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Algorithm 1

Similar content being viewed by others

Notes

  1. Note that the algorithm actually only makes an insertion move when \(\deg _H(u) + \deg _H(v) < \beta - 1\), but this lemma only requires the weaker assumption that \(\deg _H(u) + \deg _H(v) < \beta - 1\)

References

  1. Ahn, K.J., Guha, S.: Linear programming in the semi-streaming model with application to the maximum matching problem. Inf. Comput. 222, 59–79 (2013)

    Article  MathSciNet  MATH  Google Scholar 

  2. Ahn, K.J., Guha, S.: Access to data and number of iterations: Dual primal algorithms for maximum matching under resource constraints. In: Proceedings of the 27th ACM on Symposium on Parallelism in Algorithms and Architectures, SPAA 2015, Portland, OR, USA, June 13-15, 2015, pp. 202–211 (2015)

  3. Assadi, S., Bateni, M., Bernstein, A., Mirrokni, V.S., Stein, C.: Coresets meet EDCS: algorithms for matching and vertex cover on massive graphs. In: Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2019, San Diego, California, USA, January 6–9, 2019, pp. 1616–1635 (2019)

  4. Assadi, S., Bernstein, A.: Towards a unified theory of sparsification for matching problems. In: 2nd Symposium on Simplicity in Algorithms, SOSA@SODA 2019, January 8–9, 2019–San Diego, CA, USA, pp. 11:1–11:20 (2019)

  5. Assadi, S., Khanna, S., Li, Y.: On estimating maximum matching size in graph streams. In: Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2017, Barcelona, Spain, Hotel Porta Fira, January 16–19, pp. 1723–1742 (2017)

  6. Assadi, S., Khanna, S., Li, Y., Yaroslavtsev, G.: Maximum matchings in dynamic graph streams and the simultaneous communication model. In: R. Krauthgamer (ed.) Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2016, Arlington, VA, USA, January 10–12, 2016, pp. 1345–1364. SIAM (2016)

  7. Bernstein, A., Stein, C.: Fully dynamic matching in bipartite graphs. In: Automata, Languages, and Programming–42nd International Colloquium, ICALP 2015, Kyoto, Japan, July 6–10, 2015, Proceedings, Part I, pp. 167–179 (2015)

  8. Bury, M., Schwiegelshohn, C.: Sublinear estimation of weighted matchings in dynamic data streams. In: Algorithms–ESA 2015–23rd Annual European Symposium, Patras, Greece, September 14–16, 2015, Proceedings, pp. 263–274 (2015)

  9. Chitnis, R., Cormode, G., Esfandiari, H., Hajiaghayi, M., McGregor, A., Monemizadeh, M., Vorotnikova, S.: Kernelization via sampling with applications to finding matchings and related problems in dynamic graph streams. In: Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2016, Arlington, VA, USA, January 10-12, 2016, pp. 1326–1344 (2016)

  10. Chitnis, R.H., Cormode, G., Hajiaghayi, M.T., Monemizadeh, M.: Parameterized streaming: Maximal matching and vertex cover. In: Proceedings of the Twenty-Sixth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2015, San Diego, CA, USA, January 4-6, 2015, pp. 1234–1251 (2015)

  11. Cormode, G., Jowhari, H., Monemizadeh, M., Muthukrishnan, S.: The sparse awakens: Streaming algorithms for matching size estimation in sparse graphs. In: 25th Annual European Symposium on Algorithms, ESA 2017, September 4-6, 2017, Vienna, Austria, pp. 29:1–29:15 (2017)

  12. Crouch, M., Stubbs, D.S.: Improved streaming algorithms for weighted matching, via unweighted matching. In: APPROX/RANDOM 2014, pp. 96–104 (2014)

  13. Dark, J., Konrad, C.: Optimal lower bounds for matching and vertex cover in dynamic graph streams. In: 35th Computational Complexity Conference, CCC 2020, July 28–31, 2020, Saarbrücken, Germany (Virtual Conference), LIPIcs, vol. 169, pp. 30:1–30:14. Schloss Dagstuhl–Leibniz-Zentrum für Informatik (2020)

  14. Epstein, L., Levin, A., Mestre, J., Segev, D.: Improved approximation guarantees for weighted matching in the semi-streaming model. SIAM J. Discrete Math. 25(3), 1251–1265 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  15. Esfandiari, H., Hajiaghayi, M., Liaghat, V., Monemizadeh, M., Onak, K.: Streaming algorithms for estimating the matching size in planar graphs and beyond. ACM Trans. Algorithms 14(4), 48:1–48:23 (2018)

  16. Esfandiari, H., Hajiaghayi, M., Monemizadeh, M.: Finding large matchings in semi streaming. In: C. Domeniconi, F. Gullo, F. Bonchi, J. Domingo-Ferrer, R. Baeza-Yates, Z. Zhou, X. Wu (eds.) IEEE International Conference on Data Mining Workshops, ICDM Workshops 2016, December 12-15, 2016, Barcelona, Spain, pp. 608–614. IEEE Computer Society (2016)

  17. Farhadi, A., Hajiaghayi, M.T., Mai, T., Rao, A., Rossi, R.A.: Approximate maximum matching in random streams. In: Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms, SODA 2020, Salt Lake City, UT, USA, January 5–8, 2020, pp. 1773–1785 (2020)

  18. Feigenbaum, J., Kannan, S., McGregor, A., Suri, S., Zhang, J.: On graph problems in a semi-streaming model. Theor. Comput. Sci. 348(2–3), 207–216 (2005). https://doi.org/10.1016/j.tcs.2005.09.013

    Article  MathSciNet  MATH  Google Scholar 

  19. Gamlath, B., Kale, S., Mitrovic, S., Svensson, O.: Weighted matchings via unweighted augmentations. In: P. Robinson, F. Ellen (eds.) Proceedings of the 2019 ACM Symposium on Principles of Distributed Computing, PODC 2019, Toronto, ON, Canada, July 29–August 2, 2019, pp. 491–500. ACM (2019)

  20. Garg, P., Kale, S., Rohwedder, L., Svensson, O.: Robust algorithms under adversarial injections. In: A. Czumaj, A. Dawar, E. Merelli (eds.) 47th International Colloquium on Automata, Languages, and Programming, ICALP 2020, July 8–11, 2020, Saarbrücken, Germany (Virtual Conference), LIPIcs, vol. 168, pp. 56:1–56:15. Schloss Dagstuhl–Leibniz Zentrum für Informatik (2020)

  21. Ghaffari, M., Wajc, D.: Simplified and space-optimal semi-streaming (2+epsilon)–approximate matching. In: J.T. Fineman, M. Mitzenmacher (eds.) 2nd Symposium on Simplicity in Algorithms, SOSA@SODA 2019, January 8–9, 2019–San Diego, CA, USA, OASICS, vol. 69, pp. 13:1–13:8. Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik (2019)

  22. Goel, A., Kapralov, M., Khanna, S.: On the communication and streaming complexity of maximum bipartite matching. In: Proceedings of the Twenty-third Annual ACM-SIAM Symposium on Discrete Algorithms, SODA’12, pp. 468–485. SIAM (2012). http://dl.acm.org/citation.cfm?id=2095116.2095157

  23. Guruswami, V., Onak, K.: Superlinear lower bounds for multipass graph processing. In: Proceedings of the 28th Conference on Computational Complexity, CCC 2013, K.lo Alto, California, USA, 5–7 June, 2013, pp. 287–298 (2013)

  24. Kale, S., Tirodkar, S.: Maximum matching in two, three, and a few more passes over graph streams. In: K. Jansen, J.D.P. Rolim, D. Williamson, S.S. Vempala (eds.) Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM 2017, August 16–18, 2017, Berkeley, CA, USA (2017)

  25. Kapralov, M.: Better bounds for matchings in the streaming model. In: Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2013, New Orleans, Louisiana, USA, January 6–8, 2013, pp. 1679–1697 (2013). https://doi.org/10.1137/1.9781611973105.121

  26. Kapralov, M.: Space lower bounds for approximating maximum matching in the edge arrival model. In: Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms, SODA 2021, Virtual Conference, January 10–13, 2021, pp. 1874–1893. SIAM (2021)

  27. Kapralov, M., Khanna, S., Sudan, M.: Approximating matching size from random streams. In: Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2014, Portland, Oregon, USA, January 5–7, 2014, pp. 734–751 (2014)

  28. Kapralov, M., Mitrovic, S., Norouzi-Fard, A., Tardos, J.: Space efficient approximation to maximum matching size from uniform edge samples. In: Proceedings of the 2020 ACMSIAM Symposium on Discrete Algorithms, SODA 2020, Salt Lake City, UT, USA, January 5–8, 2020, pp. 1753–1772 (2020)

  29. Konrad, C.: Maximum matching in turnstile streams. In: Algorithms–ESA 2015–23rd Annual European Symposium, Patras, Greece, September 14–16, 2015, Proceedings, pp.840–852 (2015)

  30. Konrad, C.: A simple augmentation method for matchings with applications to streaming algorithms. In: I. Potapov, P.G. Spirakis, J. Worrell (eds.) 43rd International Symposium on Mathematical Foundations of Computer Science, MFCS 2018, August 27–31, 2018, Liverpool, UK, LIPIcs, vol. 117, pp. 74:1–74:16. Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik (2018)

  31. Konrad, C., Magniez, F., Mathieu, C.: Maximum matching in semi-streaming with few passes. In: Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques - 15th International Workshop, APPROX 2012, and 16th International Workshop, RANDOM 2012, Cambridge, MA, USA, August 15–17, 2012. Proceedings, pp. 231–242 (2012)

  32. McGregor, A.: Finding graph matchings in data streams. In: Approximation, Randomization and Combinatorial Optimization, Algorithms and Techniques, 8th International Workshop on Approximation Algorithms for Combinatorial Optimization Problems, APPROX 2005 and 9th InternationalWorkshop on Randomization and Computation, RANDOM 2005, Berkeley, CA, USA, August 22–24, 2005, pp. 170–181 (2005)

  33. McGregor, A., Vorotnikova, S.: Planar matching in streams revisited. In: Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM 2016, September 7-9, 2016, Paris, France, pp. 17:1–17:12 (2016)

  34. McGregor, A., Vorotnikova, S.: A simple, space-efficient, streaming algorithm for matchings in low arboricity graphs. In: 1st Symposium on Simplicity in Algorithms, SOSA 2018, January 7–10, 2018, New Orleans, LA, USA, pp. 14:1–14:4 (2018)

  35. Paz, A., Schwartzman, G.: A (2 + epsilon)-approximation for maximum weight matching in the semi-streaming model. In: Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2017, Barcelona, Spain, Hotel Porta Fira, January 16-19, pp. 2153–2161 (2017)

  36. Wajc, D.: Negative association: definition, properties, and applications (2023). https://www.cs.cmu.edu/~dwajc/notes/Negative%20Association.pdf

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Aaron Bernstein.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Funded by NSF CAREER Grant 1942010 and Google Research Grant.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Bernstein, A. Improved Bounds for Matching in Random-Order Streams. Theory Comput Syst (2023). https://doi.org/10.1007/s00224-023-10155-7

Download citation

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s00224-023-10155-7

Keywords

Navigation