Sublinear data structures for short Fréchet queries

Anne Driemel, Ioannis Psarros, Melanie SchmidtarXiv 2019

Introduction

The Fréchet distance is widely regarded as the "gold standard" for measuring similarity between trajectories, such as GPS tracks, animal movements, or handwriting. Despite its utility, computing the Fréchet distance is computationally intensive; standard algorithms typically scale quadratically with the number of points ($m$) in the curves. Existing data structures for Fréchet queries often suffer from the "exponential curse," where space or query time grows exponentially with input complexity. This paper addresses these limitations by introducing sublinear-space data structures optimized for the short query regime.

The Short Query Problem

In many practical applications, a long, complex trajectory (the input) is compared against a relatively short, simple pattern (the query). The authors exploit this asymmetry to build efficient data structures where query performance is decoupled from the total input size $m$. By separating these parameters, they achieve query times that are independent of the input curve's length, a significant departure from previous $m$-dependent bounds.

Methodological Framework

The authors focus on the discrete Fréchet distance and utilize several geometric techniques to achieve sublinear performance:

  • Asymmetric Simplification: The input curve $X$ of length $m$ is simplified into a coarser version $X_k$ of length $k$. This simplified curve serves as a proxy for the original data during query processing.
  • Distance Oracles via Exponential Grids: To provide a $(1+\epsilon)$-approximation, the authors construct exponential grids around the vertices of the simplified curve. They precompute distances for all potential "proxy" query curves within this grid and store them in a lookup table for rapid retrieval.
  • Merge-and-Reduce for Streaming: To accommodate streaming data, the authors adapt the Bentley-Saxe "merge-and-reduce" framework. They ensure the distance oracle is composable—allowing oracles for different curve segments to be merged—by employing dynamic programming on query curve partitions.
  • Approximate Near Neighbor (ANN): For identifying the closest curve in a set of $n$ curves, the authors utilize Locality-Sensitive Hashing (LSH). By snapping curves to randomly shifted grids, they ensure that similar curves are likely to be hashed into the same bucket.

Performance and Results

The proposed methods represent a significant theoretical advancement. The primary breakthrough is the elimination of the $m$-dependency in query times for both distance oracles and nearest neighbor searches.

Table 1: Overview of results for distance oracles. Note that query times are independent of input length $m$.

As shown in Table 1, the authors achieve a $(1+\epsilon)$-approximation with $O(k^2)$ query time. In streaming environments, this oracle can be maintained with only polylogarithmic additional memory relative to $m$.

Table 2: Overview of results for Approximate Near Neighbor (ANN). The new results (Theorems 10 & 11) demonstrate query times of $O(dk)$, a massive improvement over previous $m$-dependent bounds.

For ANN queries (Table 2), the improvement is even more pronounced. In $\mathbb{R}^d$, the query time is reduced to $O(dk)$, offering an exponential improvement in dependency on input complexity compared to previous state-of-the-art methods. Furthermore, these techniques generalize to any metric space with a bounded doubling dimension, extending their applicability beyond Euclidean coordinates.

Conclusion and Future Directions

While this work successfully removes the dependency on input length $m$, it introduces a trade-off: space complexity remains exponential in the query complexity $k$ (e.g., $1/\epsilon^{dk}$). This restricts the current approach to relatively short queries. Additionally, the focus remains on the discrete Fréchet distance; the continuous version presents greater challenges due to the unbounded doubling dimension of its induced metric space. Future work may involve empirical testing to evaluate the impact of constant factors in the "exponential grid" approach and extending these sublinear structures to the continuous Fréchet distance.

Summary updated

BibTeX
@misc{driemel2019sublinear,
  author = {Anne Driemel and Ioannis Psarros and Melanie Schmidt},
  title = {{Sublinear data structures for short Fréchet queries}},
  year = {2019},
  eprint = {1907.04420},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.04420},
}
Figure