# Heilbronn triangle problem

$n$
In discrete geometry and discrepancy theory, the Heilbronn triangle problem is a problem of placing points in the plane, avoiding triangles of small area. It is named after Hans Heilbronn, who conjectured that, no matter how points are placed in a given area, the smallest triangle area will be at most inversely proportional to the square of the number of points. His conjecture was proven false, but the asymptotic growth rate of the minimum triangle area remains unknown.

## Definition

The Heilbronn triangle problem concerns the placement of $n$ points within a shape in the plane, such as the unit square or the unit disk, for a given number $n$. Each triple of points form the three vertices of a triangle, and among these triangles, the problem concerns the smallest triangle, as measured by area. Different placements of points will have different smallest triangles, and the problem asks: how should $n$ points be placed to maximize the area of the smallest triangle?
More formally, the shape may be assumed to be a compact set $D$ in the plane, meaning that it stays within a bounded distance from the origin and that points are allowed to be placed on its boundary. In most work on this problem, $D$ is additionally a convex set of nonzero area. When three of the placed points lie on a line, they are considered as forming a degenerate triangle whose area is defined to be zero, so placements that maximize the smallest triangle will not have collinear triples of points. The assumption that the shape is compact implies that there exists an optimal placement of $n$ points, rather than only a sequence of placements approaching optimality. The number $\Delta _{D}(n)$ may be defined as the area of the smallest triangle in this optimal placement. An example is shown in the figure, with six points in a unit square. These six points form ${\tbinom {6}{3}}=20$ different triangles, four of which are shaded in the figure. Six of these 20 triangles, with two of the shaded shapes, have area 1/8; the remaining 14 triangles have larger areas. This is the optimal placement of six points in a unit square: all other placements form at least one triangle with area 1/8 or smaller. Therefore, $\Delta _{D}(6)={\tfrac {1}{8}}$.
Although researchers have studied the value of $\Delta _{D}(n)$ for specific shapes and specific small numbers of points, Heilbronn was concerned instead about its asymptotic behavior: if the shape $D$ is held fixed, but $n$ varies, how does the area of the smallest triangle vary with $n$? That is, Heilbronn's question concerns the growth rate of $\Delta _{D}(n)$, as a function of $n$. For any two shapes $D$ and $D'$, the numbers $\Delta _{D}(n)$ and $\Delta _{D'}(n)$ differ only by a constant factor, as any placement of $n$ points within $D$ can be scaled by an affine transformation to fit within $D'$, changing the minimum triangle area only by a constant. Therefore, in bounds on the growth rate of $\Delta _{D}(n)$ that omit the constant of proportionality of that growth, the choice of $D$ is irrelevant and the subscript may be omitted.

## Heilbronn's conjecture and its disproof

Heilbronn conjectured prior to 1951 that the minimum triangle area always shrinks rapidly as a function of $n$—more specifically, inversely proportional to the square of $n$. In terms of big O notation, this can be expressed as the bound $\Delta (n)=O\left({\frac {1}{n^{2}}}\right).$
In the other direction, Paul Erdős found examples of point sets with minimum triangle area proportional to $1/n^{2}$, demonstrating that, if true, Heilbronn's conjectured bound could not be strengthened. Erdős formulated the no-three-in-line problem, on large sets of grid points with no three in a line, to describe these examples. As Erdős observed, when $n$ is a prime number, the set of $n$ points $(i,i^{2}{\bmod {n}})$ on an $n\times n$ integer grid (for $0\leq i<n$) have no three collinear points, and therefore by Pick's formula each of the triangles they form has area at least ${\tfrac {1}{2}}$. When these grid points are scaled to fit within a unit square, their smallest triangle area is proportional to $1/n^{2}$, matching Heilbronn's conjectured upper bound. If $n$ is not prime, then a similar construction using a prime number close to $n$ achieves the same asymptotic lower bound.
Komlós, Pintz & Szemerédi (1982) eventually disproved Heilbronn's conjecture, by using the probabilistic method to find sets of points whose smallest triangle area is larger than the ones found by Erdős. Their construction involves the following steps:
* Randomly place $n^{1+\varepsilon }$ points in the unit square, for some $\varepsilon >0$.
* Remove all pairs of points that are unexpectedly close together.
* Prove that there are few remaining low-area triangles and therefore only a sublinear number of cycles formed by two, three, or four low-area triangles. Remove all points belonging to these cycles.
* Apply a triangle removal lemma for 3-uniform hypergraphs of high girth to show that, with high probability, the remaining points include a subset of $n$ points that do not form any small-area triangles.
The area resulting from their construction grows asymptotically as $\Delta (n)=\Omega \left({\frac {\log n}{n^{2}}}\right).$ The proof can be derandomized, leading to a polynomial-time algorithm for constructing placements with this triangle area.

## Upper bounds

Every set of $n$ points in the unit square forms a triangle of area at most inversely proportional to $n$. One way to see this is to triangulate the convex hull of the given point set $S$, and choose the smallest of the triangles in the triangulation. Another is to sort the points by their $x$-coordinates, and to choose the three consecutive points in this ordering whose $x$-coordinates are the closest together. In the first paper published on the Heilbronn triangle problem, in 1951, Klaus Roth proved a stronger upper bound on $\Delta (n)$, of the form $\Delta (n)=O\left({\frac {1}{n{\sqrt {\log \log n}}}}\right).$ The best bound known to date is of the form $\Delta (n)\leq {\frac {\exp {\left(c{\sqrt {\log n}}\right)}}{n^{8/7}}},$ for some constant $c$, proven by Komlós, Pintz & Szemerédi (1981).
A new upper bound equal to $n^{-{\frac {8}{7}}-{\frac {1}{2000}}}$ was proven by Cohen, Pohoata & Zakharov (2023).

## Specific shapes and numbers

Goldberg (1972) has investigated the optimal arrangements of $n$ points in a square, for $n$ up to 16. Goldberg's constructions for up to six points lie on the boundary of the square, and are placed to form an affine transformation of the vertices of a regular polygon. For larger values of $n$, Comellas & Yebra (2002) improved Goldberg's bounds, and for these values the solutions include points interior to the square. These constructions have been proven optimal for up to seven points. The proof used a computer search to subdivide the configuration space of possible arrangements of the points into 226 different subproblems, and used nonlinear programming techniques to show that in 225 of those cases, the best arrangement was not as good as the known bound. In the remaining case, including the eventual optimal solution, its optimality was proven using symbolic computation techniques.
The following are the best known solutions for 7–12 points in a unit square, found through simulated annealing; the arrangement for seven points is known to be optimal.
* 7 points in a square, all 8 minimal triangles shaded ($A\approx 0.0839$)
* 8 points in a square, 5 of 12 minimal triangles shaded ($A\approx 0.0724$)
* 9 points in a square, 6 of 11 minimal triangles shaded ($A\approx 0.0549$)
* 10 points in a square, 3 of 16 minimal triangles shaded ($A\approx 0.0465$)
* 11 points in a square, 8 of 28 minimal triangles shaded ($A\approx 0.0370$)
* 12 points in a square, 3 of 20 minimal triangles shaded ($A\approx 0.0326$)
Instead of looking for optimal placements for a given shape, one may look for an optimal shape for a given number of points. Among convex shapes $D$ with area one, the regular hexagon is the one that maximizes $\Delta _{D}(6)$; for this shape, $\Delta _{D}(6)={\tfrac {1}{6}}$, with six points optimally placed at the hexagon vertices. The convex shapes of unit area that maximize $\Delta _{D}(7)$ have $\Delta _{D}(7)={\tfrac {1}{9}}$.

## Variations

There have been many variations of this problem including the case of a uniformly random set of points, for which arguments based on either Kolmogorov complexity or Poisson approximation show that the expected value of the minimum area is inversely proportional to the cube of the number of points. Variations involving the volume of higher-dimensional simplices have also been studied.
Rather than considering simplices, another higher-dimensional version adds another parameter $k$, and asks for placements of $n$ points in the unit hypercube that maximize the minimum volume of the convex hull of any subset of $k$ points. For $k=d+1$ these subsets form simplices but for larger values of $k$, relative to $d$, they can form more complicated shapes. When $k$ is sufficiently large relative to $\log n$, randomly placed point sets have minimum $k$-point convex hull volume $\Omega (k/n)$. No better bound is possible; any placement has $k$ points with volume $O(k/n)$, obtained by choosing some $k$ consecutive points in coordinate order. This result has applications in range searching data structures.