English

Approximate Nearest Neighbor for Curves: Simple, Efficient, and Deterministic

Computational Geometry 2022-01-12 v4

Abstract

In the (1+ε,r)(1+\varepsilon,r)-approximate near-neighbor problem for curves (ANNC) under some distance measure δ\delta, the goal is to construct a data structure for a given set C\mathcal{C} of curves that supports approximate near-neighbor queries: Given a query curve QQ, if there exists a curve CCC\in\mathcal{C} such that δ(Q,C)r\delta(Q,C)\le r, then return a curve CCC'\in\mathcal{C} with δ(Q,C)(1+ε)r\delta(Q,C')\le(1+\varepsilon)r. There exists an efficient reduction from the (1+ε)(1+\varepsilon)-approximate nearest-neighbor problem to ANNC, where in the former problem the answer to a query is a curve CCC\in\mathcal{C} with δ(Q,C)(1+ε)δ(Q,C)\delta(Q,C)\le(1+\varepsilon)\cdot\delta(Q,C^*), where CC^* is the curve of C\mathcal{C} closest to QQ. Given a set C\mathcal{C} of nn curves, each consisting of mm points in dd dimensions, we construct a data structure for ANNC that uses nO(1ε)mdn\cdot O(\frac{1}{\varepsilon})^{md} storage space and has O(md)O(md) query time (for a query curve of length mm), where the similarity between two curves is their discrete Fr\'echet or dynamic time warping distance. Our method is simple to implement, deterministic, and results in an exponential improvement in both query time and storage space compared to all previous bounds. Further, we also consider the asymmetric version of ANNC, where the length of the query curves is kmk \ll m, and obtain essentially the same storage and query bounds as above, except that mm is replaced by kk. Finally, we apply our method to a version of approximate range counting for curves and achieve similar bounds.

Keywords

Cite

@article{arxiv.1902.07562,
  title  = {Approximate Nearest Neighbor for Curves: Simple, Efficient, and Deterministic},
  author = {Arnold Filtser and Omrit Filtser and Matthew J. Katz},
  journal= {arXiv preprint arXiv:1902.07562},
  year   = {2022}
}
R2 v1 2026-06-23T07:46:01.425Z