Puzzles/100囚人について、ここに記述してください。

パズルの国のひとたちは100人の囚人が好きだ。

1. スイッチひとつ

問題もいろいろ。

https://www.cut-the-knot.org/Probability/LightBulbs.shtml

https://www.maa.org/press/maa-reviews/mathematical-puzzlesa-connoisseurs-collection

https://sites.math.washington.edu/~morrow/336_11/papers/yisong.pdf

100 Prisoners and A light Bulb Yisong Son

できるだけ、短期間で釈放されるのが望ましい。

2. The riddleThe riddle is as followings:

One hundred prisoners have been newly ushered into prison.

The warden tells them that starting tomorrow, each of them will be placed in an isolated cell, unable to communicateamongst each other.

The prisoner will be able to observe the current state ofthe light bulb.

If he wishes, he can toggle the light bulb.

He also has the option of announcing that he believes all prisoners have visited the interrogation room at somepoint in time.

If this announcement is true, then all prisoners are set free, but if it is false, all prisoners are executed.

The warden leaves, and the prisoners huddle together to discuss their fate.

Can they agree on a protocol that will guarantee their freedom?


http://www.techinterviewpuzzles.com/2010/06/warden-and-23-prisoners-google.html