paper

Efficient Nearest-Neighbor Query and Clustering of Planar Curves

arXiv:1904.11026

Abstract

We study two fundamental problems dealing with curves in the plane, namely, the nearest-neighbor problem and the center problem. Let be a set of polygonal curves, each of size . In the nearest-neighbor problem, the goal is to construct a compact data structure over , such that, given a query curve , one can efficiently find the curve in closest to . In the center problem, the goal is to find a curve , such that the maximum distance between and the curves in is minimized. We use the well-known discrete Frechet distance function, both under~ and under , to measure the distance between two curves. For the nearest-neighbor problem, despite discouraging previous results, we identify two important cases for which it is possible to obtain practical bounds, even when and are large. In these cases, either is a line segment or consists of line segments, and the bounds on the size of the data structure and query time are nearly linear in the size of the input and query curve, respectively. The returned answer is either exact under , or approximated to within a factor of under~. We also consider the variants in which the location of the input curves is only fixed up to translation, and obtain similar bounds, under . As for the center problem, we study the case where the center is a line segment, i.e., we seek the line segment that represents the given set as well as possible. We present near-linear time exact algorithms under , even when the location of the input curves is only fixed up to translation. Under , we present a roughly -time exact algorithm.

22 pages, 3 figures