Abstract
Given two triangulations of a convex polygon, computing the minimum number of flips required to transform one to the other is a long-standing open problem. It is not known whether the problem is in P or NP-complete. We prove that two natural generalizations of the problem are NP-complete, namely computing the minimum number of flips between two triangulations of (1) a polygon with holes; (2) a set of points in the plane.
Introduction
In computational geometry, a triangulation is a fundamental method of partitioning a shape or a set of points into non-overlapping triangles. A flip is a local operation: given two triangles forming a convex quadrilateral, the shared diagonal is removed and replaced with the opposite one.
While it is well-established that any triangulation can be transformed into any other through a sequence of flips, the "Flip Distance" problem—determining the minimum number of flips required—remains a significant challenge. For a convex polygon, this problem is mathematically equivalent to the rotation distance between two binary search trees (BSTs), a core metric in data structure theory and bioinformatics. This paper addresses the complexity of this problem by examining more generalized geometric contexts.
Proving NP-Completeness via Reduction
The authors demonstrate that calculating flip distance is NP-complete for point sets and polygons with holes. They achieve this through a polynomial-time reduction from the "Vertex Cover" problem, a known NP-complete problem. The reduction relies on the construction of specialized geometric "gadgets."
Geometric Gadgets: Channels and Caps
The proof utilizes two primary components:
- Channels: These are long, narrow polygonal paths. The authors show that transforming the triangulation of a standard channel from one state to another is computationally "expensive," requiring a specific number of flips (e.g., 36).
- Vertex Gadgets (Locks and Caps): These gadgets represent the vertices of the original graph. An "unlocked" vertex gadget provides a "cap"—an additional visible vertex—to an adjacent channel.
The "Aha" Mechanic
The critical insight of the proof is the quantitative impact of a "cap." The authors prove that if a channel is "capped" by an adjacent vertex gadget, the cost to transform its triangulation significantly decreases (from 36 flips to 28).
By constructing a system where minimizing the total flip count necessitates "unlocking" the minimum number of vertex gadgets to cap all channels, the geometric problem is mapped directly onto the Vertex Cover problem.
Key Results and Insights
- Theorem 1: Computing the flip distance between two triangulations of a polygonal region with holes is NP-complete.
- Theorem 2: Computing the flip distance between two triangulations of a set of points in the plane is NP-complete.
- Complexity Mapping: The problem is shown to be in NP (a sequence of $k$ flips is easily verifiable) and NP-hard (as difficult as any problem in the NP class).
- Structural Logic: By moving from simple convex polygons to polygons with holes, the authors created the necessary structural "room" to build logic gates from triangles.
- Grid Constraints: The authors proved these gadgets can be embedded on a polynomial-sized grid without violating geometric constraints, such as creating non-convex quadrilaterals that would prevent flipping.
Conclusion and Future Work
This research settles a major complexity question for generalized triangulations. However, the complexity of the flip distance for a simple convex polygon remains an open "Holy Grail" in the field. Since this version is equivalent to BST rotation distance, it is a pivotal problem at the intersection of geometry and data structures. Future research may explore whether these gadget-based techniques can be adapted to simpler polygons or unlabeled maximal planar graphs.
Summary updated