Let be a graph with vertices. Each pair of vertices is connected by a directed line (line with an arrow pointing at one direction). One can directly travel from one vertex to another iff the line joining those vertices points to the other vertex. Given two vertices let denote the minimum number of vertices (including but excluding ) one must go through to travel from to (if one cannot reach from ). For a given vertex let denote the maximum possible value of where ranges over all other vertices of Let denote the minimum possible value of where As ranges over all possible graphs with vertices where each pair of vertices is connected by a directed line, find the maximum value of
Details and assumptions
The maximum value of should be independent of the configuration of
As an explicit example, here's a graph with five vertices where each pair of vertices is connected by a directed line.
In this case, one can directly travel from to but not from to One can directly travel from to but not from to In this particular case, we have since the shortest path one can take from to goes through two vertices excluding (there are two such paths: and ). It can be verified that which is attained when so
Since the original wording of this problem got a lot of disputes and clarification requests, I've changed the wording (although it's still essentially the same problem with a minor [read: major] correction; thanks to whoever launched that dispute!). I am sorry for the original problem being incorrect and vague. Is it more clear now?
This problem is inspired by an ISI entrance examination problem.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
First, we shall show that there exists a graph G for which N ( G ) > 1 . To do this, we just have to construct a graph where there exists no vertex v for which M ( v ) = 1 . In other words, we have to construct a graph where there exists no vertex from where one can directly go to all other vertices. This is trivial: take three vertices v 1 , v 2 , v 3 and construct a graph where one can go from vertex v 1 to all other vertices except v 2 , and one can go from v 3 to v 2 .
Note: In the image above the connections with v 2 , v 3 to other vertices is not shown.
This graph satisfies all our requirements.
Now, we shall show that N ( G ) ≤ 2 for all such graphs G . In other words, we shall show that there exists a vertex v such that f ( v , j ) is either 1 or 2 , where j is any other vertex belonging to G .
Label the vertices v 1 , v 2 , . . . , v 2 0 1 4 . For all n ∈ [ 1 , 2 0 1 4 ] , let S n denote the set of vertices that can be directly reached from vertex v n . Note that a ∈ S b ⟹ b ∈ S a for all distinct vertices a , b . Consider a n for which ∣ S n ∣ is maximized. For any v j ∈ S n , we have f ( v n , v j ) = 1 . We shall show that for all v j ∈ S n , f ( v n , v j ) = 2 . Note that if v n ∈ S k where v k ∈ S n for some k , we will be done (the optimal path being v n → v k → v j ) . Suppose not, so for all v k ∈ S n , v k ∈ S j . This implies S n ⊂ S j . Also, v n ∈ S j , so ∣ S j ∣ ≥ ∣ S n ∣ + 1 , which is a contradiction since we have assumed ∣ S n ∣ to be maximized.
In conclusion, our answer is 2 . Note that the answer is independent of the number of vertices in G .