Splitting Sandwiches Unevenly via Unique Sink Orientations and Rainbow Arrangements
Abstract
The famous Ham-Sandwich theorem states that any point sets in can be simultaneously bisected by a single hyperplane. The -Ham-Sandwich theorem gives a sufficient condition for the existence of biased cuts, i.e., hyperplanes that do not cut off half but some prescribed fraction of each point set. We give two new proofs for this theorem. The first proof is completely combinatorial and highlights a strong connection between the -Ham-Sandwich theorem and Unique Sink Orientations of grids. The second proof uses point-hyperplane duality and the Poincaré-Miranda theorem and allows us to generalize the result to and beyond oriented matroids. For this we introduce a new concept of rainbow arrangements, generalizing colored pseudo-hyperplane arrangements. Along the way, we also show that the realizability problem for rainbow arrangements is -complete, which also implies that the realizability problem for grid Unique Sink Orientations is -complete.
Keywords and phrases:
-Ham-Sandwich Theorem, Pseudo-Hyperplanes, Arrangements, Unique Sink Orientations, Oriented MatroidsFunding:
Michaela Borzechowski: DFG within GRK 2434 Facets of Complexity.Copyright and License:
and Simon Weber; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Computational geometry ; Theory of computation Problems, reductions and completeness ; Mathematics of computing Discrete mathematicsEditors:
Hee-Kap Ahn, Michael Hoffmann, and Amir NayyeriSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The famous Ham-Sandwich theorem, originally proven by Stone and Tukey in 1942 [30], states that given any mass partitions or point sets in , there is a hyperplane that simultaneously bisects all of them. As the name suggests, this can be illustrated using the following food-based analogy: assume you have a 3-dimensional sandwich consisting of bread, ham, and cheese, that you want to share with your friend. You want to do this fairly, meaning that both of you get exactly half of the bread, half of the ham, and half of the cheese. The Ham-Sandwich theorem now says that you can always get a fair division with a single straight cut, no matter how you assembled the sandwich111In his book “Algorithms in Combinatorial Geometry”, Edelsbrunner illustrates this by saying that such a cut can be found even if the cheese is still in the fridge [12]..
The Ham-Sandwich theorem has initiated the study of mass partitions, where the general question is how many mass distributions or point sets can be simultaneously bisected with some specific type of cut. Studied variants include partitions with several hyperplanes [7, 9, 18, 19, 25], partitions using general convex sets [1, 3, 8], partitions using fans and cones [6, 24, 27], or partitions using fixed shapes [26]. For more information on mass partitions, we refer to the recent survey by Roldán-Pensado and Soberón [23].
If you like cheese significantly more than your friend does, you might not want to share your sandwich fairly, but you perhaps want to have more of the cheese. A natural question is which such biased partitions are still possible with just a single cut. The -Ham-Sandwich theorem gives a sufficient condition for when such cuts are possible. In particular, it states that if your ingredients are well-separated, then any biased cut is possible. Formally, well-separation is defined as follows (see also Figure 1 for an illustration).
Definition 1.
A family of point sets (or mass distributions) is said to be well-separated if for any index set ,222Herein and henceforth, refers to the set . there exists a hyperplane that separates the convex hull of (the support of) from the convex hull of (the support of) .
The -Ham-Sandwich theorem has been shown both for mass distributions, by Bárány, Hubard, and Jerónimo [5], as well as for finite point sets, by Steiger and Zhao [28]. In this manuscript, we focus on the discrete variant for point sets, so we only formally state this version here. However, before getting there, let us remark that we orient a hyperplane defined by points according to the orientation of the simplex , that is, a point is below iff the following matrix has a negative determinant: for all , for all and . If the matrix has a positive determinant we say that is above . If is on , then has determinant 0.
With this, we can now formally define -cuts (see also Figure 2) and state the discrete -Ham-Sandwich theorem.
Definition 2.
Let be well-separated and in weak general position333Weak general position means that any hyperplane containing one point of each of the sets cannot contain any other points of .. Given , an -cut is a hyperplane such that for each , one point of is on and exactly points of are below it.
Theorem 3.
Let be well-separated and in weak general position. Then for every , there exists a unique -cut.
The proof of the continuous version for mass distributions by Bárány, Hubard, and Jerónimo [5] uses Brouwer’s fixpoint theorem. On the other hand, the proof of the discrete version for point sets by Steiger and Zhao [28] uses an elegant inductive argument to show that every -cut is unique and then deduces the existence from the pigeonhole principle. However, we think that there is a gap in their inductive argument, which we elaborate on in the appendix of the full version of this paper. While it is possible that their proof can be fixed using some additional arguments, we are taking a different route and instead provide two new proofs of the -Ham-Sandwich theorem for point sets.
The first proof, presented in Section 2, uses the combinatorial framework of Unique Sink Orientations. A Unique Sink Orientation (USO) is an orientation of the edge set of a hypercube such that every subcube has a unique sink. USOs were formally defined by Szabó and Welzl [31], based on earlier work by Stickney and Watson [29] who investigated USOs as a combinatorial abstraction of the candidate solutions of a special class of linear complementarity problems. The concept of USOs has been generalized to grids, which are products of complete graphs [15]. A grid USO is an orientation of a grid where every subgrid has a unique sink.
Our second new proof of the -Ham-Sandwich theorem, presented in Section 3, considers the setting under the well-known point-hyperplane duality: given sets of hyperplanes with a dual notion of “well-separated”, we prove the existence of a point that lies above or below the correct number of hyperplanes in each set. In fact, we present a more general result, replacing the arrangement of hyperplanes by a rainbow arrangement, a concept that we formally introduce in Section 3.1. Informally, a colored generalized arrangement is a family , where each is a set of pseudo-hyperplanes in . In a rainbow arrangement, we further require that any colorful choice of pseudo-hyperplanes intersect in a single point. The main result of Section 3.3 is the following theorem.
Theorem 4.
Let be a well-separated colored generalized arrangement where each color class has size . Then for every , there is a point lying on one and above exactly pseudo-hyperplanes of color for all . If is additionally a rainbow arrangement, then the point is unique.
Using the topological representation theorem, Theorem 4 allows us to deduce a version of the -Ham-Sandwich theorem for oriented matroids (Corollary 11).
In Section 4, we generalize Theorem 4 even further by relaxing the well-separation condition to the notion of -separation, which we introduce in the same section.
Finally, our notion of rainbow arrangements can be viewed as a higher-dimensional generalization of bicolored order types, introduced by Aichholzer and Brötzner [2]. In Section 5, we show that deciding whether a rainbow arrangement can be realized by a hyperplane arrangement is -complete already in two dimensions (i.e., for bicolored order types, see Theorem 21). Given the connection between the -Ham-Sandwich theorem and grid USOs, and based on recent results by Borzechowski, Fearnley, Gordon, Savani, Schnider, and Weber [10], this allows us to conclude that deciding whether a grid USO is realizable is also -complete (see Corollary 22).
2 First Proof: Unique Sink Orientations
A grid graph is a generalization of the -dimensional hypercube: While the latter is the Cartesian product of copies of (the complete graph on two vertices), the former is the Cartesian product of complete graphs of arbitrary size. Formally, a -dimensional grid graph parameterized by is the graph on , where two vertices are adjacent if and only if they differ in exactly one coordinate. We say the grid has dimensions and each dimension has directions.
The subgraph of induced by the vertices for non-empty is called an induced subgrid of . Note that if we have for some , then the induced subgrid loses a dimension. If for all , we say that is a subcube of . An orientation of the edges of a grid graph is called a Unique Sink Orientation (USO) if every induced subgrid has a unique sink (i.e., a unique vertex that has no outgoing edges) [15].
Lemma 5.
Let be a grid orientation. Assume that every induced subgrid has a (not necessarily unique) sink, and that is a USO when restricted to any subcube. Then is a USO.
Proof.
As every subgrid has a sink by assumption, it remains to show that this sink is unique. Assume for the sake of contradiction that there is a subgrid that has two sinks and . Consider now the subcube spanned by and (i.e., the subcube induced by ). As and were sinks in the subgrid, they are also sinks in this subcube. We have thus found a subcube with two sinks, so restricted to this subcube is not a USO. This is a contradiction to the second assumption.
Let be a well-separated point set in weak general position. For , let . Let be the grid graph parameterized by . We recall the following orientation on , which was presented in [10] and is illustrated in Figure 3. For any edge between two vertices and of , let be the colorful hyperplane spanned by the points , and let be the colorful hyperplane spanned by . If lies above , we orient towards ; otherwise orient towards . It turns out that lies above if and only if lies below the hyperplane ,444This can be seen by projecting to such that is mapped to the origin. so this orientation is well-defined.
The following lemma is key to our first proof of Theorem 3.
Lemma 6.
Let be well-separated and in weak general position. Then the orientation is a grid USO.
Note that this lemma was already proved in [10]. However, their proof uses Theorem 3. To avoid the cyclic dependency, we provide here an alternative proof that uses the following version of the -Ham-Sandwich theorem for mass distributions.
Theorem 7 (Bárány, Hubard, and Jerónimo [5]).
Let be well-separated convex bodies in , and given constants with for . Then there is a unique hyperplane such that for all , intersects , and the proportion of the volume of below is .
Proof of Lemma 6.
We first show that every subgrid has a sink. By the definition of , a subgrid is spanned by subsets and a sink corresponds to a -cut. As any subset of a well-separated point set in weak general position is again well-separated and in weak general position, the existence of such a -cut is guaranteed by applying Theorem 7 with the convex sets being the convex hulls of , and for .
We now argue that every subcube is a USO. A subcube is spanned by at most two points per . Let be the set of these at most two points. As argued before, is well-separated and in weak general position. Further, the convex hull of the at most two points per is a line segment. Hence, by applying Theorem 7 on these convex hulls, we obtain the existence of all possible -cuts of for all . Hence, in the subcube, each possible outmap (i.e., a binary vector at each vertex that encodes whether the incident edge along each dimension is incoming or outgoing) is present. This implies that the subcube is indeed a USO [31].
The claim now follows from Lemma 5.
The -Ham-Sandwich theorem for point sets (Theorem 3) now follows easily.
Theorem 3. [Restated, see original statement.]
Let be well-separated and in weak general position. Then for every , there exists a unique -cut.
Proof.
By Lemma 6, the orientation is a grid USO. We define a function that assigns to each vertex of the grid graph a tuple such that is the number of the vertex’s outgoing edges in the dimension . Then [15, Theorem 2.14] states that is a bijection. This implies that for every , there is a unique -cut, as required.
3 Second Proof: Rainbow Arrangements and the Poincaré-Miranda Theorem
We provide definitions and preliminaries on the Poincaré-Miranda Theorem in Sections 3.1 and 3.2 and present the proof of Theorem 4 in Section 3.3.
3.1 Point-Hyperplane Duality and Rainbow Arrangements
In this subsection, we argue why our -Ham-Sandwich theorem for rainbow arrangements (Theorem 4) is a generalization of the one for point sets (Theorem 3). We first consider the point-hyperplane dual of Theorem 3. The dual of every input point is a hyperplane, and the well-separation of the point set translates to the property that for every subset of , there exists a point above all the dual hyperplanes of the points in and below those of the points in . The dual of an -cut is then a point lying on one dual hyperplane and above exactly hyperplanes of each color . Theorem 3 is equivalent to the statement that such a point is unique for every .
With this interpretation in mind, we now define our generalized arrangements, where we define an oriented pseudo-hyperplane as a subset of that is homeomorphic to and divides into two parts: a positive and a negative side. We say a point lies above (below) an oriented pseudo-hyperplane if and only if is contained in the positive (negative) side.
Definition 8 (Generalized Arrangement, Rainbow Arrangement).
A family of oriented pseudo-hyperplanes in is called a generalized arrangement if for all , the intersection of any of them is a (not necessarily connected) -dimensional manifold555For the sake of convenience, we consider the empty set to be a manifold of any dimension. In particular, it is the only manifold of dimension . and has finitely many connected components (which we call cells).
A generalized arrangement is colored if is partitioned into pairwise disjoint subfamilies . We think of this as coloring each oriented pseudo-hyperplane with one of colors and call the ’s color classes.
A colored generalized arrangement is a rainbow arrangement if for each choice of one oriented pseudo-hyperplane per color class, , we have that the intersection is a single point.
Note that our arrangements differ significantly from the well-known concept of pseudo-hyperplane arrangements, where the intersection of any pseudo-hyperplanes is required to be homeomorphic to . In particular, while every pseudo-hyperplane arrangement is also a generalized arrangement, the converse is not true.
The following definition of well-separation is a dual version of the notion of well-separation for point sets.
Definition 9 (Well-Separated).
A colored generalized arrangement in is well-separated if for every sign vector , there exists a point such that
-
lies in an unbounded cell,
-
lies above all oriented pseudo-hyperplanes in iff ,
-
and lies below all oriented pseudo-hyperplanes in iff ,
for all .
3.2 The Poincaré-Miranda Theorem
In our proof, we will use the Poincaré-Miranda theorem, which we briefly recall.
Theorem 10 (Poincaré-Miranda theorem).
Consider continuous functions
Assume that for each variable , the function is non-positive whenever and non-negative whenever . Then there exists a point in with for all .
3.3 The Second Proof
We define the -level of a family of oriented pseudo-hyperplanes to be the set of points that lie (i) on at least one oriented pseudo-hyperplane of and (ii) on or above exactly oriented pseudo-hyperplanes of . We are now ready to prove our generalization of the -Ham-Sandwich theorem.
Theorem 4. [Restated, see original statement.]
Let be a well-separated colored generalized arrangement where each color class has size . Then for every , there is a point lying on one and above exactly pseudo-hyperplanes of color for all . If is additionally a rainbow arrangement, then the point is unique.
We prove the existence of a point by showing that the corresponding -levels intersect, see Figure 4 for an illustration. The uniqueness for rainbow arrangement additionally uses a counting argument.
Proof.
By assumption is well-separated, so for each vector there is a point in an unbounded cell that lies above or below all oriented pseudo-hyperplanes of a color class. Consider a subset and a family of vectors in for which for all . Let be the generalized arrangement consisting only of oriented pseudo-hyperplanes of color classes in . We claim that the points lie in a common unbounded cell of . Indeed, assume for the sake of contradiction that two of the points and lie in different unbounded cells. Then there is an oriented pseudo-hyperplane of separating them. However, by definition, and must lie on the same side of any oriented pseudo-hyperplane in , a contradiction.
Now consider the cube . Note that each face of the cube can be encoded by a vector in , such that the face contains all vertices of the cube such that for all with . We call such a face characterized by the set .
Next, consider the following embedding of the cube into : Each vertex in is mapped to the point with such that if and only if for . Then as we already argued above, for every face of the cube characterized by a set , all its vertices are in a common unbounded cell of , so we can extend the embedding defined on the facets of a face to the entire face. After applying a homeomorphism on that maps this embedding to the cube we can thus assume that all oriented pseudo-hyperplanes of the color class have the facet on their negative side, and the facet on their positive side.
Consider now the -level of some color class . We define a function for which if is on , if is above and if is below . To achieve this, set for all points that lie on . For all other points , let denote the distance of to . If is below , we set , and if is above , we set . Since the distance is a continuous function, is continuous.
By construction, the functions satisfy the conditions of the Poincaré-Miranda theorem. We thus get that there is a point in for which for all . Recall that by the definition of a generalized arrangement, no point can lie on of our pseudo-hyperplanes. Thus, is a point lying on exactly one and above exactly oriented pseudo-hyperplanes of color for all , as required.
Note that lies on one oriented pseudo-hyperplane of each color class. If the arrangement is a rainbow arrangement, then there are only many possible locations for . As each of these points can only be the solution for one -vector and there are different -vectors, it follows that for each -vector the solution must be unique.
By the famous topological representation theorem of Folkman and Lawrence [14], Theorem 4 also has implications for oriented matroids. To explain this, we will assume familiarity with oriented matroids as presented for example in the Handbook of Discrete and Computational Geometry [22]. In particular, we consider uniform oriented matroids of rank . We denote such an oriented matroid by , where is the ground set and . Coloring corresponds to a partition into classes (colors) as . If we use to denote the color of element , then we take well-separation to mean that for all , there exists a covector with for all . By applying the Folkman-Lawrence representation theorem and then Theorem 4, we thus get the following corollary in this setting.
Corollary 11 (-Ham-Sandwich for Oriented Matroids).
Let be a uniform oriented matroid of rank in covector representation with . Assume that is well-separated, and in particular, is partitioned into classes (colors). Then for every , there is a covector with exactly one zero and exactly minuses on the subset , for all .
4 Generalizing Well-Separation
Using the Poincaré-Miranda theorem, we can prove an even more general statement by relaxing the definition of well-separation. (Recall the definition of a -level of a set of oriented pseudo-hyperplanes, as defined in Section 3.3.)
Definition 12 (-separated).
Let be a colored generalized arrangement in , where each color class has size . Let and be vectors such that and for all . The colored generalized arrangement is called -separated iff for every sign vector , there exists a point such that
-
lies in an unbounded cell,
-
lies above the -level of iff ,
-
and lies below the -level of iff ,
for all .
Note that by setting and we recover the definition of well-separated.
Theorem 13.
Let be a -separated colored generalized arrangement where each color class has size . Then for every , there is a point lying on one and above exactly oriented pseudo-hyperplanes of color for all .
Proof.
By assumption is -separated, so for each vector there is a point in an unbounded cell that lies above or below all relevant levels of a color class as stated in Definition 12. As the arrangement has finitely many cells, we can place a large enough ball that contains all the bounded cells. Observe that we can assume to lie outside of . Consider a subset and a family of vectors for which for all . Let be the union of all relevant levels, that is, the -levels for , of the color classes . We claim that the points lie in a common unbounded cell of . Indeed, assume for the sake of contradiction that two of the points and lie in different unbounded cells. Then there is a level of separating them outside of . However, by definition, and must lie on the same side of any relevant level in .
We thus indeed have that all the points lie in a common unbounded cell of outside of . Now we use the same argument as in the proof of Theorem 4. In particular, we can again find an embedding of the cube where each face characterized by a subset lies in this common unbounded cell of . After applying a homeomorphism on that maps this embedding to the cube we can thus assume that all relevant levels of the color class have the facet on their negative side, and the facet on their positive side.
We now take the same functions as in the proof of Theorem 4, which satisfy the conditions of the Poincaré-Miranda theorem. We thus get that there is a point in for which for all .
We think that it is instructive to translate Theorem 13 back to the original setting of colored point sets in (i.e., the primal setting). Note that in Definition 12, the condition that must lie in an unbounded face has technical reasons: In the proof of Theorem 13, it allows us to easily embed the cube that we need for the Poincaré-Miranda theorem. However, we can get away without this assumption in the case of (straight) hyperplanes: In that case, the -levels are guaranteed to be connected and piecewise linear, and thus we can embed the cube without assuming that the points lie in unbounded faces. Therefore, when going to the primal setting, we can omit this technical assumption and define -separation for point sets as follows.
Definition 14.
Let be in weak general position and let with for all be arbitrary. We say that is -separated if for every sign vector , there exists a hyperplane such that
-
lies strictly above at least points of iff ,
-
and lies above at most points of iff ,
for all .
By dualizing the point set and applying Theorem 13 for the dual hyperplanes, we thus get the following corollary for -separated point sets.
Corollary 15.
Let be -separated for some and in general position666We require general position (no points on a common hyperplane) to ensure that the dual arrangement is indeed a generalized arrangement. However, one could easily adapt our proofs to also make this work for weak general position.. Then for every , there exists a unique -cut.
5 Rainbow Arrangements and Bicolored Stretchability
In this section, we take a closer look at well-separated rainbow arrangements in , where pseudo-hyperplanes are also called pseudo-lines. Concretely, such an arrangement consists of well-separated blue and red oriented pseudo-lines such that every blue and red pseudo-line intersect (and thus cross) exactly once.
An interesting question is whether a given rainbow arrangement can be realized using (straight) lines. In the following, we will prove that deciding this is -complete. Concretely, we prove that the following formalization of what we call bicolored stretchability is -complete.
Definition 16 (Bicolored Stretchability).
Given a combinatorial description of a well-separated rainbow arrangement in (by specifying for each blue pseudo-line, the order in which it crosses the red pseudo-lines, and vice versa), bicolored stretchability is the problem of deciding whether there exists a two-colored well-separated line arrangement with the same combinatorial description.
In particular, in a YES-instance of bicolored stretchability, all colorful crossings along every line have to happen in the prescribed order.
Observe that, given an instance of bicolored stretchability and a guess for the line arrangement (specifying each line and its color), we can efficiently verify (in a real-RAM machine) whether this guess indeed describes a well-separated line arrangement that is combinatorially equivalent to the bicolored stretchability instance (well-separation can be checked e.g. by comparing the slopes of the lines). Erickson, van der Hoog, and Miltzow [13] conveniently proved that such a verification algorithm on a real-RAM machine is enough to prove membership in .
In order to prove -hardness, we will provide a reduction from the -complete problem allowable sequences [17]. This problem can be formulated both in its primal form (using point sets) as well as its dual form (using line arrangements). For more details regarding this duality, see e.g., [16]. The following dual formulation will be convenient for our purpose.
Definition 17 (Allowable Sequences).
Given a sequence of permutations of , where differs from by a swap of two adjacent items for all , allowable sequences is the problem of deciding whether there exists a line arrangement of lines such that sweeping the arrangement from left to right and recording how the relative order of the lines changes yields a sequence of permutations that contains the sequence .
Consider now such a sequence of permutations of , i.e., an instance of allowable sequences. We build an instance of bicolored stretchability as follows: We introduce red pseudo-lines and blue pseudo-lines and . We call the four red lines control lines. For each , we require both and to first intersect in order, then in the order of the permutation , and finally and in order. Conversely, for each , we require to intersect the blue pseudo-lines in the order . Finally, the control lines are specified such that
-
intersects the blue pseudo-lines in the order ,
-
intersects the blue pseudo-lines in the order ,
-
has to first intersect and then in that order,
-
and has to first intersect and then .
Clearly, this construction can be implemented in polynomial time and it remains to prove correctness. However, before getting to the correctness proof, we first observe that this indeed yields a combinatorial description of a rainbow arrangement.
Lemma 18.
There exists a well-separated rainbow arrangement with the combinatorial description described in the construction above.
Proof.
This proof is illustrated in Figure 7. We start by drawing the four control lines as straight horizontal lines in the order (top to bottom) , making sure that the pairs and are relatively close to each other while there is a big gap between and . Next, we place points with increasing -coordinates between and , and we place two points and with increasing -coordinates between and . The blue lines and are then drawn as straight lines where goes through and , and goes through and for all . It remains to draw as pseudo-lines just below . Note that just below , the blue lines read as from left to right, which is what we need for our red pseudo-lines. Clearly, the red pseudo-lines can be drawn such as to ensure the proper intersections along each of the blue lines. It is not hard to see that this thus yields a well-separated rainbow arrangement.
Next, we prove that applying the construction to a YES-instance of allowable sequences yields a YES-instance of bicolored stretchability. The construction is similar to the proof of Lemma 18. The difference is that, by our assumption that we are given a YES-instance of allowable sequences, we can now ensure that all red lines are straight as well.
Lemma 19.
If the permutation can be realized by a line arrangement (with straight lines), then the corresponding instance of bicolored stretchability can also be realized with straight lines.
Proof.
We take the line arrangement that realizes and color all lines red. Next, choose points above the arrangement with increasing -coordinates, corresponding to the permutations . In other words, by walking from vertically downward, we are guaranteed to observe the permutation , for all . Moreover, we ensure that we will not observe any crossing of two red lines while walking vertically downward. This means that we could even walk at a very small angle (i.e., almost vertically) and still observe the correct permutation.
Next, we choose two points below the arrangement such that is to the left of . By moving both and vertically down towards negative infinity, we can guarantee that for all , the straight blue line (or , respectively) drawn through and (or , respectively) observes the permutation . It remains to draw the control lines:
-
is drawn as a horizontal line just above the points ,
-
is drawn as a horizontal line just below ,
-
is drawn as a horizontal line just above ,
-
and is drawn horizontally just below .
It remains to prove the other direction, i.e., that a realization of the constructed instance of bicolored stretchability also implies a realization of the allowable sequences instance.
Lemma 20.
Assume that given , the constructed instance of bicolored stretchability can be realized using straight lines. Then there also exists a straight-line realization of the allowable sequences instance .
Proof.
Consider the straight-line realization of the bicolored stretchability instance. By construction of the control lines and , and have to cross at a point that lies above the lines for all . Moreover, we know that the control line lies below the other lines and intersects the blue lines in the order . In particular, let be an arbitrary point on that lies in-between and .
Next, for each , draw a new line through and . Observe that intersects in , and in particular lies between the intersections of with and , respectively. Since and intersect in the same order (given by ), so does . This means that each of the lines observes the correct permutation, and they all pass through the same point that lies on . Thus, we can apply a projective transformation that turns into the line at infinity, which in turn ensures that the lines are parallel. We conclude that the red lines after the transformation are a realization of the original allowable sequences instance.
Putting all of this together, we conclude that bicolored stretchability is indeed -complete.
Theorem 21.
Bicolored stretchability is -complete.
Proof.
We argued that it is contained in by using the verification-approach in [13]. -hardness follows from our reduction from allowable sequences above, where correctness follows from combining Lemma 19 and Lemma 20.
Certainly, Theorem 21 also implies -hardness for the realizability problem of more general two-colored rainbow arrangements (that are not necessarily well-separated). Concretely, this also implies that realizability of bicolored order types (that were studied in, e.g., [2]) is -hard. However, the well-separation condition is useful for us, as it allows us to also conclude that realizability of grid USO777A grid USO is called realizable if it is induced by an instance of the P-Matrix Generalized Linear Complementarity Problem (PGLCP). We do not elaborate on the details of realizability of grid USOs here and instead rely on prior work that establishes the appropriate connection with hyperplane arrangements [10]. is -complete.
Corollary 22.
Deciding whether a given grid USO is realizable is -complete, even in two dimensions.
Proof.
Note that containment in follows again by giving a real-RAM verifier, and we will not go into the details of this. Instead, we explain why USO realizability is -hard based on prior work: It was proven in [10] that realizable grid USOs correspond to well-separated hyperplane arrangements. This allows us to reduce bicolored stretchability to realizability of two-dimensional grid USO: Given the well-separated rainbow arrangement, construct the orientation as described in Section 2. This must yield a two-dimensional grid USO. If this grid USO is realizable, then by [10] there exists a well-separated line arrangement corresponding to this grid USO, which hence must have the same combinatorial description as the initial well-separated rainbow arrangement. Conversely, any well-separated line arrangement with the same combinatorial information implies that the constructed orientation is realizable.
References
- [1] Oswin Aichholzer, Nieves Atienza, José M. Díaz-Báñez, Ruy Fabila-Monroy, David Flores-Peñaloza, Pablo Pérez-Lantero, Birgit Vogtenhuber, and Jorge Urrutia. Computing balanced islands in two colored point sets in the plane. Information Processing Letters, 135:28–32, July 2018. doi:10.1016/j.ipl.2018.02.008.
- [2] Oswin Aichholzer and Anna Brötzner. Bicolored Order Types. Computing in Geometry and Topology, 3(2):3:1–3:17, 2024. doi:10.57717/cgt.v3i2.46.
- [3] Arseniy Akopyan and Roman N. Karasev. Cutting the Same Fraction of Several Measures. Discrete & Computational Geometry, 49(2):402–410, March 2013. doi:10.1007/s00454-012-9450-4.
- [4] David Ariza-Ruiz, Jesús Garcia-Falset, and Simeon Reich. The Bolzano-Poincaré-Miranda theorem in infinite-dimensional Banach spaces. J. Fixed Point Theory Appl., 21(2):Paper No. 59, 12, 2019. doi:10.1007/s11784-019-0701-3.
- [5] Imre Bárány, Alfredo Hubard, and Jesús Jerónimo. Slicing Convex Sets and Measures by a Hyperplane. Discrete & Computational Geometry, 39(1):67–75, 2008. doi:10.1007/s00454-007-9021-2.
- [6] Imre Bárány and Jiří Matoušek. Equipartition of two measures by a 4-fan. Discrete & Computational Geometry, 27(3):293–301, 2002. doi:10.1007/S00454-001-0071-6.
- [7] Luis Barba, Alexander Pilz, and Patrick Schnider. Sharing a pizza: bisecting masses with two cuts. arXiv preprint arXiv:1904.02502, 2019. arXiv:1904.02502.
- [8] Pavle V. M. Blagojević and Aleksandra Dimitrijević Blagojević. Using equivariant obstruction theory in combinatorial geometry. Topology and its Applications, 154(14):2635–2655, 2007. doi:10.1016/j.topol.2007.04.007.
- [9] Pavle V. M. Blagojević, Aleksandra Dimitrijević Blagojević, Roman Karasev, and Jonathan Kliem. More bisections by hyperplane arrangements. Discrete Comput. Geom., 67(1):33–64, 2022. doi:10.1007/s00454-021-00337-w.
- [10] Michaela Borzechowski, John Fearnley, Spencer Gordon, Rahul Savani, Patrick Schnider, and Simon Weber. Two Choices Are Enough for P-LCPs, USOs, and Colorful Tangents. In 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), volume 297, pages 32:1–32:18, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2024.32.
- [11] Michaela Borzechowski, Sebastian Haslebacher, Hung P. Hoang, Patrick Schnider, and Simon Weber. Splitting sandwiches unevenly via unique sink orientations and rainbow arrangements, 2026. arXiv:2602.10795.
- [12] Herbert Edelsbrunner. Algorithms in Combinatorial Geometry. Springer-Verlag New York, Inc., New York, NY, USA, 1987.
- [13] Jeff Erickson, Ivor van der Hoog, and Tillmann Miltzow. Smoothing the Gap Between NP and ER. SIAM Journal on Computing, 53(6):FOCS20–102, 2024. doi:10.1137/20M1385287.
- [14] Jon Folkman and Jim Lawrence. Oriented matroids. Journal of Combinatorial Theory, Series B, 25(2):199–236, 1978. doi:10.1016/0095-8956(78)90039-4.
- [15] Bernd Gärtner, Walter D. Morris jr., and Leo Rüst. Unique sink orientations of grids. Algorithmica, 51(2):200–235, 2008. doi:10.1007/s00453-007-9090-x.
- [16] Jacob E. Goodman and Richard Pollack. Allowable Sequences and Order Types in Discrete and Computational Geometry. In New Trends in Discrete and Computational Geometry, pages 103–134. Springer, Berlin, Heidelberg, 1993. doi:10.1007/978-3-642-58043-7_6.
- [17] Udo Hoffmann and Keno Merckx. A universality theorem for allowable sequences with applications. doi:10.48550/arXiv.1801.05992.
- [18] Alfredo Hubard and Roman Karasev. Bisecting measures with hyperplane arrangements. Mathematical Proceedings of the Cambridge Philosophical Society, 169(3):639–647, 2019. doi:10.1017/S0305004119000380.
- [19] Alfredo Hubard and Pablo Soberón. Bisecting masses with families of parallel hyperplanes. arXiv preprint arXiv:2404.14320, 2024.
- [20] Carlo Miranda. Un’osservazione su un teorema di Brouwer. Boll. Un. Mat. Ital. (2), 3:5–7, 1940.
- [21] Henri Poincaré. Sur certaines solutions particulières du problème des trois corps. Bulletin astronomique, Observatoire de Paris, 1(1):65–74, 1884. doi:10.3406/bastr.1884.9762.
- [22] Jürgen Richter-Gebert and Günter M. Ziegler. Oriented matroids. In Handbook of Discrete and Computational Geometry, pages 111–132. CRC Press, Inc., USA, 1997.
- [23] Edgardo Roldán-Pensado and Pablo Soberón. A survey of mass partitions. Bull. Amer. Math. Soc. (N.S.), 59(2):227–267, 2022. doi:10.1090/bull/1725.
- [24] Patrick Schnider. Equipartitions with wedges and cones. arXiv preprint arXiv:1910.13352, 2019. arXiv:1910.13352.
- [25] Patrick Schnider. The Complexity of Sharing a Pizza. In 32nd International Symposium on Algorithms and Computation (ISAAC 2021), volume 212, pages 13:1–13:15, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ISAAC.2021.13.
- [26] Patrick Schnider and Pablo Soberón. Cookie cutters: Bisections with fixed shapes. Advances in Applied Mathematics, 171:102957, 2025. doi:10.1016/j.aam.2025.102957.
- [27] Pablo Soberón and Yuki Takahashi. Lifting Methods in Mass Partition Problems. International Mathematics Research Notices, 2023(16):14103–14130, 2023. doi:10.1093/imrn/rnac224.
- [28] William Steiger and Jihui Zhao. Generalized Ham-Sandwich Cuts. Discrete & Computational Geometry, 44(3):535–545, 2010. doi:10.1007/s00454-009-9225-8.
- [29] Alan Stickney and Layne Watson. Digraph models of Bard-type algorithms for the linear complementarity problem. Mathematics of Operations Research, 3(4):322–333, 1978. doi:10.1287/MOOR.3.4.322.
- [30] A. H. Stone and J. W. Tukey. Generalized “sandwich” theorems. Duke Math. J., 9(2):356–359, June 1942. doi:10.1215/S0012-7094-42-00925-6.
- [31] Tibor Szabó and Emo Welzl. Unique sink orientations of cubes. In Proceedings of the 42nd IEEE Symposium on Foundations of Computer Science, pages 547–555, 2001. doi:10.1109/SFCS.2001.959931.
