Skip to main content
OlympiadHQ

Browse · MathNet

Print

Ireland

Ireland counting and probability

Problem

Each of spies, operating in a certain country, is to assign himself to one of three missions, such that every mission has at least one spy assigned. At this point, no two spies can communicate. Headquarters will then sequentially issue a number of passwords, each of which allows a single pair of spies to communicate. Passwords may only be issued to a pair of spies who share the same mission and who cannot already communicate directly. However, apart from these rules, headquarters may assign passwords in any fashion.

A mission is said to be networked if any two spies on that mission can communicate (possibly through other spies). Let denote the number of passwords issued for which, regardless of how headquarters assigns these passwords, the spies can be certain that at least one mission will be networked. How should the spies choose their missions in order to minimize ?
Solution
We represent the given information by a graph the vertices of which correspond to the spies. Two vertices are connected iff the corresponding spies share a password which allows them to communicate directly. We need to ensure that at least one of the sub-graphs formed by spies sharing the same mission is connected.

To find the number of edges needed to ensure that a graph with vertices is connected, no matter how the edges are placed, we first observe that the complete graph with vertices has edges. We next prove that it is sufficient to have edges. To see this, assume that the graph is not connected. Then there exist two sub-graphs, not connected to each other, one with and the other with vertices. The number of edges in such a graph is at most

If the sizes of the three missions are , and , the above shows that issuing passwords, ensures that at least one mission is networked. Finally, we need to minimise subject to the condition . Because we obtain with equality iff . This shows that the minimum number of passwords needed to ensure that at least one mission is networked is . This number is sufficient iff the three missions are of equal size.
Final answer
Assign the spies evenly among the three missions: 39, 39, 39. The minimal guaranteed number of passwords is 2110.

Techniques

Graph TheoryLinear and quadratic inequalities