Maths Olympiad Prep

Library / /49 of 55

, 2019

Combinatorics Difficulty 9.0 Shortlist Prove it IMO

On a certain social network, there are 20192019 users, some pairs of which are friends, where friendship is a symmetric relation. Initially, there are 10101010 people with 10091009 friends each and 10091009 people with 10101010 friends each. However, the friendships are rather unstable, so events of the following kind may happen repeatedly, one at a time:

Let AA, BB, and CC be people such that AA is friends with both BB and CC, but BB and CC are not friends; then BB and CC become friends, but AA is no longer friends with them.

Prove that, regardless of the initial friendships, there exists a sequence of such events after which each user is friends with at most one other user.

Solutions — 2

Solution 1

All of the solutions presented below will use this reformulation.

Note that the given graph is connected, since the total degree of any two vertices is at least 20182018 and hence they are either adjacent or have at least one neighbour in common. Hence the given graph satisfies the following condition:

> Every connected component of GG with at least three vertices is not complete and has a vertex of odd degree.

We will show that if a graph GG satisfies condition (1) and has a vertex of degree at least 22, then there is a refriending on GG that preserves condition (1). Since refriendings decrease the total number of edges of GG, by using a sequence of such refriendings, we must reach a graph GG with maximal degree at most 11, so we are done.

Figure 1

Pick a vertex AA of degree at least 22 in a connected component GG' of GG. Since no component of GG with at least three vertices is complete we may assume that not all of the neighbours of AA are adjacent to one another. (For example, pick a maximal complete subgraph KK of GG'. Some vertex AA of KK has a neighbour outside KK, and this neighbour is not adjacent to every vertex of KK by maximality.) Removing AA from GG splits GG' into smaller connected components G1,,GkG_1, \ldots, G_k (possibly with k=1k=1), to each of which AA is connected by at least one edge. We divide into several cases.

Case 1: k2k \geqslant 2 and AA is connected to some GiG_i by at least two edges.

Choose a vertex BB of GiG_i adjacent to AA, and a vertex CC in another component GjG_j adjacent to AA. The vertices BB and CC are not adjacent, and hence removing edges ABAB and ACAC and adding in edge BCBC does not disconnect GG'. It is easy to see that this preserves the condition, since the refriending does not change the parity of the degrees of vertices.

Case 2: k2k \geqslant 2 and AA is connected to each GiG_i by exactly one edge.

Consider the induced subgraph on any GiG_i and the vertex AA. The vertex AA has degree 11 in this subgraph; since the number of odd-degree vertices of a graph is always even, we see that GiG_i has a vertex of odd degree (in GG). Thus if we let BB and CC be any distinct neighbours of AA, then removing edges ABAB and ACAC and adding in edge BCBC preserves the above condition: the refriending creates two new components, and if either of these components has at least three vertices, then it cannot be complete and must contain a vertex of odd degree (since each GiG_i does).

Case 3: k=1k=1 and AA is connected to G1G_1 by at least three edges.

By assumption, AA has two neighbours BB and CC which are not adjacent to one another. Removing edges ABAB and ACAC and adding in edge BCBC does not disconnect GG'. We are then done as in Case 1.

Case 4: k=1k=1 and AA is connected to G1G_1 by exactly two edges.

Let BB and CC be the two neighbours of AA, which are not adjacent. Removing edges ABAB and ACAC and adding in edge BCBC results in two new components: one consisting of a single vertex; and the other containing a vertex of odd degree. We are done unless this second component would be a complete graph on at least 33 vertices. But in this case, G1G_1 would be a complete graph minus the single edge BCBC, and hence has at least 44 vertices since GG' is not a 44-cycle. If we let DD be a third vertex of G1G_1, then removing edges BABA and BDBD and adding in edge ADAD does not disconnect GG'. We are then done as in Case 1.

Figure 2

Solution 2

As in the previous solution, note that a refriending preserves the property that a graph has a vertex of odd degree and (trivially) the property that it is not complete; note also that our initial graph is connected. We describe an algorithm to reduce our initial graph to a graph of maximal degree at most 11, proceeding in two steps.

Step 1: There exists a sequence of refriendings reducing the graph to a tree.

Proof. Since the number of edges decreases with each refriending, it suffices to prove the following: as long as the graph contains a cycle, there exists a refriending such that the resulting graph is still connected. We will show that the graph in fact contains a cycle ZZ and vertices A,B,CA, B, C such that AA and BB are adjacent in the cycle ZZ, CC is not in ZZ, and is adjacent to AA but not BB. Removing edges ABAB and ACAC and adding in edge BCBC keeps the graph connected, so we are done.

Figure 3

To find this cycle ZZ and vertices A,B,CA, B, C, we pursue one of two strategies. If the graph contains a triangle, we consider a largest complete subgraph KK, which thus contains at least three vertices. Since the graph itself is not complete, there is a vertex CC not in KK connected to a vertex AA of KK. By maximality of KK, there is a vertex BB of KK not connected to CC, and hence we are done by choosing a cycle ZZ in KK through the edge ABAB.

Figure 4

If the graph is triangle-free, we consider instead a smallest cycle ZZ. This cycle cannot be Hamiltonian (i.e. it cannot pass through every vertex of the graph), since otherwise by minimality the graph would then have no other edges, and hence would have even degree at every vertex. We may thus choose a vertex CC not in ZZ adjacent to a vertex AA of ZZ. Since the graph is triangle-free, it is not adjacent to any neighbour BB of AA in ZZ, and we are done.

Step 2: Any tree may be reduced to a disjoint union of single edges and vertices by a sequence of refriendings.

Proof. The refriending preserves the property of being acyclic. Hence, after applying a sequence of refriendings, we arrive at an acyclic graph in which it is impossible to perform any further refriendings. The maximal degree of any such graph is 11: if it had a vertex AA with two neighbours B,CB, C, then BB and CC would necessarily be nonadjacent since the graph is cycle-free, and so a refriending would be possible. Thus we reach a graph with maximal degree at most 11 as desired.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.