There are towns in a country. Some of the towns are connected with one way roads and between any two towns it is possible to have several roads in both directions. It is known that for any two towns and one can travel from to , or from to or both. Find the minimum number of roads that have to be built such that one can travel in both directions between any two towns.
, 2022
Solution
We prove that the answer is . Consider towns numbered from to and let from town there is a road to town , . Obviously the condition is fulfilled and we need at least one new road, thus the answer is greater than .
We show that there is a town from which one can travel to all other towns. For every town consider the number of towns that can be visited from this town. Choose a town for which this number is the greatest. There exists a town such that one can not travel from to . According to the condition of the problem one can travel from to and consequently to all towns starting from . This contradicts the maximality of .
By analogy there exists a town that is reachable from all other towns. Therefore an edge from to satisfies the condition of the problem.