Efficient Fréchet distance queries for segments
arXiv:2203.01794
Abstract
We study the problem of constructing a data structure that can store a two-dimensional polygonal curve , such that for any query segment one can efficiently compute the Fréchet distance between and . First we present a data structure of size that can compute the Fréchet distance between and a horizontal query segment in time, where is the number of vertices of . 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 together with two points (not necessarily vertices), and ask for the Fréchet distance between and the curve of in between and . Using storage, such queries take time, simplifying and significantly improving previous results. We then generalize our results to query segments of arbitrary orientation. We present an size data structure, where is a parameter the user can choose, and is an arbitrarily small constant, such that given any segment and two points we can compute the Fréchet distance between and the curve of in between and in 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: we show that we can compute a local -simplification (with respect to the Fréchet distance) of a polygonal curve in time, and that we can efficiently find a translation of an arbitrary query segment that minimizes the Fréchet distance with respect to a subcurve of .