Maths Olympiad Prep

Library / /85 of 92

Combinatorics Difficulty 7.5 National olympiad, round 2 Prove it Iran

Numbers mm and nn are given positive integers. There are mnmn people in a party, standing in the shape of an m×nm \times n grid. Some of these people are police officers and the rest are the guests. Some of the guests may be criminals. The goal is to determine whether there is a criminal between the guests or not.

Two people are considered adjacent if they have a common side. Any police officer can see their adjacent people and for every one of them, know that they're criminal or not. On the other hand, any criminal will threaten exactly one of their adjacent people (which is likely an officer!) to murder. A threatened officer will be too scared, that they deny the existence of any criminal between their adjacent people.
Find the least possible number of officers such that they can take position in the party, in a way that the goal is achievable. (Note that the number of criminals is unknown and it is possible to have zero criminals.)

Solution

Answer. mn2+1\left\lfloor \frac{mn}{2} \right\rfloor + 1.

There are two steps for the proof, first showing that this number is enough, and for any smaller number of officers, show a way for some of the guests to be criminals and to threaten the officers such that the existence of the criminals remains unknown.

For the first part, consider two cases:

* mnmn is an odd number.

Consider the coloring of the grid with two colors, such that no two adjacent nodes are of the same color. Place the [mn2]+1\left[\frac{mn}{2}\right] + 1 officers on the places that have the majority color. Since any criminal can threaten exactly one person (which in this case, is definitely an officer), and since the number of officers is greater than the number of the guests (and so, greater than the number of criminals), if there exists a criminal between the guests, there will be an officer, adjacent to a criminal, whom is not threatened and can identify the criminal.

* mnmn is an even number.

Without loss of generality, assume that nn is an even number. Consider the same coloring of the nodes of the grid. Again, mn2\frac{mn}{2} of the officers can take position at the nodes with the majority color, and the last officer can take position at an arbitrary node with the opposite color. Similar to the previous case, since the number of officers is greater than the largest possible number of criminals, one officer will be able to identify a criminal, if there's any.

Now for the second part, consider a group of people such that the number of police officers is not greater than half of the total. It suffices to show a way for some of the guests to be criminals and to threaten the officers such that the officers will fail to reach the goal.

Construct a graph with mnmn vertices, each vertex representing a person in the party. Partition the nodes of the graph into two sections AA and BB, where every node in AA represents a police officer and every node in BB represents a guest. Construct an edge, connecting a node from AA to a node from BB if the people they represent are adjacent in the party.

Figure 1

The assumption is that AB|A| \le |B|. Also, any node in BB is connected to at least another node in AA, because otherwise, it suffices for the person representing this node to be a criminal; Officers would not be able to identify this person.

It suffices to prove that there exists a non-empty subset of the vertices of AA, like XX such that there is a matching between the vertices of XX and the vertices of a subset of BB, like YY, and the vertices of YY are not connected to any other node outside of XX.

If the graph contains a matching, including all the vertices of AA, the desired claim is concluded; Otherwise, according to Hall's Theorem, there exists a subset SS of AA, such that the number of the vertices of BB that are connected to a node of this subset, is less than the number of the vertices of SS itself. Without loss of generality, let SS be the largest subset with the described property. Let N(S)N(S) be the subset of the nodes of BB that are connected to some vertex of SS.

Figure 2

If vertices of both SS and N(S)N(S) are removed, the assumptions of Hall's theorem holds true. Because if there is a subset of A/SA/S like SS' where the number of the nodes of B/N(S)B/N(S) are less than the number of the vertices of SS', then SSS \cup S' in AA has the same described property as SS, thus SS could not be the largest subset with that property. Now, considering the complete matching between the nodes of this new graph, the claim is concluded; Because the nodes of B/N(S)B/N(S) are not connected to any node outside of A/SA/S. Note that ASA \neq S, because all vertices of BB have the degree of at least one, and also AS|A| \leq |S|. Therefore the given number is proved to be the correct answer. \square

Therefore the given number is proved to be the correct answer. \blacksquare

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.