Flip Distance of Triangulations of Convex Polygons / Rotation Distance of Binary Trees is NP-complete

This paper resolves a decades-old open problem by proving that computing the minimum number of flips to transform one triangulation of a convex polygon into another, and equivalently the rotation distance between binary trees, is NP-hard.

Original authors: Joseph Dorfer

Published 2026-02-27✓ Author reviewed
📖 6 min read🧠 Deep dive

This is an AI-generated explanation of the paper below. It is not written by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Picture: A Puzzle That's Harder Than It Looks

Imagine you have a convex polygon (like a stop sign or a pizza slice) that has been cut into triangles by drawing lines between the corners. This is called a triangulation.

Now, imagine you have a second way of cutting that same pizza into triangles. You want to transform the first cut pattern into the second one. The only move you are allowed to make is a "flip."

The Flip Move:
Find two triangles that are stuck together to form a four-sided shape (a quadrilateral). Remove the line separating them and draw the other diagonal line instead. The shape is still made of triangles, but the pattern has changed slightly.

The Question:
What is the minimum number of flips required to turn Pattern A into Pattern B?

For decades, mathematicians knew how to count the total number of possible patterns (it's a famous number called the Catalan number), and they knew the maximum number of flips needed to get from any pattern to any other. But they didn't know if there was a fast, efficient computer algorithm to find the shortest path between two specific patterns.

The Verdict:
This paper proves that no, there is no fast algorithm. Finding the shortest path is NP-complete. In plain English, this means that as the polygon gets bigger, the time it takes to solve this puzzle grows so explosively that even the world's fastest supercomputers would take longer than the age of the universe to solve it for a moderately large polygon.


The Twin Puzzle: The Rotating Tree

The paper also mentions a "twin" problem involving Binary Trees (the kind of data structure computers use to organize information).

  • The Analogy: Imagine a family tree where every parent has two children. You can perform a "rotation," which is like swapping a parent with one of their children to change the tree's shape without losing any family members.
  • The Connection: The paper shows that flipping a triangle in a polygon is mathematically identical to rotating a branch in a tree. If you can't solve the triangle puzzle quickly, you can't solve the tree puzzle quickly either.

How Did They Prove It? (The "Blow-Up" Trick)

To prove the problem is hard, the author, Joseph Dorfer, used a clever trick involving growing the problem.

1. The Linear Representation (The Spine)

Instead of drawing a circle, imagine the polygon vertices are lined up on a straight horizontal line (a "spine"). The triangles are drawn as arches (semicircles) above and below this line.

  • The Setup: You have a "Start" pattern drawn above the line and a "Target" pattern drawn below the line.

2. The "Blow-Up" (Making it Massive)

The author takes a specific pair of patterns and performs a "blow-up."

  • The Metaphor: Imagine the line connecting two points on the spine is a single road. The author replaces that single road with a massive highway containing thousands of tiny lanes.
  • The Effect: This turns a simple triangle into a giant "fan" of thousands of tiny triangles.
  • Why do this? By making the problem huge, the author forces the computer to make a specific type of decision. It's like turning a simple maze into a labyrinth where the only way through depends on solving a logic puzzle first.

3. The Conflict Graph (The Traffic Map)

When you have these two patterns (Start and Target) with their "blown-up" fans, some edges in the Start pattern cross over edges in the Target pattern.

  • The Metaphor: Imagine a traffic map where some roads are one-way. If Road A crosses Road B, you can't drive on Road B until you've cleared Road A.
  • The author creates a Conflict Graph to map these dependencies. It's a list of rules like: "You must remove the red edge before you can add the blue edge."

4. The Logic Puzzle (Max-2SAT)

The core of the proof involves a known hard logic problem called Max-2SAT.

  • The Metaphor: Imagine you have a list of rules (clauses) like "If I eat an apple, I must drink juice" or "If I don't eat a banana, I must sleep." You want to satisfy as many rules as possible.
  • The author constructs the triangulation so that:
    • Choosing a "True" or "False" for a variable in the logic puzzle is like choosing which side of a triangle fan to keep.
    • Satisfying a "clause" in the logic puzzle is like finding a specific sequence of flips that saves you from making extra, unnecessary moves.

The "Aha!" Moment:
The author proves that the shortest path between the two triangulations is directly tied to the maximum number of logic rules you can satisfy.

  • If you can satisfy KK rules, the flip distance is short.
  • If you can only satisfy K1K-1 rules, the flip distance is much longer.

Since we already know that solving the logic puzzle (Max-2SAT) is incredibly hard, and the flip distance problem is just a disguised version of that logic puzzle, the flip distance problem must also be incredibly hard.


Why Does This Matter?

You might ask, "Who cares about flipping triangles?"

  1. It's a Fundamental Limit: This result settles a 40-year-old question. It tells us that nature (or mathematics) has a limit on how efficiently we can reorganize certain structures. We can't just "optimize" our way to the best solution quickly.
  2. It Applies Everywhere: Because triangles, binary trees, and bracketing systems (like how we group words in sentences) are all mathematically linked, this hardness applies to:
    • Computer Science: Optimizing how data is sorted or stored.
    • Chemistry: Understanding how molecules can twist and turn into different shapes.
    • Robotics: Planning how a robot arm can move from one configuration to another without hitting itself.
  3. The "Happy Edge" Rule: Sleator, Tarjan, and Thurston proved in 1986 that if an edge appears in both the start and end patterns, the optimal strategy is to keep it and never flip it. This is not just a good idea — it is provably the best thing to do. This led many to wonder: if we already know the optimal move for shared edges, does that make the whole problem easy? This paper proves the answer is no. Even with the optimal strategy for shared edges, finding the shortest sequence of flips for the remaining, non-shared edges is still NP-complete. The difficulty is entirely in the edges you don't share.

Summary in One Sentence

The paper proves that finding the most efficient way to rearrange a shape made of triangles (or a computer tree) is a puzzle so complex that solving it for large shapes is computationally impossible for standard computers, effectively placing a "speed limit" on how fast we can solve these types of geometric reconfiguration problems.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →