ArticleslgStudy

mathematics

Happy ending problem

Happy ending problem is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Happy ending problem rather than just read about it. In short: In mathematics, the "happy ending problem" (so named by Paul Erdős because it led to the marriage of mathematicians George Szekeres and Esther Klein) is the following statement: This was one of the original results that led to the development of Ramsey theory. The happy ending theorem can be proven by a simple case analysis: if four or more points are vertices of the convex hull, any four such points can be chosen.

Happy ending problem — main illustration
Happy ending problem — illustration

Key takeaways

  • Happy ending problem belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Happy ending problem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Happy ending problem from memory before moving on to harder problems.

Reference excerpt

In mathematics, the "happy ending problem" (so named by Paul Erdős because it led to the marriage of mathematicians George Szekeres and Esther Klein) is the following statement:

This was one of the original results that led to the development of Ramsey theory. The happy ending theorem can be proven by a simple case analysis: if four or more points are vertices of the convex hull, any four such points can be chosen. If on the other hand, the convex hull has the form of a triangle with two points inside it, the two inner points and one of the triangle sides can be chosen. See Peterson (2000) for an illustrated explanation of this proof, and Morris & Soltan (2000) for a more detailed survey of the problem. The Erdős–Szekeres conjecture states precisely a more general relationship between the number of points in a general-position point set and its largest subset forming a convex polygon, namely that the smallest number of points for which any general position arrangement contains a convex subset of n points is 2n−2+1. It remains unproven, but less precise bounds are known.

Larger polygons

Erdős & Szekeres (1935) proved the following generalisation:

The proof appeared in the same paper that proves the Erdős–Szekeres theorem on monotonic subsequences in sequences of numbers. Let f(N) denote the minimum M for which any set of M points in general position must contain a convex N-gon. It is known that

f(3) = 3, trivially. f(4) = 5. f(5) = 9. A set of eight points with no convex pentagon is shown in the illustration, demonstrating that f(5) > 8; the more difficult part of the proof is to show that every set of nine points in general position contains the vertices of a convex pentagon. f(6) = 17. The value of f(N) is unknown for all N > 6. By the result of Erdős & Szekeres (1935), f(N) is known to be finite for all finite N. On the basis of the known values of f(N) for N = 3, 4 and 5, Erdős and Szekeres conjectured in their original paper that

f(N)=1+2N−2for all N≥3. They proved later, by constructing explicit examples, that f(N)≥1+2N−2. In 2016 Andrew Suk showed that for N ≥ 7 f(N)≤2N+o(N). Suk actually proves, for N sufficiently large, f(N)≤2N+6N2/3log⁡N. This was subsequently improved to: f(N)≤2N+O(Nlog⁡N).

Empty convex polygons There is also the question of whether any sufficiently large set of points in general position has an "empty" convex quadrilateral, pentagon, etc., that is, one that contains no other input point. The original solution to the happy ending problem can be adapted to show that any five points in general position have an empty convex quadrilateral, as shown in the illustration, and any ten points in general position have an empty convex pentagon. However, there exist arbitrarily large sets of points in general position that contain no empty convex heptagon. Let N be the minimum number of points, such that any N points in general position contains an empty hexagon. For a long time it is open whether N exists. The question is now solved:

Overmars (2003) showed that if it exists, then N≥30, by constructing an example with 29 points. Nicolás (2007) showed that N≤f(25). Gerken (2008) showed that N≤f(9). Valtr (2008) made a simpler but looser version of Gerken (2008), to show that N≤f(15). Heule & Scheucher (2024) showed, by using a SAT solving approach, that N=30.

Related problems The problem of finding sets of n points minimizing the number of convex quadrilaterals is equivalent to minimizing the crossing number in a straight-line drawing of a complete graph. The number of quadrilaterals must be proportional to the fourth power of n, but the precise constant is not known. It is straightforward to show that, in higher-dimensional Euclidean spaces, sufficiently large sets of points will have a subset of k points that forms the vertices of a convex polytope, for any k greater than the dimension: this follows immediately from existence of convex k-gons in sufficiently large planar point sets, by projecting the higher-dimensional point set into an arbitrary two-dimensional subspace. However, the number of points necessary to find k points in convex position may be smaller in higher dimensions than it is in the plane, and it is possible to find subsets that are more highly constrained. In particular, in d dimensions, every d + 3 points in general position have a subset of d + 2 points that form the vertices of a cyclic polytope. More generally, for every d and k > d there exists a number m(d, k) such that every set of m(d, k) points in general position has a subset of k points that form the vertices of a neighborly polytope.

"Happy ending" According to George Szekeres, who discussed the problem with his future wife Esther Klein early in their relationship, "it was Paul Erdös who called it the 'Happy Ending'". They became friends in 1933 and married in 1937, and Szekeres says the reason they got married was not entirely because of their work on the problem.

Notes

References

External links Happy ending problem and Ramsey-theoretic proof of the Erdős-Szekeres theorem on PlanetMath Weisstein, Eric W., "Happy End Problem", MathWorld

Illustrations

Happy ending problem: The happy ending problem: every set of five points in general position contains the vertices of a convex quadrilateral
The happy ending problem: every set of five points in general position contains the vertices of a convex quadrilateral
Happy ending problem: A set of eight points in general position with no convex pentagon
A set of eight points in general position with no convex pentagon
Happy ending problem: A set of sixteen points in general position with no convex hexagon
A set of sixteen points in general position with no convex hexagon

Worked examples

Example 1 — a first encounter with Happy ending problem

Start with the simplest possible case. Write down what Happy ending problem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Happy ending problem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Happy ending problem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Happy ending problem

In research
Happy ending problem appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Happy ending problem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Happy ending problem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Discrete geometry, Euclidean plane geometry, Mathematical problems, so understanding it makes those chapters shorter.
In everyday life
Look for Happy ending problem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Happy ending problem” →

How to study Happy ending problem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Happy ending problem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Happy ending problem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Happy ending problem in simple terms?

In mathematics, the "happy ending problem" (so named by Paul Erdős because it led to the marriage of mathematicians George Szekeres and Esther Klein) is the following statement: This was one of the original results that led to the development of Ramsey theory. The happy ending theorem can be proven…

Why does Happy ending problem matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Happy ending problem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Happy ending problem.

Tags

  • Discrete geometry
  • Euclidean plane geometry
  • Mathematical problems
  • Paul Erdős
  • Polygons
  • Quadrilaterals
  • Ramsey theory

Keep exploring