23 囚犯問題 - 拼圖

By Elizabeth
at 2005-05-15T13:21
at 2005-05-15T13:21
Table of Contents
The warden meets with 23 new prisoners when they arrive. He tells them,
"You may meet today and plan a strategy. But after today, you will be
in isolated cells and will have no communication with one another.
"In the prison is a switch room, which contains two light switches
labeled A and B, each of which can be in either the 'on' or the 'off'
position. I am not telling you their present positions. The switches
are not connected to anything.
"After today, from time to time whenever I feel so inclined, I will
select one prisoner at random and escort him to the switch room. This
prisoner will select one of the two switches and reverse its position.
He must move one, but only one of the switches. He can't move both but
he can't move none either. Then he'll be led back to his cell.
"No one else will enter the switch room until I lead the next prisoner
there, and he'll be instructed to do the same thing. I'm going to choose
prisoners at random. I may choose the same guy three times in a row, or
I may jump around and come back.
"But, given enough time, everyone will eventually visit the switch room
as many times as everyone else. At any time anyone of you may declare to
me, 'We have all visited the switch room.'
"If it is true, then you will all be set free. If it is false, and
somebody has not yet visited the switch room, you will be fed to
the alligators."
There exists a strategy such that, if the prisoners adopt it,
they are guaranteed to be set free (given enough time). What
is the strategy?
--
http://weijr.b81.org/poker 賭聖的秘密情人 That's No Limit, Baby!
--
"You may meet today and plan a strategy. But after today, you will be
in isolated cells and will have no communication with one another.
"In the prison is a switch room, which contains two light switches
labeled A and B, each of which can be in either the 'on' or the 'off'
position. I am not telling you their present positions. The switches
are not connected to anything.
"After today, from time to time whenever I feel so inclined, I will
select one prisoner at random and escort him to the switch room. This
prisoner will select one of the two switches and reverse its position.
He must move one, but only one of the switches. He can't move both but
he can't move none either. Then he'll be led back to his cell.
"No one else will enter the switch room until I lead the next prisoner
there, and he'll be instructed to do the same thing. I'm going to choose
prisoners at random. I may choose the same guy three times in a row, or
I may jump around and come back.
"But, given enough time, everyone will eventually visit the switch room
as many times as everyone else. At any time anyone of you may declare to
me, 'We have all visited the switch room.'
"If it is true, then you will all be set free. If it is false, and
somebody has not yet visited the switch room, you will be fed to
the alligators."
There exists a strategy such that, if the prisoners adopt it,
they are guaranteed to be set free (given enough time). What
is the strategy?
--
http://weijr.b81.org/poker 賭聖的秘密情人 That's No Limit, Baby!
--
Tags:
拼圖
All Comments
Related Posts
送給新手的拼圖?

By Andy
at 2005-05-13T00:08
at 2005-05-13T00:08
送給新手的拼圖?

By Annie
at 2005-05-12T23:43
at 2005-05-12T23:43
我的網頁最近有點問題 = =

By Thomas
at 2005-05-10T11:10
at 2005-05-10T11:10
精華區的九連環解法

By Andrew
at 2005-05-06T13:35
at 2005-05-06T13:35
不知道有沒有人玩過這個

By Dinah
at 2005-05-03T01:07
at 2005-05-03T01:07