Pattern matching for sets of segments
In this paper we present algorithms for a number of problems in geometric pattern matching where the input consists of a collection of orthogonal segments in the plane. Such collections arise naturally from problems in mapping buildings and robot exploration. We propose a new criterion for segment similarity called the coverage measure, and present efficient algorithms for maximizing it between sets of axis-parallel segments under translations. In the general case, we present a procedure running in time O(n(3) log(2) n), and for the case when all segments are horizontal, we give a procedure that runs in time O(n(2) log(2) n). Here n is the number of segments. In addition, we show that an epsilon-approximation to the Hausdorff distance between two sets of horizontal segments under vertical translations can be computed in time O(n(3/2) max(poly(log M, logn, 1/epsilon))). Here, M denotes the ratio of the diameter to the closest pair of points in the sets of segments (where pairs of points lie on different segments). These algorithms are significant improvements over the general algorithm of Agarwal et a]. that required time O(n(4) log(2) n).
pattern matching orthogonal segments maximum coverage computational geometry