Abstract
We study the problem of constructing a data structure that can store a two-dimensional polygonal curve P, such that for any query segment ab one can efficiently compute the Fréchet distance between P and ab. First we present a data structure of size O(n log n) that can compute the Fréchet distance between P and a horizontal query segment ab in O(log n) time, where n is the number of vertices of P. In comparison to prior work, this significantly reduces the required space. We extend the type of queries allowed, as we allow a query to be a horizontal segment ab together with two points s, t ∈ P (not necessarily vertices), and ask for the Fréchet distance between ab and the curve of P in between s and t. Using O(n log2 n) storage, such queries take O(log3 n) time, simplifying and significantly improving previous results. We then generalize our results to query segments of arbitrary orientation. We present an O(nk3+ϵ + n2) size data structure, where k ∈ [1, n] is a parameter the user can choose, and ϵ > 0 is an arbitrarily small constant, such that given any segment ab and two points s, t ∈ P we can compute the Fréchet distance between ab and the curve of P in between s and t in O((n/k) log2 n + log4 n) time. This is the first result that allows efficient exact Fréchet distance queries for arbitrarily oriented segments. We also present two applications of our data structure. First, we show that our data structure allows us to compute a local δ-simplification (with respect to the Fréchet distance) of a polygonal curve in O(n5/2+ϵ) time, improving a previous O(n3) time algorithm. Second, we show that we can efficiently find a translation of an arbitrary query segment ab that minimizes the Fréchet distance with respect to a subcurve of P.
Original language | English |
---|---|
Title of host publication | 30th Annual European Symposium on Algorithms (ESA 2022) |
Editors | Shiri Chechik, Gonzalo Navarro, Eva Rotenberg, Grzegorz Herman |
Publisher | LIPIcs, Schloss Dagstuhl – Leibniz-Zentrum fuer Informatik |
Pages | 29:1-29:14 |
Number of pages | 14 |
ISBN (Electronic) | 9783959772471 |
ISBN (Print) | 978-3-95977-247-1 |
DOIs | |
Publication status | Published - 1 Sept 2022 |
Publication series
Name | Leibniz International Proceedings in Informatics (LIPIcs) |
---|---|
Publisher | Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik |
Volume | 244 |
ISSN (Print) | 1868-8969 |
Bibliographical note
Publisher Copyright:© 2022 Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing. All rights reserved.
Keywords
- Computational Geometry
- Data Structures
- Fréchet distance