Can you solve the rogue AI riddle? - Dan Finkel

4,037,162 views ・ 2018-08-07

TED-Ed


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

譯者: Lilian Chiu 審譯者: Helen Chang
00:07
A hostile artificial intelligence called NIM has taken over the world’s computers.
0
7188
5299
有敵意的人工智慧「NIM」 已經主宰了全世界的電腦。
00:12
You’re the only person skilled enough to shut it down,
1
12487
3048
你是世界上唯一有足夠技能 可以將它關閉的人,
00:15
and you’ll only have one chance.
2
15535
2353
你只有一次機會。
00:17
You’ve broken into NIM’s secret lab,
3
17888
2227
你闖入了 NIM 的秘密實驗室,
00:20
and now you’re floating in a raft on top of 25 stories of electrified water.
4
20115
5369
現在你坐在橡皮艇上, 漂浮在 25 層通電的水上。
00:25
You’ve rigged up a remote that can lower the water level
5
25484
2981
你草草做出了一個遙控器, 可以降低水位,
00:28
by ejecting it from grates in the sides of the room.
6
28465
3443
讓水從房間側邊的格柵排出。
00:31
If you can lower the water level to 0,
7
31908
2324
如果你能把水位降到 0,
00:34
you can hit the manual override,
8
34232
1960
你就可以進行手動覆寫,
00:36
shut NIM off,
9
36192
1136
將 NIM 關機,
00:37
and save the day.
10
37328
1315
拯救世界。
00:38
However, the AI knows that you’re here, and it can lower the water level, too,
11
38643
4527
然而,人工智慧知道你在這裡, 且它也能夠降低水位,
00:43
by sucking it through a trapdoor at the bottom of the lab.
12
43170
3536
它的做法是從實驗室 底部的活板門將水吸出。
00:46
If NIM is the one to lower the water level to 0,
13
46706
3036
如果 NIM 將水位降到 0,
00:49
you’ll be sucked out of the lab,
14
49742
1845
你就會被吸到實驗室外,
00:51
resulting in a failed mission.
15
51587
1958
任務就會失敗。
00:53
Control over water drainage alternates between you and NIM,
16
53545
3904
排水的控制權是由 你和 NIM 輪流取得,
00:57
and neither can skip a turn.
17
57449
1843
且誰都不可以跳過一輪。
00:59
Each of you can lower the water level by exactly 1,
18
59292
3054
你們兩個都能將水位 一次降低一層、
01:02
3,
19
62346
688
三層或是四層。
01:03
or 4 stories at a time.
20
63034
2124
01:05
Whoever gets the level exactly to 0 on their turn
21
65158
3065
誰能在自己的那一輪 將水位剛好降至 0,
01:08
will win this deadly duel.
22
68223
2212
就能贏得這場生死對決。
01:10
Note that neither of you can lower the water below 0;
23
70435
3178
要注意的是,你們兩個 都不能把水位降到比 0 更低;
01:13
if the water level is at 2,
24
73613
1573
如果水位是在 2,
01:15
then the only move is to lower the water level 1 story.
25
75186
3848
那麼唯一能做的就是 將水位降低一層。
01:19
You know that NIM has already computed all possible outcomes of the contest,
26
79034
4787
你知道 NIM 已經計算出了 這場比賽的所有可能結果,
01:23
and will play in a way that maximizes its chance of success.
27
83821
3729
且一定會採取讓它的 成功機會最大的做法。
01:27
You go first.
28
87550
1510
由你先控制。
01:29
How can you survive and shut off the artificial intelligence?
29
89060
3601
你要如何存活下來 並將人工智慧關閉?
01:32
Pause here if you want to figure it out for yourself.
30
92661
3905
如果你想要自己解解看, 在這裡按暫停。
01:36
Answer in: 3
31
96566
1355
公佈答案倒數:三。
01:37
Answer in: 2
32
97921
1071
公佈答案倒數:二。
01:38
Answer in: 1
33
98992
1419
公佈答案倒數:一。
01:40
You can’t leave anything up to chance - NIM will take any advantage it can get.
34
100411
4418
你不能完全靠運氣—— NIM 只要能佔便宜就一定會佔。
01:44
And you’ll need to have a response to any possible move it makes.
35
104829
4076
你得要針對它可能的 每一步棋做出反應。
01:48
The trick here is to start from where you want to end and work backwards.
36
108905
4465
這裡的密訣在於要從 你想要的結果反向推導回來。
01:53
You want to be the one to lower the water level to 0,
37
113370
2971
你想要成為將水位降至 0 的人,
01:56
which means you need the water level to be at 1, 3, or 4
38
116341
3779
那就表示當你拿到 控制權時,水位必須是
02:00
when control switches to you.
39
120120
2166
在 1、3,或 4。
02:02
If the water level were at 2,
40
122286
1618
如果水位在 2,
02:03
your only option would be to lower it 1 story,
41
123904
3164
你唯一的選擇就是降低一層,
02:07
which would lead to NIM making the winning move.
42
127068
2692
那就會讓 NIM 能做出 贏得勝利的一步。
02:09
If we color code the water levels,
43
129760
2175
如果我們把水位用顏色編碼,
02:11
we can see a simple principle at play:
44
131935
2637
我們就能看出這裡 有個簡單的原則:
02:14
there are “losing” levels like 2,
45
134572
2060
有「必輸」的樓層,比如 2,
02:16
where no matter what whoever starts their turn there does, they’ll lose.
46
136632
4850
無論如何,到了那一層的人必輸。
02:21
And there are winning levels, where whoever starts their turn there
47
141482
3401
也有「必勝」的樓層, 如果你從那裡開始你的那一輪,
02:24
can either win or leave their opponent with a losing level.
48
144883
3976
你就會贏,或是讓你的對手 只能到達必輸的樓層。
02:28
So not only are 1, 3, and 4 winning levels,
49
148859
3401
所以「必勝」樓層 不只是 1、3,和 4,
02:32
but so are 5 and 6,
50
152260
2273
還有 5 和 6,
02:34
since you can send your opponent to 2 from there.
51
154533
3180
因為從這兩層你都可以 把你的對手送到 2 。
02:37
What about 7?
52
157713
1816
那 7 呢?
02:39
From 7, all possible moves would send your opponent to a winning level,
53
159529
4645
從 7,不論你做什麼, 都會把你的對手送到必勝樓層,
02:44
making this another losing level.
54
164174
2550
因此 7 也是必輸樓層。
02:46
And we can continue up the lab in this way.
55
166724
3534
我們可以用這種方式 一路向上做判斷。
02:50
If you start your turn 1, 3, or 4 levels above a losing level,
56
170258
5198
如果你是在必輸樓層 向上加一、三,或四層樓,
02:55
then you’re at a winning level.
57
175456
2068
那你就是在必勝樓層。
02:57
Otherwise, you’re destined to lose.
58
177524
2749
要不然,你就注定會輸。
03:00
You could continue like this all the way to level 25.
59
180273
3493
你可以一直這樣做,直到 25。
03:03
But as a shortcut,
60
183766
1754
但有個截徑,
03:05
you might notice that levels 8 through 11 are colored identically to 1 through 4.
61
185520
5055
你可能會發現,樓層 8 到 11 和 1 到 4 有一樣的顏色。
03:10
Since a level’s color is determined by the levels 1, 3, and 4 stories below it,
62
190575
5841
因為一層樓的顏色是由它向下 一、三,及四層樓所決定的,
03:16
this means that level 12 will be the same color as level 5,
63
196416
4330
這就表示樓層 12 和 5 的顏色會一樣,
03:20
13 will match 6,
64
200746
1619
13 和 6 會一樣,
03:22
14 will match 7, and so on,
65
202365
2958
14 和 7 會一樣,以此類推。
03:25
In particular, the losing levels will always be multiple of 7,
66
205323
4409
特別的是,必輸樓層 都一定是 7 的倍數,
03:29
and two greater than multiples of 7.
67
209732
2525
以及 7 的倍數再加 2。
03:32
Now, from your original starting level of 25,
68
212257
3272
現在,回到你最初的樓層 25,
03:35
you have to make sure your opponent starts on a losing level every single turn—
69
215529
5134
你得要確保你的對手每一輪 都要從必輸樓層開始——
03:40
if NIM starts on a winning level even once,
70
220663
2681
如果 NIM 從必勝樓層開始,
03:43
it’s game over for you.
71
223344
2031
你就玩完了。
03:45
So your only choice on turn 1 is to lower the water level by 4 stories.
72
225375
5357
所以你第一輪唯一的選擇 就是向下降四層。
03:50
No matter what the AI does,
73
230732
2025
不論人工智慧做什麼,
03:52
you can continue giving it losing levels
74
232757
2792
你都可以持續一直給它必輸樓層,
03:55
until you reach 0 and trigger the manual override.
75
235549
3815
直到你達到 0,進行人工覆寫。
03:59
And with that, the crisis is averted.
76
239364
3111
這麼一來,危機就解除了。
04:02
Now, back to a less stressful kind of surfing.
77
242475
3377
現在可以回到比較 沒有壓力的上網瀏覽了。
關於本網站

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

https://forms.gle/WvT1wiN1qDtmnspy7