Ham sandwich theorem
In mathematical measure theory, for every positive integer the ham sandwich theorem states that given measurable "objects" in -dimensional Euclidean space, it is possible to divide all of them in half with a single -dimensional hyperplane.
It was proposed by Hugo Steinhaus and proved by Stefan Banach, and also years later called the Stone–Tukey theorem after Arthur H. Stone and John Tukey.
Naming
The ham sandwich theorem takes its name from the case when and the three objects to be bisected are the ingredients of a ham sandwich. Sources differ on whether these three ingredients are two slices of bread and a piece of ham, bread and cheese and ham, or bread and butter and ham. In two dimensions, the theorem is known as the pancake theorem to refer to the flat nature of the two objects to be bisected by a line.History
According to, the earliest known paper about the ham sandwich theorem, specifically the case of bisecting three solids with a plane, is by. Beyer and Zardecki's paper includes a translation of the 1938 paper. It attributes the posing of the problem to Hugo Steinhaus, and credits Stefan Banach as the first to solve the problem, by a reduction to the Borsuk–Ulam theorem. The paper poses the problem in two ways: first, formally, as "Is it always possible to bisect three solids, arbitrarily located, with the aid of an appropriate plane?" and second, informally, as "Can we place a piece of ham under a meat cutter so that meat, bone, and fat are cut in halves?" Later, the paper offers a proof of the theorem.A more modern reference is, which is the basis of the name "Stone–Tukey theorem". This paper proves the -dimensional version of the theorem in a more general setting involving measures. The paper attributes the case to Stanislaw Ulam, based on information from a referee; but claim that this is incorrect, given Steinhaus's paper, although "Ulam did make a fundamental contribution in proposing" the Borsuk–Ulam theorem.
Two-dimensional variant: proof using a rotating-knife
The two-dimensional variant of the theorem can be proved by an argument which appears in the fair cake-cutting literature.For each angle, we can bisect pancake #1 using a straight line in angle .
This means that we can take a straight knife, rotate it at every angle and translate it appropriately for that particular angle, such that pancake #1 is bisected at each angle and corresponding translation.
When the knife is at angle 0, it also cuts pancake #2, but the pieces are probably unequal. Define the 'positive' side of the knife as the side in which the fraction of pancake #2 is larger. Define as the fraction of pancake #2 at the positive side of the knife. Initially.
When the knife is at angle 180, the knife is upside-down, so. By the intermediate value theorem, there must be an angle in which. Cutting at that angle bisects both pancakes simultaneously.
''n''-dimensional variant: proof using the Borsuk–Ulam theorem
The ham sandwich theorem can be proved as follows using the Borsuk–Ulam theorem. This proof follows the one described by Steinhaus and others, attributed there to Stefan Banach, for the case. In the field of Equivariant topology, this proof would fall under the configuration-space/tests-map paradigm.Let denote the objects that we wish to simultaneously bisect. Let be the unit -sphere embedded in -dimensional Euclidean space, centered at the origin. For each point on the surface of the sphere, we can define a continuum of oriented affine hyperplanes perpendicular to the vector from the origin to, with the "positive side" of each hyperplane defined as the side pointed to by that vector. By the intermediate value theorem, every family of such hyperplanes contains at least one hyperplane that bisects the bounded object : at one extreme translation, no volume of is on the positive side, and at the other extreme translation, all of 's volume is on the positive side, so in between there must be a translation that has half of 's volume on the positive side. If there is more than one such hyperplane in the family, we can pick one canonically by choosing the midpoint of the interval of translations for which is bisected. Thus we obtain, for each point on the sphere, a hyperplane that is perpendicular to the vector from the origin to and that bisects.
Now we define a function from the -sphere to -dimensional Euclidean space as follows:
This function is continuous. By the Borsuk–Ulam theorem, there are antipodal points and on the sphere such that. Antipodal points and correspond to hyperplanes and that are equal except that they have opposite positive sides. Thus, means that the volume of is the same on the positive and negative side of , for. Thus, is the desired ham sandwich cut that simultaneously bisects the volumes of.
Measure theoretic versions
In measure theory, proved two more general forms of the ham sandwich theorem. Both versions concern the bisection of subsets of a common set, where has a Carathéodory outer measure and each has finite outer measure.Their first general formulation is as follows: for any suitably restricted real function, there is a point of the -sphere such that the surface, dividing into and, simultaneously bisects the outer measure of. The proof is again a reduction to the Borsuk-Ulam theorem. This theorem generalizes the standard ham sandwich theorem by letting.
Their second formulation is as follows: for any measurable functions over that are linearly independent over any subset of of positive measure, there is a linear combination such that the surface, dividing into and, simultaneously bisects the outer measure of. This theorem generalizes the standard ham sandwich theorem by letting and letting, for, be the -th coordinate of.
Discrete and computational geometry versions
In discrete geometry and computational geometry, the ham sandwich theorem usually refers to the special case in which each of the sets being divided is a finite set of points. Here the relevant measure is the counting measure, which simply counts the number of points on either side of the hyperplane. In two dimensions, the theorem can be stated as follows:There is an exceptional case when points lie on the line. In this situation, we count each of these points as either being on one side, on the other, or on neither side of the line, i.e. "bisecting" in fact means that each side contains less than half of the total number of points. This exceptional case is actually required for the theorem to hold, of course when the number of red points or the number of blue is odd, but also in specific configurations with even numbers of points, for instance when all the points lie on the same line and the two colors are separated from each other. A situation where the numbers of points on each side cannot match each other is provided by adding an extra point out of the line in the previous configuration.
In computational geometry, this ham sandwich theorem leads to a computational problem, the ham sandwich problem. In two dimensions, the problem is this: given a finite set of points in the plane, each colored "red" or "blue", find a ham sandwich cut for them. First, described an algorithm for the special, separated case. Here all red points are on one side of some line and all blue points are on the other side, a situation where there is a unique ham sandwich cut, which Megiddo could find in linear time. Later, gave an algorithm for the general two-dimensional case; the running time of their algorithm is, where the symbol indicates the use of Big O notation. Finally, found an optimal -time algorithm. This algorithm was extended to higher dimensions by where the running time is. Given sets of points in general position in -dimensional space, the algorithm computes a -dimensional hyperplane that has an equal number of points of each of the sets in both of its half-spaces, i.e., a ham-sandwich cut for the given points. If is a part of the input, then no polynomial time algorithm is expected to exist, as if the points are on a moment curve, the problem becomes equivalent to necklace splitting, which is PPA-complete.
A linear-time algorithm that area-bisects two disjoint convex polygons
is described by
Generalizations
The original theorem works for at most collections, where is the number of dimensions. If we want to bisect a larger number of collections without going to higher dimensions, we can use, instead of a hyperplane, an algebraic surface of degree, i.e., an –dimensional surface defined by a polynomial function of degree :Given measures in an –dimensional space, there exists an algebraic surface of degree which bisects them all..
This generalization is proved by mapping the –dimensional plane into a dimensional plane, and then applying the original theorem. For example, for and, the 2–dimensional plane is mapped to a 5–dimensional plane via: