On the first of september 100 immortal prisoners with a life sentence are suggested an early release if they can find a solution to a problem.

 There’s a room with a hanging lightbulb. Every day, starting on the 1st of September, warder will let one prisoner into this room. When prisoner is in, he can see, whether lamp is on or off, or switch it. Each prisoner will be asked a question: “Whether every prisoner has been here?”. If he says “no”, game goes one. If he says yes and this is a correct answer, everyone is released. If he says yes and he’s wrong – everyone is executed.

 Warders can choose prisoners randomly, one prisoner can be choose as many times as warder wants. Prisoners do not see each other, cannot talk and cannot see the lightbulb; they can talk only once – on the 1st of September, before the game starts.

 Find an optimal strategy, estimate, how long it may take for prisoners to be released.

 

6 Responses to A problem for real engineers

  1. Siddhu Warrier says:

    Prison repr. turns light off.Each of the others toggles it on just once.If light on whn repr. back,add +1 to num of prisoners.

  2. Siddhu Warrier says:

    I assume prisoners can talk to each other to elect/select a leader before the thing starts.

  3. Roman Kirillov says:

    Yep, that’s a correct answer :)

  4. Siddhu Warrier says:

    How long will it take? Too f*ckin long! ;)

  5. Roman Kirillov says:

    They’re immortal – and all serve their life sentences, so don’t think they care as long as it’ll get them out eventually!

  6. Siddhu Warrier says:

    Well I guess you could calc the time by assumin a uniform distrib of call freq to the leader,n using Bayesian inference.But cant be bothered.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">