Optimal placement of convex polygons to maximize point containment

https://doi.org/10.1016/S0925-7721(98)00015-7Get rights and content
Under an Elsevier user license
open archive

Abstract

Given a convex polygon P with m vertices and a set S of n points in the plane, we consider the problem of finding a placement of P (allowing both translation and rotation) that contains the maximum number of points in S. We present first an algorithm requiring O(n2km2log(mn)) time and O(n + m) space, where k is the maximum number of points contained. We then give a refinement that makes use of bucketing to improve the running time to O(nk2c2m2log(mk)), where c is the ratio of length to width of the polygon. This provides an improvement over the best previously known algorithm linear in n when k is large (Θ(n)) and a cubic when k is small. We also show that the algorithm can be extended to solve bichromatic and general weighted variants of the problem. The algorithm is self-contained and utilizes the geometric properties of the containing regions in the parameter space of transformations.

Keywords

Maximizing placement
Rotation diagram

Cited by (0)

1

Supported by funds of the National Science Foundation CCR-9301714.

2

Supported by funds of the National Science Foundation IRI-9057928.