Browse · MathNet
PrintIMO 2019 Shortlisted Problems
2019 geometry
Problem
On a flat plane in Camelot, King Arthur builds a labyrinth consisting of walls, each of which is an infinite straight line. No two walls are parallel, and no three walls have a common point. Merlin then paints one side of each wall entirely red and the other side entirely blue. At the intersection of two walls there are four corners: two diagonally opposite corners where a red side and a blue side meet, one corner where two red sides meet, and one corner where two blue sides meet. At each such intersection, there is a two-way door connecting the two diagonally opposite corners at which sides of different colours meet. After Merlin paints the walls, Morgana then places some knights in the labyrinth. The knights can walk through doors, but cannot walk through walls. Let be the largest number such that, no matter how Merlin paints the labyrinth , Morgana can always place at least knights such that no two of them can ever meet. For each , what are all possible values for , where is a labyrinth with walls?




Solution
First we show by induction that the walls divide the plane into regions. The claim is true for as, when there are no walls, the plane forms a single region. When placing the wall, it intersects each of the other walls exactly once and hence splits each of of the regions formed by those other walls into two regions. By the induction hypothesis, this yields regions, proving the claim.
Now let be the graph with vertices given by the regions, and with two regions connected by an edge if there is a door between them.
We now show that no matter how Merlin paints the walls, Morgana can place at least knights. No matter how the walls are painted, there are exactly intersection points, each of which corresponds to a single edge in . Consider adding the edges of sequentially and note that each edge reduces the number of connected components by at most one. Therefore the number of connected components of is at least . If Morgana places a knight in regions corresponding to different connected components of , then no two knights can ever meet.
Now we give a construction showing that, no matter what shape the labyrinth is, Merlin can colour it such that there are exactly connected components, allowing Morgana to place at most knights.
First, we choose a coordinate system on the labyrinth so that none of the walls run due north-south, or due east-west. We then have Merlin paint the west face of each wall red, and the east face of each wall blue. We label the regions according to how many walls the region is on the east side of: the labels are integers between 0 and .
We claim that, for each , the regions labelled are connected by doors. First, we note that for each with there is a unique region labelled which is unbounded to the north.
Now, consider a knight placed in some region with label , and ask them to walk north (moving east or west by following the walls on the northern sides of regions, as needed). This knight will never get stuck: each region is convex, and so, if it is bounded to the north, it has a single northernmost vertex with a door northwards to another region with label .
Eventually it will reach a region which is unbounded to the north, which will be the unique such region with label . Hence every region with label is connected to this particular region, and so all regions with label are connected to each other.
As a result, there are exactly connected components, and Morgana can place at most knights.
---
Alternative solution.
We give another description of a strategy for Merlin to paint the walls so that Morgana can place no more than knights.
Merlin starts by building a labyrinth of walls of his own design. He places walls in turn with increasing positive gradients, placing each so far to the right that all intersection points of previously-placed lines lie to the left of it. He paints each in such a way that blue is on the left and red is on the right.
For example, here is a possible sequence of four such lines :
We say that a region is "on the right" if it has -coordinate unbounded above (note that if we only have one wall, then both regions are on the right). We claim inductively that, after placing lines, there are connected components in the resulting labyrinth, each of which contains exactly one region on the right. This is certainly true after placing 0 lines, as then there is only one region (and hence one connected component) and it is on the right.
When placing the line, it then cuts every one of the previously placed lines, and since it is to the right of all intersection points, the regions it cuts are exactly the regions on the right.
The addition of this line leaves all previous connected components with exactly one region on the right, and creates a new connected component containing exactly one region, and that region is also on the right. As a result, by induction, this particular labyrinth will have connected components.
Having built this labyrinth, Merlin then moves the walls one-by-one (by a sequence of continuous translations and rotations of lines) into the proper position of the given labyrinth, in such a way that no two lines ever become parallel.
The only time the configuration is changed is when one wall is moved through an intersection point of two others:
Note that all moves really do switch between two configurations like this: all sets of three lines have this colour configuration initially, and the rules on rotations mean they are preserved (in particular, we cannot create three lines creating a triangle with three red edges inwards, or three blue edges inwards).
However, as can be seen, such a move preserves the number of connected components, so in the painting this provides for Arthur's actual labyrinth, Morgana can still only place at most knights.
Now let be the graph with vertices given by the regions, and with two regions connected by an edge if there is a door between them.
We now show that no matter how Merlin paints the walls, Morgana can place at least knights. No matter how the walls are painted, there are exactly intersection points, each of which corresponds to a single edge in . Consider adding the edges of sequentially and note that each edge reduces the number of connected components by at most one. Therefore the number of connected components of is at least . If Morgana places a knight in regions corresponding to different connected components of , then no two knights can ever meet.
Now we give a construction showing that, no matter what shape the labyrinth is, Merlin can colour it such that there are exactly connected components, allowing Morgana to place at most knights.
First, we choose a coordinate system on the labyrinth so that none of the walls run due north-south, or due east-west. We then have Merlin paint the west face of each wall red, and the east face of each wall blue. We label the regions according to how many walls the region is on the east side of: the labels are integers between 0 and .
We claim that, for each , the regions labelled are connected by doors. First, we note that for each with there is a unique region labelled which is unbounded to the north.
Now, consider a knight placed in some region with label , and ask them to walk north (moving east or west by following the walls on the northern sides of regions, as needed). This knight will never get stuck: each region is convex, and so, if it is bounded to the north, it has a single northernmost vertex with a door northwards to another region with label .
Eventually it will reach a region which is unbounded to the north, which will be the unique such region with label . Hence every region with label is connected to this particular region, and so all regions with label are connected to each other.
As a result, there are exactly connected components, and Morgana can place at most knights.
---
Alternative solution.
We give another description of a strategy for Merlin to paint the walls so that Morgana can place no more than knights.
Merlin starts by building a labyrinth of walls of his own design. He places walls in turn with increasing positive gradients, placing each so far to the right that all intersection points of previously-placed lines lie to the left of it. He paints each in such a way that blue is on the left and red is on the right.
For example, here is a possible sequence of four such lines :
We say that a region is "on the right" if it has -coordinate unbounded above (note that if we only have one wall, then both regions are on the right). We claim inductively that, after placing lines, there are connected components in the resulting labyrinth, each of which contains exactly one region on the right. This is certainly true after placing 0 lines, as then there is only one region (and hence one connected component) and it is on the right.
When placing the line, it then cuts every one of the previously placed lines, and since it is to the right of all intersection points, the regions it cuts are exactly the regions on the right.
The addition of this line leaves all previous connected components with exactly one region on the right, and creates a new connected component containing exactly one region, and that region is also on the right. As a result, by induction, this particular labyrinth will have connected components.
Having built this labyrinth, Merlin then moves the walls one-by-one (by a sequence of continuous translations and rotations of lines) into the proper position of the given labyrinth, in such a way that no two lines ever become parallel.
The only time the configuration is changed is when one wall is moved through an intersection point of two others:
Note that all moves really do switch between two configurations like this: all sets of three lines have this colour configuration initially, and the rules on rotations mean they are preserved (in particular, we cannot create three lines creating a triangle with three red edges inwards, or three blue edges inwards).
However, as can be seen, such a move preserves the number of connected components, so in the painting this provides for Arthur's actual labyrinth, Morgana can still only place at most knights.
Final answer
n+1
Techniques
Constructions and lociInduction / smoothingInvariants / monovariantsCartesian coordinates