English

On Practical Nearest Sub-Trajectory Queries under the Fr\'echet Distance

Computational Geometry 2024-01-17 v2 Data Structures and Algorithms

Abstract

We study the problem of sub-trajectory nearest-neighbor queries on polygonal curves under the continuous Fr\'echet distance. Given an nn vertex trajectory PP and an mm vertex query trajectory QQ, we seek to report a vertex-aligned sub-trajectory PP' of PP that is closest to QQ, i.e. PP' must start and end on contiguous vertices of PP. Since in real data PP typically contains a very large number of vertices, we focus on answering queries, without restrictions on PP or QQ, using only precomputed structures of O(n){\mathcal{O}}(n) size. We use three baseline algorithms from straightforward extensions of known work, however they have impractical performance on realistic inputs. Therefore, we propose a new Hierarchical Simplification Tree data structure and an adaptive clustering based query algorithm that efficiently explores relevant parts of PP. The core of our query methods is a novel greedy-backtracking algorithm that solves the Fr\'echet decision problem using O(n+m){\cal O}(n+m) space and O(nm){\cal O}(nm) time in the worst case. Experiments on real and synthetic data show that our heuristic effectively prunes the search space and greatly reduces computations compared to baseline approaches.

Keywords

Cite

@article{arxiv.2203.10364,
  title  = {On Practical Nearest Sub-Trajectory Queries under the Fr\'echet Distance},
  author = {Joachim Gudmundsson and John Pfeifer and Martin P. Seybold},
  journal= {arXiv preprint arXiv:2203.10364},
  year   = {2024}
}

Comments

Added journal reference

R2 v1 2026-06-24T10:19:14.574Z