Re: Friday Puzzler -- Find the Trustee
Larry Barrett
Consider a simpler problem, with just 3 doors.
Case 1: In this case the prisoner's strategy will be to open door 2. If the key is there he leaves. If the key is not there, then it was in room 1 or 3, and in this case the warden will move it to an adjacent room, which will be room 2. So the prisoner should go back to open door 2 the second time, and he will find the key and leave.
Case 2:If he opens door 1 (or 3) the first time and the key is not there, then it must be in room 2 or 3. If in room 2, the warden will move it to room 1 (prob=1/2) or to room 3 (prob=1/2). If the key was in room 3 the warden will move it to room 2, the only available adjacent room. So the prisoner's best strategy is to open door 2 on his second try. If he finds it he leaves, else he is in the same situation as case 1.
So his best strategy is to first open door 2, and then open it again if the first try fails.
I suspect that a similar strategy will work for the case of 7 doors - start with the middle door, door 4, but have not thought it through. If the first try fails, then he could move to door 2 or door 6, the middle doors on either side of door 4.