The Country Of Brilliant

Level pending

Let G G be a graph with 2014 2014 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 v 1 , v 2 , v_1, v_2, let f ( v 1 , v 2 ) f(v_1, v_2) denote the minimum number of vertices (including v 2 v_2 but excluding v 1 v_1 ) one must go through to travel from v 1 v_1 to v 2 v_2 (if one cannot reach v 2 v_2 from v 1 , v_1, f ( v 1 , v 2 ) = f(v_1, v_2)= \infty ). For a given vertex v , v, let M ( v ) M(v) denote the maximum possible value of f ( v , j ) f(v, j) where j j ranges over all other vertices of G . G. Let N ( G ) N(G) denote the minimum possible value of M ( v ) M(v) where v G . v \in G. As G G ranges over all possible graphs with 2014 2014 vertices where each pair of vertices is connected by a directed line, find the maximum value of N ( G ) . N(G).

Details and assumptions

  • The maximum value of N ( G ) N(G) should be independent of the configuration of G . G.

  • 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 A A to C C but not from C C to A . A. One can directly travel from D D to A A but not from A A to D . D. In this particular case, we have f ( A , D ) = 2 , f(A,D)= 2, since the shortest path one can take from A A to D D goes through two vertices excluding A A (there are two such paths: A C D A \rightarrow C \rightarrow D and A B D A \rightarrow B \rightarrow D ). It can be verified that max f ( A , v ) = 2 , \max f(A, v)=2, which is attained when v { D , E } , v \in \{D, E\}, so M ( A ) = 2. M(A)=2.

  • 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.


The answer is 2.

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.

1 solution

First, we shall show that there exists a graph G G for which N ( G ) > 1. N(G)>1. To do this, we just have to construct a graph where there exists no vertex v v for which M ( v ) = 1. 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 v_1, v_2, v_3 and construct a graph where one can go from vertex v 1 v_1 to all other vertices except v 2 , v_2, and one can go from v 3 v_3 to v 2 . v_2.

Image link: http://s27.postimg.org/lemsd82wz/Untitled.png Image link: http://s27.postimg.org/lemsd82wz/Untitled.png

Note: In the image above the connections with v 2 , v 3 v_2, v_3 to other vertices is not shown.

This graph satisfies all our requirements.

Now, we shall show that N ( G ) 2 N(G) \leq 2 for all such graphs G . G. In other words, we shall show that there exists a vertex v v such that f ( v , j ) f(v,j) is either 1 1 or 2 , 2, where j j is any other vertex belonging to G . G.

Label the vertices v 1 , v 2 , . . . , v 2014 . v_1, v_2, ..., v_{2014}. For all n [ 1 , 2014 ] , n \in [1, 2014], let S n S_n denote the set of vertices that can be directly reached from vertex v n . v_n. Note that a ∉ S b b S a a \not \in S_b \implies b \in S_a for all distinct vertices a , b . a,b. Consider a n n for which S n |S_n| is maximized. For any v j S n , v_j \in S_n, we have f ( v n , v j ) = 1. f(v_n, v_j)=1. We shall show that for all v j ∉ S n , v_j \not \in S_n, f ( v n , v j ) = 2. f(v_n, v_j)= 2. Note that if v n S k v_n \in S_k where v k S n v_k \in S_n for some k , k, we will be done (the optimal path being v n v k v j v_n \rightarrow v_k \rightarrow v_j ) . Suppose not, so for all v k S n , v_k \in S_n, v k S j . v_k \in S_j. This implies S n S j . S_n \subset S_j. Also, v n S j , v_n \in S_j, so S j S n + 1 , |S_j| \geq |S_n|+1, which is a contradiction since we have assumed S n |S_n| to be maximized.

In conclusion, our answer is 2 . \boxed{2}. Note that the answer is independent of the number of vertices in G . G.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...