Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/3580507.3597794acmconferencesArticle/Chapter ViewAbstractPublication PagesecConference Proceedingsconference-collections
research-article
Public Access

The Power of Greedy for Online Minimum Cost Matching on the Line

Published: 07 July 2023 Publication History

Abstract

In the online minimum cost matching problem, there are n servers and, at each of n time steps, a request arrives and must be irrevocably matched to a server that has not yet been matched, with the goal of minimizing the sum of the distances between the matched pairs. Online minimum cost matching is a central problem in applications such as ride-hailing platforms and food delivery services. Despite achieving a worst-case competitive ratio that is exponential in n even on the line, the simple greedy algorithm, which matches each request to its nearest available server, performs well in practice and has a number of attractive features such as strategyproofness. A major question is thus to explain greedy's strong empirical performance. In this paper, we aim to understand the performance of greedy on the line over instances that are at least partially random.
When both the requests and the servers are drawn uniformly and independently from [0, 1], we obtain a constant competitive ratio for greedy, which improves over the previously best-known bound of [EQUATION] for greedy in this setting. We also show that this constant competitive ratio also holds in the excess supply setting where there is a linear excess of servers, which improves over the previously best-known bound of O(log3 n) for greedy in this setting.
We moreover show that in the semi-random model where the requests are still drawn uniformly and independently but where the servers are chosen adversarially, greedy achieves an O(log n) competitive ratio. Even though this one-sided randomness allows a large improvement in greedy's competitive ratio compared to the model where the requests are fully adversarial or arrive in a random order, we show that it is not sufficient to obtain a constant competitive ratio by giving a tight Ω(log n) lower bound. These results invite further investigation about how much randomness is necessary and sufficient to obtain strong theoretical guarantees for the greedy algorithm for online minimum cost matching, on the line and beyond. A full version of this paper can be found at https://arxiv.org/abs/2210.03166.

References

[1]
Mohammad Akbarpour, Yeganeh Alimohammadi, Shengwu Li, and Amin Saberi. 2022. The Value of Excess Supply in Spatial Matching Markets. (2022), 62.
[2]
Antonios Foivos Antoniadis, Neal Barcelo, Michael Nugent, Kirk Pruhs, and Michele Scquizzato. 2014. A o(n) -Competitive Deterministic Algorithm for Online Matching on a Line. In Workshop on Approximation and Online Algorithms.
[3]
Nick Arnosti. 2022. Greedy matching in bipartite random graphs. Stochastic Systems 12, 2 (2022), 133--150.
[4]
David Arthur, Bodo Manthey, and Heiko Röglin. 2009. K-means has polynomial smoothed complexity. In 2009 50th Annual IEEE Symposium on Foundations of Computer Science. IEEE, 405--414.
[5]
Eric Balkanski, Yuri Faenza, and Mathieu Kubik. 2022. The Simultaneous Semi-random Model for TSP. In International Conference on Integer Programming and Combinatorial Optimization. Springer, 43--56.
[6]
Nikhil Bansal, Niv Buchbinder, Anupam Gupta, and Joseph Seffi Naor. 2007. An O(Log2k)-Competitive Algorithm for Metric Bipartite Matching. In Proceedings of the 15th Annual European Conference on Algorithms (Eilat, Israel) (ESA'07). Springer-Verlag, Berlin, Heidelberg, 522--533.
[7]
Timothy Brown. 2016. Matchmaking in Lyft Line - Part 1. Lyft Engineering (2016). https://tinyurl.com/3sdrw7yc
[8]
Vaggos Chatziafratis, Tim Roughgarden, and Jan Vondrak. 2017. Stability and Recovery for Independence Systems. In 25th Annual European Symposium on Algorithms (ESA 2017). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik.
[9]
Michele Conforti and Gérard Cornuéjols. 1984. Submodular set functions, matroids and the greedy algorithm: tight worst-case bounds and some generalizations of the Rado-Edmonds theorem. Discrete applied mathematics 7, 3 (1984), 251--274.
[10]
Bela Csaba and András Pluhár. 2007. A randomized algorithm for the on-line weighted bipartite matching problem. Journal of Scheduling 11 (07 2007).
[11]
Nikhil R Devanur, Kamal Jain, Balasubramanian Sivan, and Christopher A Wilkens. 2011. Near optimal online algorithms and fast approximation algorithms for resource allocation problems. In Proceedings of the 12th ACM conference on Electronic commerce. 29--38.
[12]
Matthias Englert, Heiko Röglin, and Berthold Vöcking. 2014. Worst case and probabilistic analysis of the 2-Opt algorithm for the TSP. Algorithmica 68, 1 (2014), 190--264.
[13]
Matthias Englert, Heiko Röglin, and Berthold Vöcking. 2016. Smoothed analysis of the 2-opt algorithm for the general TSP. ACM Transactions on Algorithms (TALG) 13, 1 (2016), 1--15.
[14]
Uriel Feige. 2021. Introduction to Semirandom Models. Beyond the Worst-Case Analysis of Algorithms (2021), 189.
[15]
Jon Feldman, Monika Henzinger, Nitish Korula, Vahab S Mirrokni, and Cliff Stein. 2010. Online stochastic packing applied to display ad allocation. In European Symposium on Algorithms. Springer, 182--194.
[16]
Alan Frieze, Colin McDiarmid, and Bruce Reed. 1990. Greedy Matching on the Line. SIAM J. Comput. 19, 4 (1990), 666--672. arXiv:https://doi.org/10.1137/0219045
[17]
Bernhard Fuchs, Winfried Hochstättler, and Walter Kern. 2003. Online Matching On a Line. Electronic Notes in Discrete Mathematics 13 (03 2003), 49--51.
[18]
Martin Gairing and Max Klimm. 2019. Greedy metric minimum online matchings with random arrivals. Oper. Res. Lett. 47, 2 (2019), 88--91.
[19]
Gagan Goel and Aranyak Mehta. 2008. Online budgeted matching in random input models with applications to Adwords. In SODA, Vol. 8. 982--991.
[20]
Anupam Gupta, Guru Guruganesh, Binghui Peng, and David Wajc. 2019. Stochastic Online Metric Matching. In 46th International Colloquium on Automata, Languages, and Programming, ICALP 2019, July 9--12, 2019, Patras, Greece (LIPIcs, Vol. 132), Christel Baier, Ioannis Chatzigiannakis, Paola Flocchini, and Stefano Leonardi (Eds.). Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 67:1--67:14.
[21]
Anupam Gupta and Kevin Lewi. 2012. The Online Metric Matching Problem for Doubling Metrics. In Automata, Languages, and Programming - 39th International Colloquium, ICALP 2012, Warwick, UK, July 9--13, 2012, Proceedings, Part I (Lecture Notes in Computer Science, Vol. 7391), Artur Czumaj, Kurt Mehlhorn, Andrew M. Pitts, and Roger Wattenhofer (Eds.). Springer, 424--435.
[22]
Varun Gupta, Ravishankar Krishnaswamy, and Sai Sandeep. 2020. PERMUTATION Strikes Back: The Power of Recourse in Online Metric Matching. In APPROX-RANDOM.
[23]
Isobel Asher Hamilton. 2019. Uber drivers are reportedly colluding to trigger 'surge' prices because they say the company is not paying them enough. Insider (2019). https://www.businessinsider.com/uber-drivers-artificially-triggering-surge-prices-reports-abc7-2019-6
[24]
Nina Holden, Yuval Peres, and Alex Zhai. 2021. Gravitational allocation for uniform points on the sphere. The Annals of Probability 49, 1 (2021), 287 -- 321.
[25]
Joab Jackson. 2019. How Uber Eats Uses Machine Learning to Estimate Delivery Times? The New Stack (2019). https://thenewstack.io/how-uber-eats-uses-machine-learning-to-estimate-delivery-times/
[26]
Bala Kalyanasundaram and Kirk Pruhs. 1993. Online Weighted Matching. J. Algorithms 14, 3 (1993), 478--488.
[27]
Bala Kalyanasundaram and Kirk Pruhs. 2000. The Online Transportation Problem. SIAM J. Discret. Math. 13, 3 (2000), 370--383.
[28]
Yash Kanoria. 2021. Dynamic Spatial Matching.
[29]
Yash Kanoria. 2022. Dynamic Spatial Matching. In Proceedings of the 23rd ACM Conference on Economics and Computation (Boulder, CO, USA) (EC '22). Association for Computing Machinery, New York, NY, USA, 63--64.
[30]
Richard M Karp, Umesh V Vazirani, and Vijay V Vazirani. 1990. An optimal algorithm for on-line bipartite matching. In Proceedings of the twenty-second annual ACM symposium on Theory of computing. 352--358.
[31]
Elias Koutsoupias and Akash Nanavati. 2004. The Online Matching Problem on a Line. In Approximation and Online Algorithms, Roberto Solis-Oba and Klaus Jansen (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 179--191.
[32]
Marvin Künnemann and Bodo Manthey. 2015. Towards understanding the smoothed approximation ratio of the 2-opt heuristic. In International Colloquium on Automata, Languages, and Programming. Springer, 859--871.
[33]
Yiming Li, Jingzhi Fang, Yuxiang Zeng, Balz Maag, Yongxin Tong, and Lingyu Zhang. 2020. Two-sided online bipartite matching in spatial data: experiments and analysis. GeoInformatica 24, 1 (2020), 175--198.
[34]
Bodo Manthey and Heiko Röglin. 2013. Worst-case and smoothed analysis of k-means clustering with Bregman divergences. Journal of Computational Geometry (Old Web Site) 4, 1 (2013), 94--132.
[35]
Andrew Mastin and Patrick Jaillet. 2013. Greedy online bipartite matching on random graphs. arXiv preprint arXiv:1307.2536 (2013).
[36]
Nicole Megow and Lukas Nölke. 2020. Online Minimum Cost Matching with Recourse on the Line. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM 2020, August 17--19, 2020, Virtual Conference (LIPIcs, Vol. 176), Jaroslaw Byrka and Raghu Meka (Eds.). Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 37:1--37:16.
[37]
Aranyak Mehta. 2013. Online Matching and Ad Allocation. Foundations and Trends in Theoretical Computer Science 8 (4) (2013), 265--368.
[38]
Aranyak Mehta et al. 2013. Online matching and ad allocation. Foundations and Trends® in Theoretical Computer Science 8, 4 (2013), 265--368.
[39]
Adam Meyerson, Akash Nanavati, and Laura Poplawski. 2006. Randomized Online Algorithms for Minimum Metric Bipartite Matching. In Proceedings of the Seventeenth Annual ACM-SIAM Symposium on Discrete Algorithm (Miami, Florida) (SODA '06). Society for Industrial and Applied Mathematics, USA, 954--959.
[40]
Krati Nayyar and Sharath Raghvendra. 2017. An Input Sensitive Online Algorithm for the Metric Bipartite Matching Problem. In 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS). 505--515.
[41]
Enoch Peserico and Michele Scquizzato. 2021. Matching on the line admits no [EQUATION]-competitive algorithm. In 48th International Colloquium on Automata, Languages, and Programming (ICALP 2021). Schloss Dagstuhl-Leibniz-Zentrum für Informatik.
[42]
Sebastian Pokutta, Mohit Singh, and Alfredo Torrico. 2020. On the unreasonable effectiveness of the greedy algorithm: Greedy adapts to sharpness. In International Conference on Machine Learning. PMLR, 7772--7782.
[43]
Sharath Raghvendra. 2016. A Robust and Optimal Online Algorithm for Minimum Metric Bipartite Matching. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM 2016, September 7--9, 2016, Paris, France (LIPIcs, Vol. 60), Klaus Jansen, Claire Mathieu, José D. P. Rolim, and Chris Umans (Eds.). Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 18:1--18:16.
[44]
Sharath Raghvendra. 2018. Optimal Analysis of an Online Algorithm for the Bipartite Matching Problem on a Line. In 34th International Symposium on Computational Geometry (SoCG 2018). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik.
[45]
Aviad Rubinstein and Junyao Zhao. 2022. Budget-Smoothed Analysis for Submodular Maximization. In 13th Innovations in Theoretical Computer Science Conference (ITCS 2022). Schloss Dagstuhl-Leibniz-Zentrum für Informatik.
[46]
Yongxin Tong, Jieying She, Bolin Ding, Lei Chen, Tianyu Wo, and Ke Xu. 2016. Online Minimum Matching in Real-Time Spatial Data: Experiments and Analysis. Proc. VLDB Endow. 9, 12 (2016), 1053--1064.
[47]
Ying The Tsai, Chuan Yi Tang, and Yunn Yen Chen. 1994. Average Performance of a Greedy Algorithm for the On-Line Minimum Matching Problem on Euclidean Space. Inf. Process. Lett. 51, 6 (1994), 275--282.
[48]
Pan Xu, Yexuan Shi, Hao Cheng, John Dickerson, Karthik Abinav Sankararaman, Aravind Srinivasan, Yongxin Tong, and Leonidas Tsepenekas. 2019. A unified approach to online matching with conflict-aware constraints. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 33. 2221--2228.

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
EC '23: Proceedings of the 24th ACM Conference on Economics and Computation
July 2023
1253 pages
ISBN:9798400701047
DOI:10.1145/3580507
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 07 July 2023

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. online algorithm
  2. online matching
  3. beyond-worst case analysis
  4. greedy algorithm
  5. semi-random model

Qualifiers

  • Research-article

Funding Sources

Conference

EC '23
Sponsor:
EC '23: 24th ACM Conference on Economics and Computation
July 9 - 12, 2023
London, United Kingdom

Acceptance Rates

Overall Acceptance Rate 664 of 2,389 submissions, 28%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 126
    Total Downloads
  • Downloads (Last 12 months)94
  • Downloads (Last 6 weeks)15
Reflects downloads up to 02 Sep 2024

Other Metrics

Citations

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media