On Practical Nearest Sub-Trajectory Queries under the Fréchet Distance

Joachim Gudmundsson, John Pfeifer, Martin P. Seybold
3/19/2022
cs.CGcs.DS

Official code: japfeifer/frechet-queries (3 stars, MATLAB, last commit 2025-02-19).

Abstract

We study the problem of sub-trajectory nearest-neighbor queries on polygonal curves under the continuous Fréchet distance. Given an $n$ vertex trajectory $P$ and an $m$ vertex query trajectory $Q$, we seek to report a vertex-aligned sub-trajectory $P'$ of $P$ that is closest to $Q$, i.e. $P'$ must start and end on contiguous vertices of $P$.

Show full abstract

Since in real data $P$ typically contains a very large number of vertices, we focus on answering queries, without restrictions on $P$ or $Q$, using only precomputed structures of ${\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 $P$. The core of our query methods is a novel greedy-backtracking algorithm that solves the Fréchet decision problem using ${\cal O}(n+m)$ space and ${\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.

View on arXivView PDF

Code Implementations(1)

A Data Structure for Approximate Trajectory Queries under the Continuous Frechet Distance

31MATLAB, C++Jan 23, 20191 years ago

Similar Papers

Cite this paper

@article{gudmundsson2022practical,
  title  = {On Practical Nearest Sub-Trajectory Queries under the Fréchet Distance},
  author = {Joachim Gudmundsson and John Pfeifer and Martin P. Seybold},
  year   = {2022},
  eprint = {2203.10364},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.10364}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.10364.svg)](https://codeofpaper.com/paper/2203.10364)

Discussion