Unofficial archive — problems, solutions & results © IMC, reproduced with permission.

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 xx likes yy, then yy likes xx.

The race is sending an expedition to colonize a planet. The expedition has nn males, nn females, and nn emales. It is known that every expedition member likes at least kk 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 nn is even and k=n2k = \frac{n}{2}, then it might be impossible to create even one married triple.

b) Show that if k3n4k \ge \frac{3n}{4}, then it is always possible to create nn disjoint married triples, thus marrying all of the expedition members.

(Fedor Duzhin and Nick Gravin, Singapore)

Solution 1 of 2 (official)

(a) Let MM be the set of males, FF the set of females, and EE the set of emales. Consider the (tripartite) graph GG with vertices MFEM \cup F \cup E and edges for likes. A 3-cycle is then a possible family. We'll call GG the graph of likes.

First, let k=n2k = \frac{n}{2}. Then nn 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 MM, FF, and EE 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 1,2,,n1, 2, \dots, n and denote by Ei,Fi,MiE_i, F_i, M_i the emale, female, and male members of the iith triple, respectively. Without loss of generality we may assume that E1E_1 doesn't like either F1F_1 or M1M_1 or both. We have to find an index i>1i > 1 such that E1E_1 likes the couple FiF_i, MiM_i and EiE_i likes the couple F1F_1, M1M_1; then we can swap E1E_1 and EiE_i.

There are at most n/4n/4 indices ii for which E1E_1 dislikes FiF_i and at most n/4n/4 indices for which E1E_1 dislikes MiM_i, so there are no more than n/2n/2 indices ii for which E1E_1 dislikes someone from the couple Mi,FiM_i, F_i, and the set of these undesirable indexes includes 1. Similarly, there are no more than n/2n/2 indices such that either M1M_1 or F1F_1 dislikes EiE_i. Since both undesirable sets of indices have at most n/2n/2 elements and both contain 1, their union doesn't cover all indices, so we have some ii which satisfies all conditions. Therefore we can always perform the operation that decreases unhappiness.

Solution 2 of 2 (official)

(for part b) Suppose that k3n4k \ge \frac{3n}{4} 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 MM and FF. We need to check the condition of Hall's marriage theorem. In other words, for AMA \subset M, let BFB \subset F be the set of all vertices of FF adjacent to at least one vertex of AA. Then we need to show that AB|A| \le |B|. Let us assume the contrary, that is A>B|A| > |B|. Clearly, Bk|B| \ge k if AA is not empty. Let's consider any fFBf \in F \setminus B. Then ff is not adjacent to any vertex in AA, therefore, ff has degree in MM not more than nA<nBnkn4n - |A| < n - |B| \le n - k \le \frac{n}{4}, a contradiction.

Let's now construct a new bipartite graph, say HH. The set of its vertices is PEP \cup E, where PP is the set of pairs male–female from the perfect matching we just found. We will have an edge from (m,f)=pP(m, f) = p \in P to eEe \in E for each 3-cycle (m,f,e)(m, f, e) of the graph GG, where (m,f)P(m, f) \in P and eEe \in E. Notice that the degree of each vertex of PP in HH is then at least 2kn2k - n.

What remains is to show that HH satisfies the condition of Hall's marriage theorem and hence has a perfect matching. Assume, on the contrary, that the following happens. There is APA \subset P and BEB \subset E such that A=l|A| = l, B<l|B| < l, and BB is the set of all vertices of EE adjacent to at least one vertex of AA. Since the degree of each vertex of PP is at least 2kn2k - n, we have 2knB<l2k - n \le |B| < l. On the other hand, let eEBe \in E \setminus B. Then for each pair (m,f)=pP(m, f) = p \in P, at most one of the pairs (e,m)(e, m) and (e,f)(e, f) is joined by an edge and hence the degree of ee in GG is at most MA+FA+A=2(nl)+l=2nl|M \setminus A| + |F \setminus A| + |A| = 2(n - l) + l = 2n - l. But the degree of any vertex of GG is 2k2k

and thus we get 2k2nl2k \le 2n - l, that is, l2n2kl \le 2n - 2k.

Finally, 2kn<l2n2k2k - n < l \le 2n - 2k implies that k<3n4k < \frac{3n}{4}. This contradiction concludes the solution.

Similar problems

IMC 1998 · Day 2 · P10no per-problem stats
IMC 1999 · Day 1 · P2mediumavg 5.4/10 · solved 47% · near-0 39% · disc 0.64