English

Tight Pair Query Lower Bounds for Matching and Earth Mover's Distance

Data Structures and Algorithms 2025-10-21 v1

Abstract

How many adjacency matrix queries (also known as pair queries) are required to estimate the size of a maximum matching in an nn-vertex graph GG? We study this fundamental question in this paper. On the upper bound side, an algorithm of Bhattacharya, Kiss, and Saranurak [FOCS'23] gives an estimate that is within ϵn\epsilon n of the right bound with n2Ωϵ(1)n^{2-\Omega_\epsilon(1)} queries, which is subquadratic in nn (and thus sublinear in the matrix size) for any fixed ϵ>0\epsilon > 0. On the lower bound side, while there has been a lot of progress in the adjacency list model, no non-trivial lower bound has been established for algorithms with adjacency matrix query access. In particular, the only known lower bound is a folklore bound of Ω(n)\Omega(n), leaving a huge gap. In this paper, we present the first superlinear in nn lower bound for this problem. In fact, we close the gap mentioned above entirely by showing that the algorithm of [BKS'23] is optimal. Formally, we prove that for any fixed δ>0\delta > 0, there is a fixed ϵ>0\epsilon > 0 such that an estimate that is within ϵn\epsilon n of the true bound requires Ω(n2δ)\Omega(n^{2-\delta}) adjacency matrix queries. Our lower bound also has strong implications for estimating the earth mover's distance between distributions. For this problem, Beretta and Rubinstein [STOC'24] gave an n2Ωϵ(1)n^{2-\Omega_\epsilon(1)} time algorithm that obtains an additive ϵ\epsilon-approximation and works for any distance function. Whether this can be improved generally, or even for metric spaces, had remained open. Our lower bound rules out the possibility of any improvements over this bound, even under the strong assumption that the underlying distances are in a (1, 2)-metric.

Keywords

Cite

@article{arxiv.2510.16351,
  title  = {Tight Pair Query Lower Bounds for Matching and Earth Mover's Distance},
  author = {Amir Azarmehr and Soheil Behnezhad and Mohammad Roghani and Aviad Rubinstein},
  journal= {arXiv preprint arXiv:2510.16351},
  year   = {2025}
}