Efficient Fr\'echet distance queries for segments
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\'echet distance between P and ab. First we present a data structure of size O(n n) that can compute the Fr\'echet distance between P and a horizontal query segment ab in O( 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\'echet distance between ab and the curve of P in between s and t. Using O(n2n) storage, such queries take O(3 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\'echet distance between ab and the curve of P in between s and t in O((n/k)2n+4 n) time. This is the first result that allows efficient exact Fr\'echet distance queries for arbitrarily oriented segments. We also present two applications of our data structure: we show that we can compute a local δ-simplification (with respect to the Fr\'echet distance) of a polygonal curve in O(n5/2+) time, and that we can efficiently find a translation of an arbitrary query segment ab that minimizes the Fr\'echet distance with respect to a subcurve of P.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.