News for hackers. Stuff that matters.
Re:Prison Switcharoo by jessedhillon on Sunday February 23, 2014 @02:19PM (#7287145)
Is it me or does this solution rely on the belief in a certain order to the random picking of prisoners? If the counter switches to an off state 44 times, that doesn't tell him that all 22 other prisoners gave toured through the room. A guard (random algorithm) could have just selected the same two prisoners -- the counter and another guy -- 22 times. Am I missing something?
Re:Prison Switcharoo by freshhawk on Sunday February 23, 2014 @02:44PM (#7287248)
You are missing the cooperation of the other prisoners, they have agreed to only give information to the counter once no matter how many times they are sent into the room by the guard.