WEBVTT 00:00:03.736 --> 00:00:06.049 We begin with a problem. 00:00:06.049 --> 00:00:07.761 [WIND BLOWING] 00:00:14.514 --> 00:00:16.356 Alice and Bob live in tree forts, 00:00:16.356 --> 00:00:18.135 which are far apart, 00:00:18.135 --> 00:00:20.931 with no line of sight between them. 00:00:20.931 --> 00:00:23.273 And they need to communicate. 00:00:23.273 --> 00:00:25.054 So they decide to run a wire 00:00:25.054 --> 00:00:26.737 between the two houses. 00:00:39.945 --> 00:00:41.651 They pull the wire tight, 00:00:41.651 --> 00:00:44.973 and attach a tin can to each end – 00:00:52.215 --> 00:00:53.899 allowing them to send their voices 00:00:53.899 --> 00:00:55.884 faintly along the wire. 00:00:58.915 --> 00:01:01.515 [BOB - MUFFLED] "Hello?" 00:01:01.515 --> 00:01:05.573 [ALICE - MUFFLED] Hello? I can't hear you. 00:01:05.581 --> 00:01:08.688 [BOB - MUFFLED] I can hear you, but just barely. 00:01:08.688 --> 00:01:14.591 [ALICE - MUFFLED] 1. 2. 3. 4. 5. 00:01:14.591 --> 00:01:18.299 However, there is a problem: 00:01:18.299 --> 00:01:20.682 'noise.' 00:01:20.682 --> 00:01:22.255 Whenever there is a high wind, 00:01:22.255 --> 00:01:24.170 it becomes impossible to hear 00:01:24.170 --> 00:01:26.927 the signal over the noise. 00:01:28.897 --> 00:01:30.259 So they need a way to increase 00:01:30.259 --> 00:01:32.439 the energy level of the signal, 00:01:32.439 --> 00:01:34.931 to separate it from the noise. 00:01:34.931 --> 00:01:37.126 This gives Bob an idea. 00:01:40.446 --> 00:01:42.859 They can simply pluck the wire, 00:01:42.859 --> 00:01:46.599 which is much easier to detect over the noise. 00:01:46.599 --> 00:01:48.979 But this leads to a new problem. 00:01:48.979 --> 00:01:53.165 How do they encode their messages as plucks? 00:01:56.571 --> 00:01:57.979 Well, since they want to play 00:01:57.979 --> 00:02:00.140 board games across a distance, 00:02:00.140 --> 00:02:03.270 they tackle the most common messages first – 00:02:03.270 --> 00:02:06.075 the outcome of two dice rolls. 00:02:06.075 --> 00:02:08.630 In this case, the messages they are sending 00:02:08.630 --> 00:02:10.869 can be thought of as a selection 00:02:10.869 --> 00:02:13.840 from a finite number of 'symbols' – 00:02:13.840 --> 00:02:17.090 in this case, the eleven possible numbers, 00:02:17.090 --> 00:02:19.997 which we call a 'discrete source.' 00:02:23.962 --> 00:02:27.455 At first, they decide to use the simplest method. 00:02:27.455 --> 00:02:30.610 They send the result as the number of plucks. 00:02:30.610 --> 00:02:33.803 So, to send a '3,' they send three plucks. 00:02:33.803 --> 00:02:35.626 '9' is nine plucks. 00:02:35.626 --> 00:02:38.176 And '12' is twelve plucks. 00:02:38.176 --> 00:02:40.510 However, they soon realize that this takes 00:02:40.510 --> 00:02:43.262 much longer than it needs to. 00:02:44.416 --> 00:02:48.476 From practice, they find that their maximum pluck speed 00:02:48.476 --> 00:02:50.919 is two plucks per second. 00:02:50.919 --> 00:02:53.769 Any faster, and they will get confused. 00:02:53.769 --> 00:02:57.340 So two plucks per second can be thought of as the 'rate' – 00:02:57.340 --> 00:03:00.736 or 'capacity' – for sending information in this way. 00:03:00.736 --> 00:03:05.841 [SOUND OF PLUCKING] 00:03:05.841 --> 00:03:06.945 And it turns out that 00:03:06.945 --> 00:03:09.745 the most common roll is a 7 – 00:03:09.745 --> 00:03:14.355 so it takes 3.5 seconds to send the number 7. 00:03:14.355 --> 00:03:20.173 [THE SOUND OF 7 PLUCKS] 00:03:21.775 --> 00:03:24.486 Alice then realizes they can do much better 00:03:24.486 --> 00:03:27.429 if they change their coding strategy. 00:03:27.429 --> 00:03:29.894 She realizes that the odds of each number being sent 00:03:29.894 --> 00:03:31.704 [follow] a simple pattern. 00:03:31.704 --> 00:03:33.853 There is one way to roll a 2. 00:03:33.853 --> 00:03:35.879 [There are] two ways to roll a 3. 00:03:35.879 --> 00:03:38.020 Three ways to roll a 4. 00:03:38.020 --> 00:03:40.330 Four ways to roll a 5. 00:03:40.330 --> 00:03:42.618 Five ways to roll a 6. 00:03:42.618 --> 00:03:44.724 And six ways to roll a 7 – 00:03:44.724 --> 00:03:46.277 the most common [result]. 00:03:46.277 --> 00:03:48.597 And five ways to roll an 8. 00:03:48.597 --> 00:03:50.319 Four ways for a 9 – 00:03:50.319 --> 00:03:53.728 and so on, back to one way for a 12. 00:03:53.728 --> 00:03:54.886 This is a graph showing 00:03:54.886 --> 00:03:57.927 the number of ways each result can occur. 00:03:57.927 --> 00:04:00.089 And the pattern is obvious. 00:04:00.089 --> 00:04:02.141 So now, let's change the graph to 00:04:02.141 --> 00:04:05.359 'number of plucks versus each symbol.' 00:04:05.359 --> 00:04:06.799 She proceeds by mapping 00:04:06.799 --> 00:04:08.110 the most common number – 00:04:08.110 --> 00:04:12.009 7 – to the shortest signal – one pluck. 00:04:12.009 --> 00:04:14.230 [SOUND OF ONE PLUCK] 00:04:14.230 --> 00:04:17.125 She then proceeds to the next most probable number. 00:04:17.125 --> 00:04:20.076 And if there is a tie, she picks one at random. 00:04:20.076 --> 00:04:22.959 In this case, she selects 6 to be two plucks, 00:04:22.959 --> 00:04:25.427 and then 8 to be three plucks, 00:04:25.427 --> 00:04:28.232 and then back to 5 to be four plucks, 00:04:28.232 --> 00:04:30.344 and 9 is five plucks, 00:04:30.344 --> 00:04:33.793 and back and forth, until we reach 12, 00:04:33.793 --> 00:04:36.403 which is assigned to 11 plucks. 00:04:36.403 --> 00:04:39.444 Now, the most common number, 7, 00:04:39.444 --> 00:04:41.800 can be sent in less than a second – 00:04:41.800 --> 00:04:43.788 a huge improvement. 00:04:43.788 --> 00:04:46.050 This simple change allows them to send 00:04:46.050 --> 00:04:51.964 more information in the same amount of time, on average. 00:04:51.964 --> 00:04:54.440 In fact, this coding strategy is optimal 00:04:54.440 --> 00:04:56.020 for this simple example – 00:04:56.020 --> 00:04:57.649 in that it's impossible for you 00:04:57.649 --> 00:05:00.030 to come up with a shorter method 00:05:00.030 --> 00:05:04.671 of sending two dice rolls – using identical plucks. 00:05:04.671 --> 00:05:08.715 However, after playing with the wire for some time, 00:05:08.715 --> 00:05:11.094 Bob hits on a new idea. 00:05:11.094 --> 00:05:13.094 [PLUCKING SOUNDS BEING PLAYED BACKWARDS] 00:05:27.270 --> 00:05:32.057 [PLUCKS SHOWN IN SLOW MOTION – NO SOUND]