HOME

TheInfoList



OR:

The no-three-in-line problem in
discrete geometry Discrete geometry and combinatorial geometry are branches of geometry that study combinatorial properties and constructive methods of discrete geometric objects. Most questions in discrete geometry involve finite or discrete sets of basic geome ...
asks how many points can be placed in the n\times n grid so that no three points lie on the same line. The problem concerns lines of all slopes, not only those aligned with the grid. It was introduced by
Henry Dudeney Henry Ernest Dudeney (10 April 1857 – 23 April 1930) was an English author and mathematician who specialised in logic puzzles and mathematical games. He is known as one of the country's foremost creators of mathematical puzzles. Early life ...
in 1900. Brass, Moser, and Pach call it "one of the oldest and most extensively studied geometric questions concerning lattice points". At most 2n points can be placed, because 2n+1 points in a grid would include a row of three or more points, by the
pigeonhole principle In mathematics, the pigeonhole principle states that if items are put into containers, with , then at least one container must contain more than one item. For example, if one has three gloves (and none is ambidextrous/reversible), then there mu ...
. Although the problem can be solved with 2n points for every n up it is conjectured that fewer than 2n points can be placed in grids of large size. Known methods can place linearly many points in grids of arbitrary size, but the best of these methods place slightly fewer than 3n/2 points, Several related problems of finding points with no three in line, among other sets of points than grids, have also been studied. Although originating in
recreational mathematics Recreational mathematics is mathematics carried out for recreation (entertainment) rather than as a strictly research and application-based professional activity or as a part of a student's formal education. Although it is not necessarily limited ...
, the no-three-in-line problem has applications in
graph drawing Graph drawing is an area of mathematics and computer science combining methods from geometric graph theory and information visualization to derive two-dimensional depictions of graph (discrete mathematics), graphs arising from applications such a ...
and to the
Heilbronn triangle problem 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 ...
.


Small instances

The problem was first posed by
Henry Dudeney Henry Ernest Dudeney (10 April 1857 – 23 April 1930) was an English author and mathematician who specialised in logic puzzles and mathematical games. He is known as one of the country's foremost creators of mathematical puzzles. Early life ...
in 1900, as a puzzle in recreational mathematics, phrased in terms of placing the 16 pawns of a
chessboard A chessboard is a used to play chess. It consists of 64 squares, 8 rows by 8 columns, on which the chess pieces are placed. It is square in shape and uses two colours of squares, one light and one dark, in a chequered pattern. During play, the bo ...
onto the board so that no three are in a line. This is exactly the no-three-in-line problem, for the In a later version of the puzzle, Dudeney modified the problem, making its solution unique, by asking for a solution in which two of the pawns are on squares d4 and e5, attacking each other in the center of the board. Many authors have published solutions to this problem for small values and by 1998 it was known that 2n points could be placed on an n\times n grid with no three in a line for all n up and some larger values. The numbers of solutions (not counting reflections and rotations as distinct) for small values of n, starting are


Upper and lower bounds

The exact number of points that can be placed, as a function is not known. However, both proven and conjectured bounds limit this number to within a range proportional


General placement methods

A solution of
Paul Erdős Paul Erdős ( hu, Erdős Pál ; 26 March 1913 – 20 September 1996) was a Hungarian mathematician. He was one of the most prolific mathematicians and producers of mathematical conjectures of the 20th century. pursued and proposed problems in ...
, published by , is based on the observation that when n is a
prime number A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways ...
, the set of n grid points for contains no three collinear points. When n is not prime, one can perform this construction for a p\times p grid contained in the n\times n grid, where p is the largest prime that is at Because the gap between consecutive primes is much smaller than the primes themselves, p will always be close so this method can be used to place n-o(n) points in the n\times n grid with no three points collinear. Erdős' bound has been improved subsequently: show that, when n/2 is prime, one can obtain a solution with 3(n-2)/2 points, by placing points in multiple copies of the
hyperbola In mathematics, a hyperbola (; pl. hyperbolas or hyperbolae ; adj. hyperbolic ) is a type of smooth curve lying in a plane, defined by its geometric properties or by equations for which it is the solution set. A hyperbola has two pieces, cal ...
xy=k where k may be chosen arbitrarily as long as it is nonzero Again, for arbitrary n one can perform this construction for a prime near n/2 to obtain a solution with


Upper bound

At most 2n points may be placed in a grid of any For, if more points are placed, then by the
pigeonhole principle In mathematics, the pigeonhole principle states that if items are put into containers, with , then at least one container must contain more than one item. For example, if one has three gloves (and none is ambidextrous/reversible), then there mu ...
some three of them would all lie on the same horizontal line of the grid. For n\leq 46, this trivial bound is known to be tight.


Conjectured bounds

Although exactly 2n points can be placed on small grids, conjectured that for large grids, there is a significantly smaller
upper bound In mathematics, particularly in order theory, an upper bound or majorant of a subset of some preordered set is an element of that is greater than or equal to every element of . Dually, a lower bound or minorant of is defined to be an element ...
on the number of points that can be placed. More precisely, they conjectured that the number of points that can be placed is at most a sublinear amount larger with c = \sqrt \approx 1.874. After an error in the heuristic reasoning leading to this conjecture was uncovered, Guy corrected the error and made the stronger conjecture that one cannot do more than sublinearly better than cn with c = \frac \approx 1.814.


Applications

Solutions to the no-three-in-line problem can be used to avoid certain kinds of degeneracies in
graph drawing Graph drawing is an area of mathematics and computer science combining methods from geometric graph theory and information visualization to derive two-dimensional depictions of graph (discrete mathematics), graphs arising from applications such a ...
. The problem they apply to involves placing the vertices of a given graph at integer coordinates in the plane, and drawing the edges of the graph as straight
line segment In geometry, a line segment is a part of a straight line that is bounded by two distinct end points, and contains every point on the line that is between its endpoints. The length of a line segment is given by the Euclidean distance between ...
s. For certain graphs, such as the
utility graph As a topic of economics, utility is used to model worth or value. Its usage has evolved significantly over time. The term was introduced initially as a measure of pleasure or happiness as part of the theory of utilitarianism by moral philosopher ...
, crossings between pairs of edges are unavoidable, but one should still avoid placements that cause a vertex to lie on an edge through two other vertices. When the vertices are placed with no three in line, this kind of problematic placement cannot occur, because the entire line through any two vertices, and not just the line segment, is free of other vertices. The fact that the no-three-in-line problem has a solution with linearly many points can be translated into graph drawing terms as meaning that every graph, even a
complete graph In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices is c ...
, can be drawn without unwanted vertex-edge incidences using a grid whose area is quadratic in the number of vertices, and that for complete graphs no such drawing with less than quadratic area is possible. The complete graphs also require a linear number of colors in any
graph coloring In graph theory, graph coloring is a special case of graph labeling; it is an assignment of labels traditionally called "colors" to elements of a graph subject to certain constraints. In its simplest form, it is a way of coloring the vertices o ...
, but other graphs that can be colored with fewer colors can also be drawn on smaller grids: if a graph has n vertices and a
graph coloring In graph theory, graph coloring is a special case of graph labeling; it is an assignment of labels traditionally called "colors" to elements of a graph subject to certain constraints. In its simplest form, it is a way of coloring the vertices o ...
with k colors, it can be drawn in a grid with area proportional The no-three-in-line drawing of a complete graph is a special case of this result The no-three-in-line problem also has applications to another problem in discrete geometry, the
Heilbronn triangle problem 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 this problem, one must place n points, anywhere in a unit square, not restricted to a grid. The goal of the placement is to avoid small-area triangles, and more specifically to maximize the area of the smallest triangle formed by three of the points. For instance, a placement with three points in line would be very bad by this criterion, because these three points would form a degenerate triangle with area zero. On the other hand, if the points can be placed on a grid of side length \varepsilon within the unit square, with no three in a line, then by
Pick's theorem In geometry, Pick's theorem provides a formula for the area of a simple polygon with integer vertex coordinates, in terms of the number of integer points within it and on its boundary. The result was first described by Georg Alexander Pick in 18 ...
every triangle would have area at half of a grid square. Therefore, solving an instance of the no-three-in-line problem and then scaling down the integer grid to fit within a unit square produces solutions to the Heilbronn triangle problem where the smallest triangle has area This application was the motivation for Paul Erdős to find his solution for the no-three-in-line problem. It remained the best area lower bound known for the Heilbronn triangle problem from 1951 until 1982, when it was improved by a logarithmic factor using a construction that was not based on the no-three-in-line problem.


Generalizations and variations


General-position subsets

In
computational geometry Computational geometry is a branch of computer science devoted to the study of algorithms which can be stated in terms of geometry. Some purely geometrical problems arise out of the study of computational geometric algorithms, and such problems ar ...
, finite sets of points with no three in line are said to be in
general position In algebraic geometry and computational geometry, general position is a notion of genericity for a set of points, or other geometric objects. It means the ''general case'' situation, as opposed to some more special or coincidental cases that ar ...
. In this terminology, the no-three-in-line problem seeks the largest subset of a grid that is in general position, but researchers have also considered the problem of finding the largest general position subset of other non-grid sets of points. It is
NP-hard In computational complexity theory, NP-hardness ( non-deterministic polynomial-time hardness) is the defining property of a class of problems that are informally "at least as hard as the hardest problems in NP". A simple example of an NP-hard pr ...
to find this subset, for certain input sets, and hard to
approximate An approximation is anything that is intentionally similar but not exactly equal to something else. Etymology and usage The word ''approximation'' is derived from Latin ''approximatus'', from ''proximus'' meaning ''very near'' and the prefix ' ...
its size to within a constant factor; this hardness of approximation result is summarized by saying that the problem is
APX-hard In computational complexity theory, the class APX (an abbreviation of "approximable") is the set of NP optimization problems that allow polynomial-time approximation algorithms with approximation ratio bounded by a constant (or constant-factor ap ...
. If the largest subset has a solution with the non-constant
approximation ratio An approximation is anything that is intentionally similar but not exactly equal to something else. Etymology and usage The word ''approximation'' is derived from Latin ''approximatus'', from ''proximus'' meaning ''very near'' and the prefix ' ...
O(\sqrt k) can be obtained by a
greedy algorithm A greedy algorithm is any algorithm that follows the problem-solving heuristic of making the locally optimal choice at each stage. In many problems, a greedy strategy does not produce an optimal solution, but a greedy heuristic can yield locally ...
that simply chooses points one at a time until all remaining points lie on lines through pairs of chosen points. One can get a finer-grained understanding of the running time of algorithms for finding the exact optimal solution by using
parameterized complexity In computer science, parameterized complexity is a branch of computational complexity theory that focuses on classifying computational problems according to their inherent difficulty with respect to ''multiple'' parameters of the input or output. T ...
, in which algorithms are analyzed not only in terms of the input size, but in terms of other parameters of the input. In this case, for inputs whose largest general position subset has it can be found in an amount of time that is an exponential function of k multiplied by a polynomial in the input with the exponent of the polynomial not depending Problems with this kind of time bound are called
fixed-parameter tractable In computer science, parameterized complexity is a branch of computational complexity theory that focuses on classifying computational problems according to their inherent difficulty with respect to ''multiple'' parameters of the input or output. T ...
. For point sets S having at most \ell points per line, with there exist general-position subsets of size nearly proportional The example of the grid shows that this bound cannot be significantly improved. The proof of existence of these large general-position subsets can be converted into a
polynomial-time In computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations performed by t ...
algorithm for finding a general-position subset of size matching the existence bound, using an algorithmic technique known as
entropy compression In mathematics and theoretical computer science, entropy compression is an information theory, information theoretic method for proving that a random process terminates, originally used by Robin Moser to prove an Algorithmic Lovász local lemma, alg ...
.


Greedy placement

Repeating a suggestion of ,
Martin Gardner Martin Gardner (October 21, 1914May 22, 2010) was an American popular mathematics and popular science writer with interests also encompassing scientific skepticism, micromagic, philosophy, religion, and literatureespecially the writings of Lewis ...
asked for the smallest subset of an n\times n grid that cannot be extended: it has no three points in a line, but every proper
superset In mathematics, set ''A'' is a subset of a set ''B'' if all elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset of ...
has three in a line. Equivalently, this is the smallest set that could be produced by a
greedy algorithm A greedy algorithm is any algorithm that follows the problem-solving heuristic of making the locally optimal choice at each stage. In many problems, a greedy strategy does not produce an optimal solution, but a greedy heuristic can yield locally ...
that tries to solve the no-three-in-line problem by placing points one at a time until it gets stuck. If only axis-parallel and diagonal lines are considered, then every such set has at least n-1 points. However, less is known about the version of the problem where all lines are considered: every greedy placement includes at least \Omega(n^) points before getting stuck, but nothing better than the trivial 2n upper bound is known.


Higher dimensions

Non-collinear sets of points in the three-dimensional grid were considered by . They proved that the maximum number of points in the n\times n\times n grid with no three points collinear Similarly to Erdős's 2D construction, this can be accomplished by using points where p is a prime congruent to . Just as the original no-three-in-line problem can be used for two-dimensional graph drawing, one can use this three-dimensional solution to draw graphs in the three-dimensional grid. Here the non-collinearity condition means that a vertex should not lie on a non-adjacent edge, but it is normal to work with the stronger requirement that no two edges cross.; ; In much higher dimensions, sets of grid points with no three in line, obtained by choosing points near a
hypersphere In mathematics, an -sphere or a hypersphere is a topological space that is homeomorphic to a ''standard'' -''sphere'', which is the set of points in -dimensional Euclidean space that are situated at a constant distance from a fixed point, cal ...
, have been used for finding large
Salem–Spencer set In mathematics, and in particular in arithmetic combinatorics, a Salem-Spencer set is a set of numbers no three of which form an arithmetic progression. Salem–Spencer sets are also called 3-AP-free sequences or progression-free sets. They have a ...
s, sets of integers with no three forming an arithmetic progression. However, it does not work well to use this same idea of choosing points near a circle in two dimensions: this method finds points forming convex polygons, which satisfy the requirement of having no three in line, but are too small. The largest convex polygons with vertices in an n\times n grid have only O(n^) vertices. The
cap set In affine geometry, a cap set is a subset of \mathbb_3^n (an n-dimensional affine space over a three-element field) with no three elements in a line. The cap set problem is the problem of finding the size of the largest possible cap set, as a func ...
problem concerns a similar problem to the no-three-in-line problem in spaces that are both high-dimensional, and based as
vector space In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called ''vectors'', may be added together and multiplied ("scaled") by numbers called '' scalars''. Scalars are often real numbers, but can ...
s over
finite field In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field that contains a finite number of elements. As with any field, a finite field is a set on which the operations of multiplication, addition, subtr ...
s rather than over the integers. Another generalization to higher dimensions is to find as many points as possible in a three dimensional N \times N \times N grid such that no four of them are in the same plane. This sequence begins 5, 8, 10, 13, 16, ... for , etc.


Torus

Another variation on the problem involves converting the grid into a discrete
torus In geometry, a torus (plural tori, colloquially donut or doughnut) is a surface of revolution generated by revolving a circle in three-dimensional space about an axis that is coplanar with the circle. If the axis of revolution does not tou ...
by using
periodic boundary conditions Periodic boundary conditions (PBCs) are a set of boundary conditions which are often chosen for approximating a large (infinite) system by using a small part called a ''unit cell''. PBCs are often used in computer simulations and mathematical mode ...
in which the left side of the torus is connected to the right side, and the top side is connected to the bottom side. This has the effect, on slanted lines through the grid, of connecting them up into longer lines through more points, and therefore making it more difficult to select points with at most two from each line. These extended lines can also be interpreted as normal lines through an infinite grid in the Euclidean plane, taken modulo the dimensions of the torus. For a torus based on an m\times n grid, the maximum number of points that can be chosen with no three in line is at most When both dimensions are equal, and prime, it is not possible to place exactly one point in each row and column without forming a linear number of collinear triples. Higher-dimensional torus versions of the problem have also been studied.


See also

*
Eight queens puzzle The eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other; thus, a solution requires that no two queens share the same row, column, or diagonal. There are 92 solutions. ...
, on placing points on a grid with no two on the same row, column, or diagonal


Notes


References

* * * * * * * * * Solution
p. 222
Originally published in the London ''Tribune'', November 7, 1906. * * * * * * * * * * * * * * * * * * * * * * * * *


External links

* * {{mathworld , title = No-Three-in-a-Line-Problem , urlname = No-Three-in-a-Line-Problem Combinatorics Lattice points Conjectures Mathematical problems