Browse · MathNet
PrintTeam Selection Test
Turkey counting and probability
Problem
Graph Air (GA) is running two way flights between some cities of a country so that it is possible to travel between any two cities using GA flights. It turned out that after adding one flight, one may travel between any two cities by using at most 17 GA flights. Determine the maximal possible number (if exists) of GA flights necessary to use for traveling between any two cities of a country before adding the flight.
Solution
The answer is . Let be cities so that only and are connected for . The travel between and uses at least flights. After adding flights between and , it is possible to travel between any pair of cities by using at most flights. Therefore, the answer is at least .
Let us show that flights are sufficient. Let denote the minimal possible number of flights between the cities and . On the contrary, suppose that for some cities and and a path with minimal number of flights before adding a flight between the cities and is . After adding the flight between and , and . By definitions, both of the paths with minimal number of flights from to and from to have to use the flight between and . Without loss of generality we may assume that the path from to is . Then note that where , .
Similarly, the path from to is with , and , or the path from to is with , and . Then there exists a travel from to using at most flights or using at most flights. Contradiction.
Let us show that flights are sufficient. Let denote the minimal possible number of flights between the cities and . On the contrary, suppose that for some cities and and a path with minimal number of flights before adding a flight between the cities and is . After adding the flight between and , and . By definitions, both of the paths with minimal number of flights from to and from to have to use the flight between and . Without loss of generality we may assume that the path from to is . Then note that where , .
Similarly, the path from to is with , and , or the path from to is with , and . Then there exists a travel from to using at most flights or using at most flights. Contradiction.
Final answer
34
Techniques
Graph Theory