IMC / 2011 / Problems / Day 2, P7
IMC 2011 · Day 2 · P7
An alien race has three genders: male, female, and emale. A married triple consists of three persons, one from each gender, who all like each other. Any person is allowed to belong to at most one married triple. A special feature of this race is that feelings are always mutual — if likes , then likes .
The race is sending an expedition to colonize a planet. The expedition has males, females, and emales. It is known that every expedition member likes at least persons of each of the two other genders. The problem is to create as many married triples as possible to produce healthy offspring so the colony could grow and prosper.
a) Show that if is even and , then it might be impossible to create even one married triple.
b) Show that if , then it is always possible to create disjoint married triples, thus marrying all of the expedition members.
(Fedor Duzhin and Nick Gravin, Singapore)
Solution 1 of 2 (official)
(a) Let be the set of males, the set of females, and the set of emales. Consider the (tripartite) graph with vertices and edges for likes. A 3-cycle is then a possible family. We'll call the graph of likes.
First, let . Then has to be even and we need to construct a graph of likes with no 3-cycles. We'll do the following: divide each of the sets , , and into two equal parts and draw all edges between two parts as shown below:
Clearly, there is no 3-cycle.
(b) First divide the the expedition into male-emale-female triples arbitrarily. Let the unhappiness of such a subdivision be the number of pairs of aliens that belong to the same triple but don't like each other. We shall show that if unhappiness is positive, then the unhappiness can be decreased by a simple operation. It will follow that after several steps the unhappiness will be reduced to zero, which will lead to the happy marriage of everybody.
Assume that we have an emale which doesn't like at least one member of its triple (the other cases are similar). We perform the following operation: we swap this emale with another emale, so that each of these two emales will like the members of their new triples. Thus the unhappiness related to this emales will decrease, and the other pairs that contribute to the unhappiness remain unchanged, therefore the unhappiness will be decreased.
So, it remains to prove that such an operation is always possible. Enumerate the triples with and denote by the emale, female, and male members of the th triple, respectively. Without loss of generality we may assume that doesn't like either or or both. We have to find an index such that likes the couple , and likes the couple , ; then we can swap and .
There are at most indices for which dislikes and at most indices for which dislikes , so there are no more than indices for which dislikes someone from the couple , and the set of these undesirable indexes includes 1. Similarly, there are no more than indices such that either or dislikes . Since both undesirable sets of indices have at most elements and both contain 1, their union doesn't cover all indices, so we have some which satisfies all conditions. Therefore we can always perform the operation that decreases unhappiness.
Solution 2 of 2 (official)
(for part b) Suppose that and let's show that it's possible to marry all of the colonists. First, we'll prove that there exists a perfect matching between and . We need to check the condition of Hall's marriage theorem. In other words, for , let be the set of all vertices of adjacent to at least one vertex of . Then we need to show that . Let us assume the contrary, that is . Clearly, if is not empty. Let's consider any . Then is not adjacent to any vertex in , therefore, has degree in not more than , a contradiction.
Let's now construct a new bipartite graph, say . The set of its vertices is , where is the set of pairs male–female from the perfect matching we just found. We will have an edge from to for each 3-cycle of the graph , where and . Notice that the degree of each vertex of in is then at least .
What remains is to show that satisfies the condition of Hall's marriage theorem and hence has a perfect matching. Assume, on the contrary, that the following happens. There is and such that , , and is the set of all vertices of adjacent to at least one vertex of . Since the degree of each vertex of is at least , we have . On the other hand, let . Then for each pair , at most one of the pairs and is joined by an edge and hence the degree of in is at most . But the degree of any vertex of is
and thus we get , that is, .
Finally, implies that . This contradiction concludes the solution.