Note that there are some explanatory texts on larger screens.

plurals
  1. POFinding your own number in a box
    primarykey
    data
    text
    <p>100 (or some even number 2N :-) ) prisoners are in a room A. They are numbered from 1 to 100.</p> <p>One by one (from prisoner #1 to prisoner #100, in order), they will be let into a room B in which 100 boxes (numbered from 1 to 100) await them. Inside the (closed) boxes are numbers from 1 to 100 (the numbers inside the boxes are randomly permuted!).</p> <p>Once inside room B, each prisoner gets to open 50 boxes (he chooses which one he opens). If he finds the number that was assigned to him in one of these 50 boxes, the prisoner gets to walk into a room C and all boxes are closed again before the next one walks into room B from room A. Otherwise, all prisoners (in rooms A, B and C) gets killed.</p> <p>Before entering room B, the prisoners can agree on a strategy (algorithm). There is no way to communicate between rooms (and no message can be left in room B!).</p> <p>Is there an algorithm that maximizes the probability that all prisoners survive? What probability does that algorithm achieve?</p> <p>Notes:</p> <ul> <li><p>Doing things randomly (what you call 'no strategy') indeed gives a probability of 1/2 for each prisoner, but then the probability of all of them surviving is 1/2^100 (which is quite low). One can do much better!</p></li> <li><p>The prisoners are not allowed to reorder the boxes!</p></li> <li><p>All prisoners are killed the first time a prisoner fails to find his number. <em>And</em> no communication is possible.</p></li> <li><p><b>Hint</b>: one can save more than 30 prisoners <em>on average</em>, which is much more that (50/100) * (50/99) * [...] * 1</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload