23 囚犯問題 - 拼圖

Elizabeth avatar
By Elizabeth
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!

--
Tags: 拼圖

All Comments

送給新手的拼圖?

Andy avatar
By Andy
at 2005-05-13T00:08
※ 引述《juneday (微風吹過的夏天)》之銘言: : 請問各位拼圖達人~~~~ : 我朋友生日快到了,我打算送她一幅拼圖,以下兩幅哪個好呢? : 1.http://www.renoirpuzzle.com.tw/prog/detail.php?cid=157andamp;pid=879andamp;le ...

送給新手的拼圖?

Annie avatar
By Annie
at 2005-05-12T23:43
請問各位拼圖達人~~~~ 我朋友生日快到了,我打算送她一幅拼圖,以下兩幅哪個好呢? 1.http://www.renoirpuzzle.com.tw/prog/detail.php?cid=157andamp;pid=879andamp;level=2 2.http://www.renoirpuzzle ...

我的網頁最近有點問題 = =

Thomas avatar
By Thomas
at 2005-05-10T11:10
換個地方放~ http://w3.nctu.edu.tw/~u9112035/Rubiks/ 這裡應該是永久可用的啦 不過做的很簡陋,完整的網頁之後再說 XD 社團評鑑好忙阿~~ - ...

精華區的九連環解法

Andrew avatar
By Andrew
at 2005-05-06T13:35
※ 引述《ruemann (一人獨釣一江秋)》之銘言: : ※ 引述《sdamyun (狂‧遨遊於天邊的雲)》之銘言: : : 關於精華區中[3.3.2]的九連環解法我看不太懂 : : 但我把我知道的作法寫出來 : : 當環有一個時,所使用的次數是1次 : : 即A1=1 : : 當環有兩個時,所使用的次數也 ...

不知道有沒有人玩過這個

Dinah avatar
By Dinah
at 2005-05-03T01:07
※ 引述《WaiTingKuo (123456789)》之銘言: : op不要打我andgt;andlt; : http://www.etienne.nu/imagepuz/start.htm : 這是第一關 : 第二關的線索在第一關的圖裡 : 我卡在第8andgt;andlt; 這要怎麼玩呀 怎麼看都 ...