Lune

SODA2025Top-tier venue

Nearly Tight Bounds on Testing of Metric Properties

Yiqiao Bao, Sampath Kannan, Erik Waingarten

Abstract

Given a non-negative n × n matrix viewed as a set of distances between n 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(n 2/3 /ε 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 ε is a slowly decreasing function of n (rather than a constant, as is standard), we prove a lower bound of matching dependence on n of Ω(n 2/3 ), ruling out any property testers with o(n 2/3 ) query complexity unless their dependence on 1/ε 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 Õ(1/ε) on the sample complexity. We also show a lower bound of Ω(1/ε 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Builds on3

  1. Testing Positive Semi-Definiteness via Random SubmatricesAinesh Bakshi, Nadiia Chepurko, Rajesh JayaramFOCS 2020 · 8 citations
  2. Sublinear time approximation of the cost of a metric k-nearest neighbor graphArtur Czumaj, Christian SohlerSODA 2020 · 3 citations
  3. Improved Approximations for Ultrametric Violation DistanceMoses Charikar, Ruiquan GaoSODA 2024

Related papers

  1. Non-adaptive vs Adaptive Queries in the Dense Graph Testing ModelOded Goldreich, Avi WigdersonFOCS 2021 · 7 citations
  2. The complexity of testing all properties of planar graphs, and the role of isomorphismSabyasachi Basu, Akash Kumar, C. SeshadhriSODA 2022
  3. Computational Complexity in Property TestingRenato Ferreira Pinto Jr., Diptaksho Palit, Sofya RaskhodnikovaSODA 2026
  4. On Efficient Low Distortion Ultrametric EmbeddingVincent Cohen-Addad, Karthik C. S., Guillaume LagardeICML 2020 · 13 citations
  5. Mildly Exponential Lower Bounds on Tolerant Testers for Monotonicity, Unateness, and JuntasXi Chen, Anindya De, Yuhao Li, Shivam Nadimpalli et al.SODA 2024
Dusk over the sea between two cliffs drawn in fine vertical lines