A graph is constructed iteratively according to the following algorithm. The graph starts as a single vertex. With probability p , the graph stops here. Otherwise, 3 new vertices are constructed and joined to this vertex. If we have a graph with more than one vertex, for each vertex created at the previous stage, 3 new vertices are construed and joined to it with probability 1 − p . We repeat this process until no new vertices are added. When the expected number of vertices in this graph is 1 0 0 , the value of p can be expressed as b a where a and b are coprime positive integers. What is the value of a + b ?
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.
Many students misinterpreted the question, yet still got the correct answer. Notice that in the question, each vertex gets 3 neighbours or not, independent of whether the other vertices do. Many students approached this question as if the graph grew in complete layers. Due to the parameters of the question, and the nature of expectation, the answer works out to be the same, so many students were able to get the correct answer while doing the wrong question.
Assuming the start time is 0 , and the algorithm processes 1 step by time 1 passes.
On time t , the graph has a possibility to constructs 3 t new vertices.
The birth probability of each vertex is ( 1 − p ) t .
So
E x p = t = 0 ∑ ∞ 3 t ∗ ( 1 − p ) t = 1 − 3 ( 1 − p ) 1 (when p > 3 2 .)
Now E x p = 1 0 0 . Then We get p = 1 0 0 6 7 .
Giving the answer of a + b = 1 6 7 .
Let V be the number of vertices in the graph.
There is a p probability that the graph stops with 1 vertex.
There is a 1 − p probability that the graph has the original 1 vertex and three "branches" with V 1 , V 2 , V 3 vertices.
Therefore, E [ V ] = p ⋅ 1 + ( 1 − p ) ⋅ ( 1 + E [ V 1 + V 2 + V 3 ] ) = 1 + ( 1 − p ) ( E [ V 1 ] + E [ V 2 ] + E [ V 3 ] ) .
The process to generate each of the 3 branches is identical to the process to generate the overall graph. Thus, E [ V 1 ] = E [ V 2 ] = E [ V 3 ] = E [ V ] = 1 0 0 .
Thus, the equation becomes: 1 0 0 = 1 + ( 1 − p ) ⋅ 3 0 0 .
Solving yields p = 1 0 0 6 7 = b a . Since g cd ( 6 7 , 1 0 0 ) = 1 it follows that a = 6 7 , b = 1 0 0 , and a + b = 1 6 7 .
Let E ( p ) be the expected number of vertices of the graph for probability p.
At the first step, a vertex is always created. With probability p, we stop there. If not, we are essentially initiating three versions of our original problem since vertices are added or not to existing vertices independently. Using linearity of expectation, we obtain E ( p ) = 1 + 3 ( 1 − p ) E ( p )
This has the solution E ( p ) = 3 p − 2 1 . Setting E ( p ) = 1 0 0 gives us p = 1 0 0 6 7 .
Now, we need to make sure that this answer is really meaningful. For example, if p were zero, E ( p ) is really infinite since the procedure never stops, but our foumula would give us E ( p ) = − 2 1 which is meaningless.
Thus we need to show that the procedure is expected to terminate for p = 1 0 0 6 7 . Assume that the number of newly created vertices at a given stage is N . Then the expected number of newly created vertices at the next stage is 3 N ( 1 − p ) . For the procedure to be expected to terminate, we need 3 N ( 1 − p ) ≤ N . That is, p ≥ 3 2 . Since 1 0 0 6 7 ≥ 3 2 , we are done.
Expected number of new Nodes = E
E = p * 0 + (1-p) * (3 + 3 E); aw with 1-p probability we have 3 nodes and each will have E as its expected new nodes.
E = 99( given total node = 100, so expected number of new nodes = 99)
99* ( 3p -2) = 3 - 3p
p = 201/300 = 67/100
a = 67, b =100 ; a+b = 167
Expected number of vertices in graph = 1+(1-p) 3+(1-p)^2 *3^2+...... This forms a GP with r=(1-p) 3, It is given that Expected number of vertices in graph is 100. So , 100= 1+(1-p) 3+(1-p)^2 *3^2+...... 100=1+ (1-p) 3/(1-(1-p) 3) . 3-3 p=99-297(1-p) . 3-3 p=99-297+297 p . 300-99=300*p . p=201/300=67/100=a/b . a+b=67+100=167
The expected number of vertices e ( p ) satisfies
e ( p ) = p ( 1 ) + ( 1 − p ) ( 1 + 3 e ( p ) ) .
Setting e ( p ) = 1 0 0 , and solving for p ,. we get p = 6 7 / 1 0 0 .
Let E be the expected number of vertices in the graph. With probability p , the graph has 1 vertex, and with probability 1 − p , we have the initial vertex and repeat this process on 3 more vertices, so the expected number of vertices will be 1 + 3 E . This gives the relation
E E E 1 + 2 E p = p + ( 1 − p ) ( 1 + 3 E ) = p + 1 − p + 3 E ( 1 − p ) = 1 + 3 E − 3 E p = 3 E p = 3 E 1 + 2 E \
When E = 1 0 0 , we get p = 1 0 0 6 7 , so a + b = 6 7 + 1 0 0 = 1 6 7 .
For the simplicity of calculation, let m = 1 − p , i.e. let m be the probability that more vertices are constructed and let 1 − m be the probability that no more vertices are constructed. From inspection, it becomes clear that if no additional vertices are constructed then there are 3 0 = 1 vertices; if additional vertices are constructed once then there are 3 0 + 3 1 = 4 vertices; and, generally, if additional vertices are constructed n times then there are i = 0 ∑ n 3 i vertices.
Next, we must apply the probability of obtaining each outcome, multiply it by the outcome's respective number of vertices, and add everything together to find what value of m will make the expected value be 1 0 0 . So, the expected value is 1 ( 1 − m ) + 4 ( m ) ( 1 − m ) + 1 3 ( m 2 ) ( 1 − m ) + 4 0 ( m 3 ) ( 1 − m ) + . . . , which equals 1 0 0
This series is geometric. By expanding each term, we come to the following: 1 + 3 m + 9 m 2 + 2 7 m 3 + . . . , an infinite geometric series with r = 3 m and t 1 = 1
> Since the k t h term is i = 1 ∑ k 3 i − 1 ∗ ( m i − 1 − m i ) and the k + 1 t h term is i = 1 ∑ k + 1 3 i − 1 ∗ ( m i − 1 − m i ) , the second part of the k t h term added to the first part of the k + 1 t h term will always result in 3 k m k . Therefore, the series is telescopic and the trend continues.
Using the formula for the sum of convergent geometric series, we come to 1 − 3 m 1 = 1 0 0 → m = 1 0 0 3 3 → p = 1 0 0 6 7 ⇒ a + b = 1 6 7
Let X be the number of vertices of the graph. At the 0-th stage of the process we have just one vertex. The probability that the process stops there, is given by P ( X = 1 ) = p . Each time, new edges grow at all the vertices created at the previous stage with probability ( 1 − p ) . Hence the process will stop at the k-th stage with probability p ( 1 − p ) k . At this stage we have 1 + 3 + 3 2 + … + 3 k = 3 − 1 3 k + 1 − 1 = 2 1 ( 3 k + 1 − 1 ) vertices. Thus: P ( X = 2 1 ( 3 k + 1 − 1 ) ) = p ( 1 − p ) k . The expected number of vertices is E X = Σ k = 0 ∞ 2 1 ( 3 k + 1 − 1 ) p ( 1 − p ) k = 2 1 p ( Σ k = 0 ∞ 3 k + 1 ( 1 − p ) k − Σ k = 0 ∞ ( 1 − p ) k ) = 2 1 p ( 3 ⋅ Σ k = 0 ∞ ( 3 ( 1 − p ) ) k − p 1 ) = 2 ( 3 p − 2 ) 3 p − 2 1 = 3 p − 2 1 . The expected number of vertices is 100. We have to solve 3 p − 2 1 = 1 0 0 . We thus obtain p = 6 7 / 1 0 0 .
Problem Loading...
Note Loading...
Set Loading...
First, we want to compute the expected number of increment of vertices for the n th iteration.
For example, for the 1st iteration (i.e growth from 1 -> 3 vertices), the expected number of vertices increment is 3 × ( 1 − p ) .
For the second iteration, the expected number of vertices increment is ( 3 × ( 1 − p ) ) 2 . This continues on, and so for the n th iteration, the we have the expected number of vertices increment to be ( 3 × ( 1 − p ) ) n .
Therefore, let X be the total number of vertices increment, and X 1 , X 2 , … , X n denote the vertices increment in the n th iteration. We know that the expected number of vertices is 100, so:
1 0 0
= 1 + E ( X )
= 1 + E ( X 1 ) + E ( X 2 ) + ⋯ + E ( X n ) + ⋯
= 1 + 1 − 3 × ( 1 − p ) 3 × ( 1 − p ) .
The last step was through application for the infinite sum of a geometric progression, because E ( X 1 ) + E ( X 2 ) + ⋯ + E ( X n ) + ⋯ is a geometric series sum with first term = 3 × ( 1 − p ) and common ratio = 3 × ( 1 − p ) .
Solving for p , we get p = 1 0 0 6 7 .
Therefore a + b = 1 6 7 .