Can you solve the prisoner hat riddle? - Alex Gendler

30,443,110 views ・ 2015-10-05

TED-Ed


請雙擊下方英文字幕播放視頻。

譯者: 庭芝 梁 審譯者: Chenxiao Qian
00:10
You and nine other individuals have been captured
0
10714
3128
你和其他九個人
被絕頂聰明的外星人首領綁架了。
00:13
by super intelligent alien overlords.
1
13842
3653
00:17
The aliens think humans look quite tasty,
2
17495
3312
外星人覺得地球人看起來很美味, 但是他們的文明,
00:20
but their civilization forbids eating highly logical and cooperative beings.
3
20807
5326
嚴禁食用具有高度邏輯 與團隊合作能力的種族。
很不幸的,他們並不知道 你是否符合條件,
00:26
Unfortunately, they're not sure whether you qualify,
4
26133
3698
00:29
so they decide to give you all a test.
5
29831
2922
所以他們決定進行一項測驗。
00:32
Through its universal translator,
6
32753
1645
透過他們的星際翻譯,
00:34
the alien guarding you tells you the following:
7
34398
3564
外星守衛告訴你下列內容:
00:37
You will be placed in a single-file line facing forward in size order
8
37962
5461
首先,你們所有人, 依照身高依序排成一列,
00:43
so that each of you can see everyone lined up ahead of you.
9
43423
3921
所以你們每個人都可以看見 排在你前面的所有人。
00:47
You will not be able to look behind you or step out of line.
10
47344
3729
你們不許向後看,或是離開隊伍。
00:51
Each of you will have either a black or a white hat on your head
11
51073
4231
你們所有人都會被戴上一頂 黑色或白色的帽子,
00:55
assigned randomly,
12
55304
1934
顏色是隨機安排的,
00:57
and I won't tell you how many of each color there are.
13
57238
4017
而且我不會告訴你, 每種顏色的帽子有幾頂。
01:01
When I say to begin, each of you must guess the color of your hat
14
61255
3819
當我說開始,你們每個人必須 猜出頭上帽子的顏色,
01:05
starting with the person in the back and moving up the line.
15
65074
4400
順序從隊伍最後一個人開始, 依序往前回答。
01:09
And don't even try saying words other than black or white
16
69474
3048
除了黑色、白色之外, 你們不能說出其他任何字,
01:12
or signaling some other way, like intonation or volume;
17
72522
4465
或是用任何方式, 包括語調、音量來打暗號,
01:16
you'll all be eaten immediately.
18
76987
2762
否則你們所有人立刻會被吃掉。
01:19
If at least nine of you guess correctly, you'll all be spared.
19
79749
4368
如果你們之中,有九位以上回答正確, 所有人就能被釋放。
01:24
You have five minutes to discuss and come up with a plan,
20
84117
3126
你們有五分鐘進行討論, 並且提出計劃,
01:27
and then I'll line you up, assign your hats, and we'll begin.
21
87243
4748
然後我會把你們排成一列、 分配帽子,然後開始測驗。
01:31
Can you think of a strategy guaranteed to save everyone?
22
91991
4051
你是否能想出一個策略, 確保所有人都能夠被釋放?
01:36
Pause the video now to figure it out for yourself.
23
96042
3095
如果你想要自己找出答案, 請按下暫停鈕。
01:39
Answer in: 3
24
99137
1017
倒數 3 秒
01:40
Answer in: 2
25
100154
1092
2 秒
01:41
Answer in: 1
26
101246
1865
1秒
01:43
The key is that the person at the back of the line
27
103111
2829
關鍵就在於:
01:45
who can see everyone else's hats can use the words "black" or "white"
28
105940
4554
排在隊伍最後面的人, 他能夠看見其他人帽子的顏色,
01:50
to communicate some coded information.
29
110494
3378
並且使用 "黑色" 或 "白色" 來傳達一些經過加密的訊息。
01:53
So what meaning can be assigned to those words
30
113872
2668
到底有什麼訊息, 可以被隱藏在這兩個字詞當中,
01:56
that will allow everyone else to deduce their hat colors?
31
116540
4202
並且讓其他人, 能夠推論出帽子的顏色?
02:00
It can't be the total number of black or white hats.
32
120742
3367
這個訊息不可能是 黑色或白色帽子的數量,
02:04
There are more than two possible values,
33
124109
2763
因為數量已經超過 兩個字詞所能代表的數字。
02:06
but what does have two possible values is that number's parity,
34
126872
5016
但是,剛好能用兩個數值來代表的, 就是數字的「奇偶性」,
02:11
that is whether it's odd or even.
35
131888
3304
也就是帽子的數量為 「奇數」或是「偶數」。
02:15
So the solution is to agree that whoever goes first will,
36
135192
3816
所以正確的解答是: 第一個回答的人,
02:19
for example, say "black" if he sees an odd number of black hats
37
139008
4347
如果他所看到的黑色帽子數量是「奇數」, 他就回答「黑色」;
02:23
and "white" if he sees an even number of black hats.
38
143355
4432
如果看到的黑色帽子數量是「偶數」, 就要回答「白色」。
02:27
Let's see how it would play out if the hats were distributed like this.
39
147787
4624
我們來看看,像影片中的帽子顏色分布, 應該如何回答?
02:32
The tallest captive sees three black hats in front of him,
40
152411
3018
首先,身高最高的俘虜 可以看到前面共有三頂黑帽子,
02:35
so he says "black," telling everyone else he sees an odd number of black hats.
41
155429
5205
所以他回答「黑色」,告訴其他人 他看到的黑帽子數量是「奇數」。
02:40
He gets his own hat color wrong, but that's okay
42
160634
3372
他答錯了自己帽子的顏色, 但是那並不重要,
02:44
since you're collectively allowed to have one wrong answer.
43
164006
4280
因為你們可以有一次答錯的機會。
02:48
Prisoner two also sees an odd number of black hats,
44
168286
2754
第二位俘虜,同樣看到了 前面共有奇數頂黑帽子,
02:51
so she knows hers is white, and answers correctly.
45
171040
4211
所以她知道自己的帽子是白色的, 於是她答對了。
02:55
Prisoner three sees an even number of black hats,
46
175251
2793
第三位俘虜,看到了前面 黑帽子的數量是偶數,
02:58
so he knows that his must be one of the black hats
47
178044
3212
所以他知道頭上戴的帽子
03:01
the first two prisoners saw.
48
181256
2345
一定是前兩位俘虜 所看到的黑帽子其中之一。
03:03
Prisoner four hears that and knows
49
183601
1736
第四位俘虜 一聽之後就明白:
03:05
that she should be looking for an even number of black hats
50
185337
3241
她應該看到前面有偶數頂黑帽子,
03:08
since one was behind her.
51
188578
1932
因為她背後已經有一頂了。
03:10
But she only sees one, so she deduces that her hat is also black.
52
190510
5655
但是她看到前面只有一頂黑帽子, 所以她推論出自己的帽子也是黑色的。
03:16
Prisoners five through nine are each looking for an odd number of black hats,
53
196165
4334
接下來第五位到第九位俘虜, 每一位都應該看到奇數頂黑帽子,
03:20
which they see, so they figure out that their hats are white.
54
200499
4728
也就是這一頂,所以他們都能回答 自己的帽子是白色的。
03:25
Now it all comes down to you at the front of the line.
55
205227
3827
現在,輪到隊伍最前面的你。
03:29
If the ninth prisoner saw an odd number of black hats,
56
209054
3181
如果第九位俘虜看到 前面有奇數頂黑帽子,
03:32
that can only mean one thing.
57
212235
2791
那就代表只有一種可能 (最後一人的帽子是黑色)
03:35
You'll find that this strategy works for any possible arrangement of the hats.
58
215026
4372
你會發現這個策略, 適用於所有的排列組合。
03:39
The first prisoner has a 50% chance of giving a wrong answer about his own hat,
59
219398
5114
第一位俘虜有百分之五十的機率 會猜錯自己帽子的顏色,
03:44
but the parity information he conveys
60
224512
2309
但是他所傳佈的「奇偶性」訊息,
03:46
allows everyone else to guess theirs with absolute certainty.
61
226821
5199
能夠確保其他所有俘虜, 都能正確回答頭上帽子的顏色。
03:52
Each begins by expecting to see an odd or even number of hats
62
232020
4015
每個人原本期望能看到
03:56
of the specified color.
63
236035
2031
奇數 (或偶數) 頂特定顏色的帽子,
03:58
If what they count doesn't match, that means their own hat is that color.
64
238066
4436
如果他們看到的和預期不同, 就代表自己頭上的帽子是特定顏色。
04:02
And everytime this happens,
65
242502
1634
每當有人答出「指定顏色」的帽子,
04:04
the next person in line will switch the parity they expect to see.
66
244136
4747
下一位俘虜就會改變 帽子數目的「奇偶性」。
04:08
So that's it, you're free to go.
67
248883
1741
所以現在,你們可以自由了!
04:10
It looks like these aliens will have to go hungry,
68
250624
2408
看來這些外星人 得繼續餓肚子了,
04:13
or find some less logical organisms to abduct.
69
253032
3429
或是去綁架 邏輯不好的其他生物。
關於本網站

本網站將向您介紹對學習英語有用的 YouTube 視頻。 您將看到來自世界各地的一流教師教授的英語課程。 雙擊每個視頻頁面上顯示的英文字幕,從那裡播放視頻。 字幕與視頻播放同步滾動。 如果您有任何意見或要求,請使用此聯繫表與我們聯繫。

https://forms.gle/WvT1wiN1qDtmnspy7