Approximating Multidimensional Subset Sum and Minkowski Decomposition of Polygons

Ioannis Z. Emiris, Anna Karasoulou, Charilaos TzovasMath. Comput. Sci 2017

Abstract

We consider the approximation of two NP-hard problems: Minkowski decomposition (MinkDecomp) of lattice polygons in the plane and the closely related problem of multidimensional subset sum (kD-SS) in arbitrary dimension. In kD-SS, a multiset S of k-dimensional vectors is given, along with a target vector t, and one must decide whether there exists a subset of S that sums up to t. We prove, through a gap-preserving reduction from Set Cover that, for general dimension k, the corresponding optimization problem kD-SS-opt is not in APX, although the classic 1D-SS-opt has a PTAS. Our approach relates kD-SS with the well studied closest vector problem. On the positive side, we present a $O(n^3/\epsilon^2)$ approximation algorithm for 2D-SS-opt, where n is the cardinality of the multiset and $\epsilon > 0$ bounds the additive error in terms of some property of the input. We state two variations of this algorithm, which are more suitable for implementation. Employing a reduction of the optimization version of MinkDecomp to 2D-SS-opt we approximate the former: For an input polygon Q and parameter $\epsilon > 0$, we compute summand polygons A and B, where $Q' = A+B$ is such that some geometric function differs on Q and $Q'$ by $O(\epsilon D)$, where D is the diameter of Q, or the Hausdorff distance between Q and $Q'$ is also in $O(\epsilon D)$. We conclude with experimental results based on our implementations.

Introduction

Computational geometry often deals with problems that are easy to state but computationally intractable. This paper explores the boundary between "easy" and "hard" approximation problems, focusing on the classic Subset Sum problem and its geometric extensions. While the 1D Subset Sum problem (1D-SS) is a textbook example of a problem with a Fully Polynomial Time Approximation Scheme (FPTAS), adding just one more dimension (2D-SS) makes it significantly harder. The authors demonstrate that 2D-SS is not in APX, meaning it cannot be approximated within a constant factor unless P=NP.

Beyond theoretical complexity, the paper addresses the practical problem of Minkowski Decomposition (MinkDecomp). This involves decomposing a lattice polygon $Q$ into two smaller polygons $A$ and $B$ such that $A+B = Q$. This operation is vital in fields like algebraic geometry for factoring bivariate polynomials, where the Newton polytope's geometry dictates the polynomial's breakdown.

Approximation Methodology

To overcome the NP-hardness of these problems, the authors propose several approximation strategies:

The "Trim" Strategy and Grid-Based Rounding

Instead of tracking every possible subset sum—which grows exponentially—the authors employ a "trimming" approach. By maintaining only a representative set of vectors and discarding those that are "close enough" in space, the search space remains manageable.

A key contribution is the $O(n^3 \epsilon^{-2})$ algorithm for 2D-SS. This method divides the plane into a regular grid. Vectors falling into a specific cell are rounded to the grid point, capping the number of candidate sums. A more sophisticated heuristic uses "annulus-slices" in polar coordinates, which the authors suspect performs even better in practice.

Circular grid-based approximation using annulus-slices in polar coordinates.

Minkowski Approximation via Edge Vectors

The polygon decomposition problem is transformed into a 2D-SS problem by analyzing the "edge vectors" of the polygon. By solving the subset sum for these edges, the algorithm reconstructs approximate summands $A$ and $B$. A significant challenge is that a subset of edges might not form a closed loop, creating a "gap." The authors resolve this by adding a single vector to close the loop, proving that the resulting error is bounded by the precision parameter $\epsilon$.

Experimental Results and Insights

The algorithms were validated using synthetic datasets. For 2D-SS, random vectors with coordinates up to 5000 were generated. For MinkDecomp, random lattice polygons were created from the convex hulls of point sets.

Key Findings

  • Dimensionality Jump: The transition from 1D to 2D represents a fundamental shift in complexity. The authors' proof that 2D-SS-opt is not in APX highlights why standard 1D techniques fail.
  • Geometric Precision: The grid-based approach returns a solution $t'$ with a distance to the target at most $\epsilon M$ (where $M$ is the maximum possible sum length).
  • Minkowski Performance: For an input polygon $Q$, the algorithm returns summands whose sum $Q'$ has a Hausdorff distance from $Q$ bounded by $O(\epsilon D)$, where $D$ is the diameter. Visually and mathematically, these approximations are very close to the originals even for polygons with up to 25 vertices.
Approximating Minkowski decomposition by selecting subsets of edge vectors.

Conclusion and Future Work

While the 2D case is effectively handled, the grid-based approach's complexity scales exponentially with dimension ($O(n \cdot (n/\epsilon)^k)$), limiting its use in high-dimensional spaces. Future work includes applying these geometric approximations to "approximate polynomial factorization"—finding a nearby factorable polynomial when an exact factorization does not exist. Additionally, the authors aim to provide a formal average-case complexity analysis for the circular-grid heuristic, which showed promising efficiency in experiments.

Summary updated

Abstract

We consider the approximation of two NP-hard problems: Minkowski decomposition (MinkDecomp) of lattice polygons in the plane and the closely related problem of multidimensional subset sum (kD-SS) in arbitrary dimension. In kD-SS, a multiset S of k-dimensional vectors is given, along with a target vector t, and one must decide whether there exists a subset of S that sums up to t. We prove, through a gap-preserving reduction from Set Cover that, for general dimension k, the corresponding optimization problem kD-SS-opt is not in APX, although the classic 1D-SS-opt has a PTAS. Our approach relates kD-SS with the well studied closest vector problem. On the positive side, we present a $$O(n^3/\epsilon ^2)$$ O ( n 3 / ϵ 2 ) approximation algorithm for 2D-SS-opt, where n is the cardinality of the multiset and $$\epsilon >0$$ ϵ > 0 bounds the additive error in terms of some property of the input. We state two variations of this algorithm, which are more suitable for implementation. Employing a reduction of the optimization version of MinkDecomp to 2D-SS-opt we approximate the former: For an input polygon Q and parameter $$\epsilon >0$$ ϵ > 0 , we compute summand polygons A and B, where $$Q' = A+B$$ Q ′ = A + B is such that some geometric function differs on Q and $$Q'$$ Q ′ by $$O(\epsilon \, D)$$ O ( ϵ D ) , where D is the diameter of Q, or the Hausdorff distance between Q and $$Q'$$ Q ′ is also in $$O(\epsilon \, D)$$ O ( ϵ D ) . We conclude with experimental results based on our implementations.
BibTeX
@inproceedings{emiris2017approximating,
  author = {Ioannis Z. Emiris and Anna Karasoulou and Charilaos Tzovas},
  title = {{Approximating Multidimensional Subset Sum and Minkowski Decomposition of Polygons}},
  booktitle = {Math. Comput. Sci},
  year = {2017},
  url = {https://openreview.net/forum?id=c94dHu7mQE},
}

Loading related content...

Figure