Connectedness Testing
Source: 2021 Taiwan TST Round 2 Mock Day 2 P6
April 10, 2021
graph theorycombinatoricsTaiwan
Problem Statement
Let be two positive integers. IMO-nation has villages, some of which are connected by a road. For any two villages, the distance between them is the minimum number of toads that one needs to travel from one of the villages to the other, if the traveling is impossible, then the distance is set as infinite.Alice, who just arrived IMO-nation, is doing her quarantine in some place, so she does not know the configuration of roads, but she knows and . She wants to know whether the furthest two villages have finite distance. To do so, for every phone call she dials to the IMO office, she can choose two villages, and ask the office whether the distance between them is larger than, equal to, or smaller than . The office answers faithfully (infinite distance is larger than ). Prove that Alice can know whether the furthest two villages have finite distance between them in at most calls.Proposed by usjl and Cheng-Ying Chang