A jailer lines up 10 prisoners in a row for a perverse game. All prisoners are facing forward and can only see the prisoners in front of him. As such, the prisoner in the back of the line can see all other prisoners and the prisoner at the front of the line can’t see anyone. The jailer then puts either a white or black hat on each prisoner’s head. Then the game begins. Starting from the back of the line, the jailer asks the prisoners, one by one, for the color of his or her hat. The prisoner lives only if he or she is correct about the color of their own hat.
As usual, the prisoners are told ahead of time that this game will occur and are given time to come up with a strategy. What’s their best strategy and, on average, how many prisoners will survive?Solution