Polygon Placement Revisited: (Degree of Freedom + 1)-SUM Hardness and an Improvement via Offline Dynamic Rectangle Union

Marvin Künnemann, André Nusser

TL;DR

This paper establishes a fundamental link between the "degrees of freedom" (DoF) in polygon placement problems and their computational complexity. The authors prove that for each additional transformation allowed—such as scaling, translation, or rotation—the problem's hardness increases by one level in the $k$SUM hierarchy, while also introducing a faster algorithm for translation-based placement using offline dynamic rectangle union techniques.

What Problem Does This Paper Address?

The core question is a classic in computational geometry: Given two simple polygons, $P$ and $Q$, what is the largest copy of $P$ that can be placed inside $Q$? Depending on the application (like motion planning or manufacturing), you might be allowed to translate $P$, rotate it, or scale it.

While this sounds simple, finding the optimal placement is computationally expensive. Previous research established that even for basic cases, algorithms often require high polynomial running times. The authors set out to determine exactly how hard these problems are under the lens of fine-grained complexity—specifically, whether the number of ways a polygon can move (its degrees of freedom) directly dictates its minimum required processing time.

Methods

The authors employ two primary strategies: conditional lower bounds and algorithmic improvements.

  1. Hardness Reductions: To prove lower bounds, they reduce the $k$SUM problem to polygon placement. The $k$SUM problem asks if there are $k$ integers (one from each of $k$ sets) that sum to zero. It is a benchmark in complexity theory, with the $k$SUM conjecture stating that no algorithm can solve it significantly faster than $O(n^{\lceil k/2 \rceil})$. By designing "set gadgets"—polygonal structures with specific "prongs" representing numbers—the authors show that fitting $P$ into $Q$ is equivalent to solving a $k$SUM instance.
  2. Algorithmic Improvement: For the case of scaling and translation, they reduce the problem to Offline Dynamic Rectangle Cover. They treat the set of "forbidden" translations (where $P$ would overlap with the exterior of $Q$) as a collection of rectangles that change as the scaling factor $\lambda$ varies. They then use an efficient data structure for maintaining the area of a union of rectangles to find the largest $\lambda$ where a "hole" (a valid placement) still exists.

Datasets

Not discussed in the paper. This is a theoretical work focused on complexity analysis and algorithmic design rather than empirical benchmarking on specific datasets.

Key Insights and Ideas

  • The (DoF + 1)-SUM Rule: The most striking insight is the natural progression of hardness. Each degree of freedom (scaling, $x$-translation, $y$-translation, rotation) corresponds to one summand in a $k$SUM instance.
  • Scaling + $x$-translation (2 DoF) $\rightarrow$ 3SUM-hard.
  • Scaling + $x,y$-translation (3 DoF) $\rightarrow$ 4SUM-hard.
  • Scaling + $x,y$-translation + rotation (4 DoF) $\rightarrow$ 5SUM-hard.
  • Gadget Design: The authors created ingenious "prong" gadgets. For the 3SUM case, three prongs with specific spacing represent the three numbers in the sum. For rotation, they developed a "wheel-like" structure where rotation selects which group of prongs to test against the environment.
The "wheel-like" structure used to prove 5SUM hardness when rotation is allowed.
  • Rank Space Transformation: Even though scaling $\lambda$ is a continuous variable, the combinatorial structure of the "forbidden" rectangles only changes at a discrete number of "critical values" ($O((pq)^2)$). By working in "rank space," the authors can use discrete dynamic algorithms to solve a continuous optimization problem.

Key Results

  • Hardness Bounds:
    • Finding the largest $x$-translated copy requires $n^{2-o(1)}$ time (under 3SUM).
  • Finding the largest arbitrarily translated copy requires $n^{2-o(1)}$ time (under 4SUM).
  • Finding the largest rotated and translated copy requires $n^{3-o(1)}$ time (under 5SUM).
  • New Algorithm: They provide an $\tilde{O}((pq)^{2.5})$-time algorithm for the scaling and translation case (where $p$ and $q$ are the number of vertices in $P$ and $Q$). This is nearly tight against the 4SUM lower bound when one polygon has constant size ($p = O(1)$).
3SUM reduction gadget encoding a set of integers into a polygon with prongs.

Limitations and Future Work

  • The Gap: There remains a small gap between the $\tilde{O}(q^{2.5})$ upper bound and the $q^{2-o(1)}$ lower bound for the translation case. Closing this gap is a clear next step.
  • Polygon Types: Most of the hardness results use orthogonal (rectilinear) polygons. While some results extend to convex polygons, proving similar high-order $k$SUM hardness for strictly convex shapes remains an open challenge.
  • Generalization: The authors suggest exploring whether these "degree of freedom" patterns hold for other geometric optimization problems beyond simple polygon placement.

Summary updated

BibTeX
@inproceedings{kunnemann2022polygon,
  author = {Marvin Künnemann and André Nusser},
  title = {{Polygon Placement Revisited: (Degree of Freedom + 1)-SUM Hardness and an Improvement via Offline Dynamic Rectangle Union}},
  booktitle = {SODA},
  year = {2022},
  doi = {10.1137/1.9781611977073.124},
}
Figure