English

Nearly Tight Bounds on Testing of Metric Properties

Discrete Mathematics 2024-11-15 v1 Data Structures and Algorithms

Abstract

Given a non-negative n×nn \times n matrix viewed as a set of distances between nn points, we consider the property testing problem of deciding if it is a metric. We also consider the same problem for two special classes of metrics, tree metrics and ultrametrics. For general metrics, our paper is the first to consider these questions. We prove an upper bound of O(n2/3/ϵ4/3)O(n^{2/3}/\epsilon^{4/3}) on the query complexity for this problem. Our algorithm is simple, but the analysis requires great care in bounding the variance on the number of violating triangles in a sample. When ϵ\epsilon is a slowly decreasing function of nn (rather than a constant, as is standard), we prove a lower bound of matching dependence on nn of Ω(n2/3)\Omega (n^{2/3}), ruling out any property testers with o(n2/3)o(n^{2/3}) query complexity unless their dependence on 1/ϵ1/\epsilon is super-polynomial. Next, we turn to tree metrics and ultrametrics. While there were known upper and lower bounds, we considerably improve these bounds showing essentially tight bounds of O~(1/ϵ)\tilde{O}(1/\epsilon ) on the sample complexity. We also show a lower bound of Ω(1/ϵ4/3)\Omega ( 1/\epsilon^{4/3} ) on the query complexity. Our upper bounds are derived by doing a more careful analysis of a natural, simple algorithm. For the lower bounds, we construct distributions on NO instances, where it is hard to find a witness showing that these are not ultrametrics.

Keywords

Cite

@article{arxiv.2411.08989,
  title  = {Nearly Tight Bounds on Testing of Metric Properties},
  author = {Yiqiao Bao and Sampath Kannan and Erik Waingarten},
  journal= {arXiv preprint arXiv:2411.08989},
  year   = {2024}
}