Maths Olympiad Prep

Library / /2 of 2

Combinatorics Difficulty 5.6 AIME, harder Prove it United States

Problem:

There are 3,999,9993,999,999 cities in Antarctica, and some pairs of them are connected by roads. It is known that, given any two cities, there is a sequence of roads leading from one to the other. Prove that the cities can be divided into 19991999 groups (of 20012001 cities each) such that, given any two cities in the same group, it is possible to get from one to the other using at most 40004000 roads.

Solution

Solution:

First, we provide some relevant graph-theoretic background. Any finite, connected graph can be turned into a tree (a connected graph without cycles) by removing some edges. Proof: If our graph has a cycle, any edge of that cycle can be removed without disconnecting the graph. So remove this edge, leaving a new graph. If it has a cycle, we can again remove an edge; continuing in this manner, we must eventually stop, since there are only finitely many edges to remove. We then have a graph with no cycles; since no edge removal ever disconnected the graph, it must still be connected.

Also, given a tree, we can choose a root vertex rr. Then, for any vertex vv, there is a unique path from vv to rr, never repeating a vertex (uniqueness follows from the absence of cycles). We call vv a descendant of ww if this path goes through ww. Every vertex is considered to be a descendant of itself and of rr. Suppose vv is a descendant of ww; then the path from vv to rr consists of the path from vv to ww followed by the path from ww to rr. It follows that descent is transitive: if ww in turn is a descendant of uu, then vv is a descendant of uu. It also follows that d(v,r)=d(v,w)+d(w,r)d(v, r)=d(v, w)+d(w, r), where d(x,y)d(x, y) denotes the distance (i.e. number of edges in the path) from xx to yy. Finally, a vertex vv with no descendants can be removed and the graph will remain connected. Proof: every other vertex is connected to rr by a path that does not pass through vv, so these vertices will remain connected to rr - and hence to each other - when vv is removed.

Now we can solve our original problem. We state the graph-theoretic translation: given a connected graph GG on knk n vertices (k0,n1)(k \geq 0, n \geq 1), these vertices can be partitioned into kk sets of size nn such that d(v,w)2n2d(v, w) \leq 2 n-2 whenever v,wv, w are in the same set. (In our case, k=1999,n=2001k=1999, n=2001.) We prove this by induction on kk. If k=0k=0, we form no vertex sets, and the statement is vacuously true. Now suppose the statement holds for k1k-1, where k1k \geq 1, and we have a graph GG on knk n vertices. It suffices to prove the result when GG is a tree, since otherwise we can make it a tree by removing some edges and partition the vertices of this tree appropriately. The same partition will then work for the original graph GG, since the distance between two vertices cannot increase when we put the deleted edges back.

So suppose GG is a tree, and arbitrarily choose a root rr. Now let aa be a vertex for which d(a,r)d(a, r) is maximal. Let a=v1,v2,,vq=ra=v_{1}, v_{2}, \ldots, v_{q}=r be the path from aa to rr, and choose the smallest ii such that viv_{i} has at least nn descendants. (Some such ii surely exists, since rr has knk n descendants.) Let SS be the set of descendants of viv_{i}; note that if vSv \in S, then every descendant of vv is in SS, by transitivity. Notice that v1,v2,,vi1v_{1}, v_{2}, \ldots, v_{i-1} are all descendants of vi1v_{i-1}, so the minimality of ii implies i1<ni-1<n. Thus, d(a,vi)=i1n1d\left(a, v_{i}\right)=i-1 \leq n-1. Now we claim the distance between any two elements of SS is at most 2n22 n-2. Indeed, suppose b,cSb, c \in S. We have d(b,vi)=d(b,r)d(vi,r)d(a,r)d(vi,r)d\left(b, v_{i}\right)=d(b, r)-d\left(v_{i}, r\right) \leq d(a, r)-d\left(v_{i}, r\right) (by choice of aa ) =d(a,vi)n1=d\left(a, v_{i}\right) \leq n-1. Similarly, d(c,vi)n1d\left(c, v_{i}\right) \leq n-1, and so d(b,c)d(b,vi)+d(vi,c)2(n1)d(b, c) \leq d\left(b, v_{i}\right)+d\left(v_{i}, c\right) \leq 2(n-1), as claimed.

Now let a1a_{1} be an element of SS at maximal distance from rr. (For example, take a1=aa_{1}=a.) Then a1a_{1} can have no descendants (except itself) in GG, since if bb were a descendant of a1a_{1}, we would have d(b,r)=d(a1,b)+d(a1,r)d(b, r)=d\left(a_{1}, b\right)+d\left(a_{1}, r\right), contradicting maximality. Thus, we can remove a1a_{1} from GG to leave a graph G1G_{1}, which is still connected - in fact, still a tree with root rr. Now a similar argument shows that, if a2SG1a_{2} \in S \cap G_{1} is chosen to have maximal distance from rr, then a2a_{2} can have no descendants in G1G_{1} : any descendant would lie in SS, by transitivity, and it would also be farther from rr than a2a_{2}, violating maximality. So, deleting a2a_{2} from G1G_{1} gives another rooted tree, G2G_{2}. Then, we can choose a3SG2a_{3} \in S \cap G_{2} to be maximally distant from rr, and so forth. We continue removing vertices in this manner; since SS has at least nn elements, we can remove nn vertices. Thus, we choose distinct vertices a1,a2,,ana_{1}, a_{2}, \ldots, a_{n}, all of which lie in SS; this means that any two of these vertices are at distance 2n2\leq 2 n-2 from each other, and the remaining graph, G{a1,,an}G-\left\{a_{1}, \ldots, a_{n}\right\}, is still a tree. Now using the induction hypothesis, this remaining graph can be partitioned to form the remaining k1k-1 sets of vertices, and the desired partition of GG is accomplished.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.