Lone ant on a cube

There exists a cube in space. One of its corners is marked. An ant starts from a random unmarked corner and moves only along the edges of the cube. If the ant is at a corner, it chooses an edge randomly and moves to an adjacent corner with uniform velocity.The ant starts moving when the clock is at zero, and moves continuously with constant speed. If it is known that the ant traverses a side of the cube in one second, find the expected time elapsed(in seconds) before it reaches the marked corner for the first time. If the answer can be expressed as a b \frac{a}{b} in simplest form, enter ( a + 5 ) b \frac{(a+5)}{b} .

Liked this? Try similar problems in the set: Ants on an adventure!

Inspiration


The answer is 9.

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

Nicola Mignoni
Sep 18, 2018

The problem can be modelled as a Markov chain . Let be S = { 1 , 2 , 3 , 4 } S=\{1,2,3,4\} the state space, in which 4 4 is the marked point, 3 3 are the three points directly connected to the marked one, 1 1 is the farthest point from the marked point and 2 2 are the three points directly connected to 1 1 . Let be P = p i j \textbf{P}=p_{ij} the transition matrix in which each element represent the probability of passing from state i i to j j for i , j { 1 , 2 , 3 , 4 } i,j \in \{1,2,3,4\}

P = ( 0 1 0 0 1 3 0 2 3 0 0 2 3 0 1 3 0 0 0 1 ) \displaystyle \textbf{P}=\begin{pmatrix} 0 & 1 & 0 & 0 \\ \frac{1}{3} & 0 & \frac{2}{3} & 0 \\ 0 & \frac{2}{3} & 0 & \frac{1}{3} \\ 0 & 0 & 0 & 1 \end{pmatrix}

Notice that p 4 j p_{4j} is an absorbing state. From Markov process theory, P \textbf{P} is already written in the canonical form, where Q \textbf{Q} is

Q = ( 0 1 0 1 3 0 2 3 0 2 3 0 ) I Q = ( 1 1 0 1 3 1 2 3 0 2 3 1 ) \displaystyle \textbf{Q}=\begin{pmatrix} 0 & 1 & 0 \\ \frac{1}{3} & 0 & \frac{2}{3} \\ 0 & \frac{2}{3} & 0 \end{pmatrix} \hspace{5pt} \Longrightarrow \hspace{5pt} \textbf{I}-\textbf{Q}=\begin{pmatrix} 1 & -1 & 0 \\ -\frac{1}{3} & 1 & -\frac{2}{3} \\ 0 & -\frac{2}{3} & 1 \end{pmatrix}

Hence,

N = ( I Q ) 1 = ( 5 2 9 2 3 3 2 9 2 3 1 3 3 ) \displaystyle \textbf{N}=(\textbf{I}-\textbf{Q})^{-1}=\begin{pmatrix} \frac{5}{2} & \frac{9}{2} & 3 \\ \frac{3}{2} & \frac{9}{2} & 3 \\ 1 & 3 & 3 \end{pmatrix} .

So, E i [ 4 ] = j = 1 4 n i j \displaystyle E_{i}[4]=\sum_{j=1}^{4} n_{ij} is the expected value of reaching 4 4 starting from i i . If we sum up, we'll get E 1 [ 4 ] = 10 E_1[4]=10 , E 2 [ 4 ] = 9 E_2[4]=9 , E 3 [ 4 ] = 7 E_3[4]=7 . Since the starting state is given by the stochastic vector s 0 = ( 1 7 3 7 3 7 0 ) \displaystyle \textbf{s}_0=\begin{pmatrix} \frac{1}{7} & \frac{3}{7} & \frac{3}{7} & 0 \end{pmatrix} , where s i s_i is the probability of starting the process at i i , the expected value of reaching 4 4 , E [ 4 ] E[4] , is

E [ 4 ] = s 1 E 1 [ 4 ] + s 2 E 2 [ 4 ] + s 3 E 3 [ 4 ] + s 4 E 4 [ 4 ] = 58 7 = a b E[4]=s_1 \cdot E_1[4]+s_2 \cdot E_2[4]+s_3 \cdot E_3[4]+s_4 \cdot E_4[4]=\displaystyle \frac{58}{7}=\frac{a}{b}

Eventually

a + 5 b = 9 \displaystyle \frac{a+5}{b}=\boxed{9}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...