Skip to main content
QUICK REVIEW

[Paper Review] A linear-time algorithm for the maximum-area inscribed triangle in a convex polygon

Yoav Kallus|arXiv (Cornell University)|Jun 9, 2017
Computational Geometry and Mesh GenerationComputer Science3 references7 citations
TL;DR

This paper presents a linear-time algorithm to compute the maximum-area triangle inscribed in a convex polygon with n vertices, correcting a flawed O(n) algorithm by Dobkin and Snyder. By leveraging anchored triangles—those with one side parallel to a fixed direction—the method efficiently explores candidate triangles using geometric properties and convex optimization, achieving O(n) time complexity, which resolves a long-standing open problem in computational geometry.

ABSTRACT

Given the n vertices of a convex polygon in cyclic order, can the triangle of maximum area inscribed in P be determined by an algorithm with O(n) time complexity? A purported linear-time algorithm by Dobkin and Snyder from 1979 has recently been shown to be incorrect by Keikha, Löffler, Urhausen, and van der Hoog. These authors give an alternative algorithm with O(n log n) time complexity. Here we give an algorithm with linear time complexity.

Motivation & Objective

  • To resolve the open problem of whether the maximum-area inscribed triangle in a convex n-gon can be computed in O(n) time.
  • To correct the flawed O(n) algorithm proposed by Dobkin and Snyder (1979), which was recently shown to fail on certain 9-gons.
  • To develop a correct and efficient algorithm with O(n) time complexity for the maximum-area inscribed triangle problem.
  • To introduce and exploit the concept of anchored triangles—triangles maximized for a fixed direction of the normal to one edge—as a key structural tool.
  • To demonstrate that the maximum-area inscribed triangle must have all three vertices on the polygon boundary, and that it is uniquely anchored to the outer normals of its edges.

Proposed method

  • Define anchored triangles as those with a fixed outer normal direction to one edge and maximal area among all such triangles with that normal.
  • Use the geometric property that for a fixed direction u, the triangle anchored to u has its third vertex at the point where the supporting line in direction -u touches the polygon.
  • Parameterize the search over directions u ∈ S¹ and exploit the piecewise constant nature of the anchor vertex a(u) and continuity of b(u), c(u) to enable efficient traversal.
  • Apply a rotating calipers-style technique that incrementally updates triangle vertices as the direction u rotates, using piecewise linear functions f(y) and g(y) to represent the extent of the polygon in the direction perpendicular to u.
  • Use convexity of the area function s(y) = √[(1/2)(y - y_min)(f(y) + g(y))] to ensure that local maxima are global, enabling efficient optimization.
  • Implement a dual-pointer traversal over the polygon vertices, dynamically adjusting parameters s_b and s_c to track the optimal triangle as the direction rotates, using closed-form expressions for critical transition points.

Experimental results

Research questions

  • RQ1Can the maximum-area inscribed triangle in a convex n-gon be computed in O(n) time?
  • RQ2Why does the Dobkin-Snyder algorithm fail, and what structural flaw undermines its correctness?
  • RQ3Can the problem be solved in linear time by redefining the subproblem from rooted triangles to anchored triangles?
  • RQ4What geometric properties ensure that the maximum-area inscribed triangle is uniquely determined by its edge normals and vertex positions?
  • RQ5How can the piecewise linear and convex structure of the polygon's support functions be exploited to achieve O(n) complexity?

Key findings

  • The paper presents a correct O(n)-time algorithm for computing the maximum-area inscribed triangle in a convex polygon, resolving a long-standing open problem in computational geometry.
  • The algorithm is based on the concept of anchored triangles, where the triangle is maximal for a fixed direction of the outer normal to one edge.
  • The maximum-area triangle is always anchored to the outer normals of its three edges, and all three vertices are vertices of the polygon.
  • The method achieves O(n) time complexity by traversing the polygon's vertices in a rotating calipers fashion, using closed-form expressions for critical transition points in the parameterized triangle vertices.
  • The algorithm correctly handles edge cases such as when the anchor vertex a(u) lies on an edge of the polygon, by selecting the counter-clockwise endpoint as the unique representative.
  • The approach avoids the O(n log n) complexity of prior methods by focusing on anchored triangles rather than rooted triangles, leading to a more efficient and correct solution.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.