A knight moves on a chessboard according the standard rules of chess, but in a totally random manner. Thus, at each move, the knight is equally likely to move to any of the squares it can reach. For example, a knight on a corner square will move to either of the two squares it can reach with probability , while a knight in the centre of the board can move to any one of eight possible squares, each with probability .
If the knight starts its journey at a corner square, what is the expected number of moves that it takes to return to its starting square?
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.
Every square on the chessboard has a scope , equal to the number of squares to which a knight on that square can move. The knight's journey is a described by a Markov chain, where the transition probability p i j of a knight moving from square i to square j is p i j = { s i − 1 0 if j is a knight’s move away from i , otherwise where s i is the scope of the square i . Note that s i p i j = s j p j i for all squares i , j , since the above expression is equal to 1 if squares i and j are a knight's move apart, and equal to 0 otherwise. This means that the Markov chain is time-reversible, and in particular that i ∑ s i p i j = i ∑ s j p j i = s j for all j , and hence this Markov chain has the (unique) invariant distribution π i = s s i where s = i ∑ s i is the sum of the scopes of all the squares. By standard theory (for a non-null recurrent irreducible Markov chain), the expected return time to a square i is equal to π i − 1 , and so is equal to s i s .
The 4 corner squares have scope 2 , while the eight squares adjacent to the four corners have scope 3 . There are 2 0 squares with scope 4 (the remaining 1 6 edge squares and the four squares "one diagonal in" from the corner squares). There are then 1 6 squares with scope 6 , while the 1 6 central squares have scope 8 . Thus s = 4 × 2 + 8 × 3 + 2 0 × 4 + 1 6 × 6 + 1 6 × 8 = 3 3 6 and hence the expected return time of the knight to a corner square is 2 3 3 6 = 1 6 8 .