美文网首页
/2616PZ/ :: The Circular Prison

/2616PZ/ :: The Circular Prison

作者: KeYLock | 来源:发表于2016-07-03 22:54 被阅读0次

Background

You are the president of a secret society of mathematicians with n members, including yourself. No one in the society knows what n is. The dictator of the world, in an effort to erase mathematics from human history, has finally managed to capture all n members of the society, and has placed them in prison.
The prison has a funny design. There are n identical soundproof, windowless prison cells arranged in a circle, each containing a mathematician. The cells all have a light switch the prisoners can use, but the wiring system is screwed up, so the switch controls the light bulb in the clockwise neighboring cell. Furthermore, the switch is only capable of delivering a single flash of light at noon each day. Specifically, if this switch is set to "on" at noon, it will flash the next cell, and do nothing otherwise.
The prison warden worries that the prisoners might try to communicate using the lights, so every night at midnight, he fills all of the cells with knockout gas, cleans the cells so they can't communicate by leaving messages, sets all of the light switches to "off", and rearranges the prisoners in whatever fashion he pleases (still one prisoner per cell).

Questions

One day, the warden visits your cell. He confesses that he loves mathematics, and decides to offer your society a game to win their freedom. If any of the prisoners are able to figure out what n is, they may shout out loud "There are n prisoners!" (the cells are monitored with security cameras/mics). If they are correct, all prisoners will go free, and if not, they will all be executed.
The warden allows you to devise a plan for everyone else to follow. He will make n-1 copies of this plan, and allow every other prisoner to read it. The warden of course will also read your plan, and will perform the cell rearrangements in such a way to make it fail if he can.
What plan allows the prisoners to guarantee their freedom?
Extra for Experts: Can you find a plan which doesn't require the prisoners to make random decisions?


Notes

There is no lateral thinking required to solve this. Assume the prisoners have perfect, infinite memory, including knowledge of how many days have elapsed.
The warden is a god, but all you prisoners have unlimited life. :P
It is significant that you are one of the prisoners, and that you devise the plan. It means that while all n−1 other prisoners must follow the same strategy, you may follow a different strategy.
Extra for Experts" condition means there must exist a function B(n) such your plan is guaranteed to stop after B(n) days when there are n prisoners.


Answer

相关文章

网友评论

      本文标题:/2616PZ/ :: The Circular Prison

      本文链接:https://www.haomeiwen.com/subject/ukscjttx.html