Can you solve the computer virus riddle? - James Tanton

1,157,802 views ・ 2021-10-19

TED-Ed


아래 영문자막을 더블클릭하시면 영상이 재생됩니다.

번역: Sora Kim 검토: Jihyeon J. Kim
00:06
Your antivirus squad is up against a particularly sadistic bit
0
6788
4208
당신의 항바이러스 백신팀은 당신의 메인프레임을 장악한
00:10
of malicious code that’s hijacked your mainframe.
1
10996
3208
유난히 가학적인 악성코드에게 대항합니다.
00:14
What you’ve learned from other infected systems— right before they went dark—
2
14579
4292
그것들이 먹통이 되기 직전에 다른 감염 프로그램으로부터 알게 된 것은
00:18
is that it likes to toy with antivirus agents in a very peculiar way.
3
18871
5083
악성코드가 매우 특이한 방식으로 백신 요원으로 장난치기를 좋아한다는 것입니다.
00:24
It corrupts one of the 4 disks that run your mainframe,
4
24538
3625
악성코드는 메인프레임을 관리하는 4개의 디스크 중 하나를 변질시킵니다.
00:28
represented by lights showing which are on and which off.
5
28163
3625
어떤 것이 켜지고 꺼지는지 빛으로 보여주는 디스크이죠.
00:32
Then it selects one member of the antivirus squad— this’ll be you—
6
32412
4500
그런 다음 당신을 지키게 될 백신팀 중 한 명을 선택해서
00:36
and brings them into the mainframe.
7
36912
2167
메인프레임으로 데리고 옵니다.
00:39
It tells them which disk it corrupted,
8
39079
2375
그것은 어떤 디스크를 손상시켰는지 요원에게 말하며
00:41
allows the agent to switch a single disk on or off,
9
41454
4500
하나의 디스크 스위치를 켜고 끄도록 합니다.
00:45
then immediately de-rezzes the agent.
10
45954
3083
그런 다음 즉시 요원을 제거해버립니다.
00:49
Your squad can make an all-out attack to break into the mainframe
11
49579
3625
당신의 팀은 메인프레임에 침입하기 위해 총공격을 할 수 있고
00:53
and destroy one disk before they’re wiped out.
12
53204
3167
디스크들이 전부 전멸하기 전에 그 디스크를 파괴합니다.
00:56
If they destroy the corrupted one, the malware will be defeated.
13
56537
3584
만약 팀이 손상된 것을 파괴한다면 그 악성소프트웨어는 패배할 것입니다.
01:00
Any others, and the virus will erase the entire system.
14
60121
3708
다른 것들과 바이러스가 전체 시스템을 지워버릴 겁니다.
01:04
The lights are only visible within the mainframe,
15
64413
2708
그 불빛들은 메인프레임 안에서만 볼 수 있습니다.
01:07
so you won’t know until you get there which, if any, are on.
16
67121
4125
그래서 당신이 도착하기 전까지는 어떤 것이 켜져 있는 지 알 수 없을 것입니다.
01:11
How can you communicate, with your single action,
17
71621
3250
4개의 디스크들 중 하나가 손상되었는지
01:14
which of the 4 disks has been corrupted?
18
74871
2583
어떻게 당신의 행동 하나만으로 소통할 수 있을까요?
01:17
Pause here to figure it out for yourself. Answer in 3
19
77454
2709
잠시 멈추고 답을 생각해 보세요. 정답 3초 전
01:20
Answer in 2
20
80163
2500
2초 전
01:22
Answer in 1
21
82663
2583
1초 전
01:25
The setting is a big clue for one solution.
22
85329
3250
그 설정은 하나의 해결책을 위한 큰 단서입니다.
01:28
Using binary code— the base two numbering system that only uses 1s and 0s—
23
88579
5667
오직 1와 0뿐인 두개의 번호체계에 기반한 2진수 코드를 사용하여
01:34
we can represent each of the 4 disks with a 2-bit binary number
24
94538
4500
4개의 디스크 각각 2비트 2진수로 나타낼 수 있습니다.
01:39
ranging from 00 for zero to 11 for three.
25
99038
4416
0을 나타내는 00부터 시작해서 3을 나타내는 11까지 말이죠.
01:44
What we’re looking for now is some sort of mathematical operation
26
104163
4041
우리가 지금 찾고 있는 것은 수학적인 운용의 몇몇 유형입니다.
01:48
that can take the lit disks as input, and give the corrupted disk as an output.
27
108204
5709
점등된 디스크을 입력으로 사용하고 손상된 디스크를 출력으로 제공합니다.
01:54
Let’s consider one possibility.
28
114496
1917
하나의 가능성을 생각해봅시다.
01:56
Say that the corrupted disk was this one,
29
116413
2708
이것이 손상된 디스크이고
01:59
and when you come in, no lights are on.
30
119121
2917
당신이 들어올 때 어떤 불빛도 켜지지 않는다고 해보세요.
02:02
You could turn 11 on to indicate that disk.
31
122288
4000
당신은 11을 켜서 해당 디스크를 표시할 수 있습니다.
02:06
Okay, what if you came in and 11 was already on?
32
126954
4000
좋아요, 당신이 들어왔을 때 11이 이미 켜져 있다면 어떨까요?
02:11
You have to switch one light.
33
131329
1875
당신은 불빛 하나를 바꿔야만 합니다.
02:13
Which seems like the most innocuous to change?
34
133621
2875
어떤 것이 바꾸기에 가장 안전할 것 같아 보이나요?
02:16
Probably 00, in that if you were to add 00 and 11,
35
136788
4916
아마 00이겠죠, 만약 00에서 11을 더한다 해도
02:21
you’d still get 11.
36
141704
1709
여전히 11이 됩니다.
02:24
So maybe the key is to think of addition of binary numbers,
37
144288
4333
그래서 손상된 디스크 번호를 통신하는 점등 디스크의 합계로
02:28
with the sum of the lit disks communicating the corrupted disk number.
38
148621
4583
2진수 덧셈을 떠올리는 것이 핵심일 수도 있습니다.
02:33
This works great, until we start with a different hypothetical.
39
153496
4000
다른 가설을 시작하기 전까지는 이 방법이 작동합니다.
02:37
What if 00 was the corrupted disk, and 01 and 10 were on?
40
157496
5542
00이 손상된 디스크이고 01과 10이 켜져있다면 어떨까요?
02:43
Here, the sum of the lit disks is 11.
41
163329
3459
여기 점등된 디스크들의 합계인 11이 있습니다.
02:46
But we need to change this to a sum of 00 with the flip of one switch.
42
166788
5583
하지만 스위치를 한번 눌러서 00의 합계로 바꿔야 합니다.
02:53
We have four options: turning switch 00 on gives us 11.
43
173163
4750
4가지 선택지가 있습니다. 00 스위치를 켜면 11이 나옵니다.
02:58
Turning 01 off takes us back to 10,
44
178121
3292
01 스위치를 끄면 10으로 돌아가고
03:01
and turning 10 off gives 01.
45
181413
3750
10 스위치를 끄면 01이 됩니다.
03:05
None of those work.
46
185163
1791
하나도 작동하지 않습니다.
03:06
Turning switch 11 on gives us 110 by standard binary addition.
47
186954
5834
11 스위치를 켜면 표준 2진 덧셈으로 110이 나옵니다.
03:12
But we don’t really want three digit numbers.
48
192788
2750
하지만 우리는 세자리 수를 원하지 않습니다.
03:15
So what if— to keep the result a two digit number—
49
195621
3542
따라서 결과를 두 자리 수로 유지하려면
03:19
we break the rules a bit and let this sum equal 22.
50
199163
4458
규칙을 어기고 이 합계가 22가 되도록 합니다.
03:23
That’s not a binary number, but if we regard 2s as the same as 0s,
51
203829
4792
그것은 2진수가 아니지만 2를 0으로 간주한다면
03:28
that does indicate the correct disk.
52
208621
2625
그것은 올바른 디스크를 나타냅니다.
03:31
So this suggests a strategy:
53
211871
2375
그래서 이것은 한 전략을 시사합니다.
03:34
look at the sum of all the lighted disks we see,
54
214246
3667
우리가 보는 점등된 디스크들의 합을 보세요.
03:37
regarding 2s as 0s.
55
217913
2375
2를 0으로 간주합니다.
03:40
If it’s already the correct result, flip 00,
56
220288
3458
만약 이미 올바른 결과라면, 00을 누르세요
03:43
and if not, find the switch that will make the sum correct.
57
223746
3917
그리고 아니라면 합계를 올바르게 만들 스위치를 찾으세요.
03:48
You can see for yourself that any starting configuration
58
228079
3250
당신은 스위치 한 번으로 모든 시작 구성이
03:51
can sum to any number from 00 to 11 with a flip of a switch.
59
231329
5334
00에서 11까지의 숫자를 합할 수 있음을 직접 확인할 수 있습니다.
03:56
The reason this works is related to a concept called parity.
60
236871
4417
이것이 작동하는 이유는 패리티라는 개념과 관련되어 있습니다.
04:01
Parity tells you whether a given value is even or odd.
61
241663
4208
패리티는 당신에게 주어진 값이 짝수인지 홀수인지 말해줍니다.
04:06
In this case, the values whose parity we’re considering
62
246538
3375
이 경우 우리가 고려중인 의 값은
04:09
are the number of 1s in each digit place of our binary sums.
63
249913
4875
2진 합계의 각 자릿수에 있는 1의 수입니다.
04:14
And that’s why we can say that 2 and 0, both even numbers,
64
254996
4333
그래서 우리는 둘 다 짝수인 2와 0을
04:19
can be treated as equivalents.
65
259329
2417
모두 동등하게 취급할 수 있다고 말할 수 있습니다.
04:22
By adding or subtracting 00, 01, 10, or 11,
66
262329
5792
00, 01, 10 또는 11을 더하거나 빼면서
04:28
we can change the parity of either, both, or neither digit,
67
268121
4667
우리는 둘 중 하나, 둘 다 또는 어느 것도 아닌 수의 패리티를 바꿀 수 있고
04:32
and create the disk number we want.
68
272788
2625
우리가 원하는 디스크의 수를 만들 수 있습니다.
04:36
What’s incredible about this solution is that it works for any mainframe
69
276121
4208
이 해결책이 놀라운 것은 디스크가 2인 메인프레임에서
04:40
whose disks are a power of two.
70
280329
2417
모두 사용할 수 있다는 것입니다.
04:43
With 64 you could turn each activated disk into a 6-bit binary number
71
283163
5625
당신은 64개의 각 활성화된 디스크를 6비트짜리 2진수로 바꿀 수도 있습니다.
04:48
and sum the 1s in each column,
72
288788
2458
그리고 짝수 합을 0과 같이 하고
04:51
regarding any even sum as the same as 0 and any odd sum as 1.
73
291246
5958
홀수 합을 1로 하여 각 열의 1을 합할 수도 있습니다.
04:57
1,048,576 disks would be daunting, but entirely doable.
74
297621
6958
1,048,576개의 디스크가 부담스럽지만 완벽하게 수행 가능합니다.
05:05
Luckily, your mainframe is much smaller.
75
305038
2500
다행히도 당신의 메인프레임은 훨씬 더 작습니다.
05:07
You make the valiant sacrifice and your team rushes in,
76
307538
3500
당신은 용맹한 희생을 치르고 당신의 팀을 난입시켜
05:11
destroying the corruption and freeing the system.
77
311038
3125
오염을 파괴시키고 시스템을 자유롭게 합니다.
이 웹사이트 정보

이 사이트는 영어 학습에 유용한 YouTube 동영상을 소개합니다. 전 세계 최고의 선생님들이 가르치는 영어 수업을 보게 될 것입니다. 각 동영상 페이지에 표시되는 영어 자막을 더블 클릭하면 그곳에서 동영상이 재생됩니다. 비디오 재생에 맞춰 자막이 스크롤됩니다. 의견이나 요청이 있는 경우 이 문의 양식을 사용하여 문의하십시오.

https://forms.gle/WvT1wiN1qDtmnspy7