Convex Polygon Containment: Improving Quadratic to Near Linear Time

Timothy M. Chan, Isaac M. Hair

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

We revisit a standard polygon containment problem: given a convex k-gon P and a convex n-gon Q in the plane, find a placement of P inside Q under translation and rotation (if it exists), or more generally, find the largest copy of P inside Q under translation, rotation, and scaling. Previous algorithms by Chazelle (1983), Sharir and Toledo (1994), and Agarwal, Amenta, and Sharir (1998) all required Ω(n2) time, even in the simplest k = 3 case. We present a significantly faster new algorithm for k = 3 achieving O(n polylog n) running time. Moreover, we extend the result for general k, achieving O(kO(1/ε)n1+ε) running time for any ε > 0. Along the way, we also prove a new O(kO(1)n polylog n) bound on the number of similar copies of P inside Q that have 4 vertices of P in contact with the boundary of Q (assuming general position input), disproving a conjecture by Agarwal, Amenta, and Sharir (1998).

Original languageEnglish (US)
Title of host publication40th International Symposium on Computational Geometry, SoCG 2024
EditorsWolfgang Mulzer, Jeff M. Phillips
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (Electronic)9783959773164
DOIs
StatePublished - Jun 2024
Externally publishedYes
Event40th International Symposium on Computational Geometry, SoCG 2024 - Athens, Greece
Duration: Jun 11 2024Jun 14 2024

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume293
ISSN (Print)1868-8969

Conference

Conference40th International Symposium on Computational Geometry, SoCG 2024
Country/TerritoryGreece
CityAthens
Period6/11/246/14/24

Keywords

  • Polygon containment
  • convex polygons
  • rotations
  • translations

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'Convex Polygon Containment: Improving Quadratic to Near Linear Time'. Together they form a unique fingerprint.

Cite this