0:00:03.060,0:00:07.030 we begin with a problem 0:00:14.326,0:00:16.348 Alice and Bob leave in tree forts 0:00:16.348,0:00:20.509 which are far apart[br]with no line of sight between them 0:00:20.509,0:00:23.209 and they need to communicate 0:00:23.209,0:00:27.529 so they decide to run a wire[br]between the two houses 0:00:40.190,0:00:41.773 they pull a wire tight 0:00:41.773,0:00:44.563 and attach it tin can to each end 0:00:51.739,0:00:56.129 allowing them to send their voices[br]faintly along the wire 0:01:14.730,0:01:17.680 however there is a problem 0:01:17.917,0:01:20.707 noise 0:01:20.716,0:01:22.516 whenever there is a high wind 0:01:22.516,0:01:26.623 it becomes impossible to hear[br]the signal over the noise 0:01:28.913,0:01:32.361 so they need a way to increase[br]the energy level of the signal 0:01:32.361,0:01:34.940 to separate it from the noise 0:01:34.940,0:01:37.730 this gives bob an idea 0:01:40.382,0:01:42.778 they can simply pluck the wire 0:01:42.778,0:01:46.188 which is much easier to detect[br]over the noise 0:01:46.188,0:01:48.985 but this leads to a new problem 0:01:48.985,0:01:53.205 how do they encode their[br]messages as plucks? 0:01:56.587,0:02:00.124 well since they want to play[br]board games across a distance 0:02:00.124,0:02:03.329 they tackle the most common messages first 0:02:03.329,0:02:06.168 the outcome of two dice rolls 0:02:06.168,0:02:08.709 in this case the messages they are sending 0:02:08.709,0:02:13.784 can be thought of as a selection[br]from a finite number of symbols 0:02:13.784,0:02:16.792 in this case the 11 possible numbers 0:02:16.792,0:02:20.772 which we call a discrete source 0:02:24.012,0:02:27.066 at first they decide to use[br]the simplest method 0:02:27.066,0:02:30.656 they send the result as[br]the number of plucks 0:02:30.656,0:02:33.927 so to send a 3 they send three plucks 0:02:33.927,0:02:37.547 9 is nine plucks and 12 is twelve plucks 0:02:37.939,0:02:42.669 however they soon realize that this[br]takes much longer than it needs to 0:02:44.417,0:02:48.539 from practice they find that their[br]maximum plucks speed is 0:02:48.539,0:02:50.864 two plucks per second 0:02:50.864,0:02:53.536 any faster and they will get confused 0:02:53.536,0:02:57.400 so two plucks per second can be[br]thought of as the rate 0:02:57.400,0:03:01.310 or capacity for sending information[br]in this way 0:03:05.746,0:03:09.445 and it turns out that the most[br]common roll is a 7 0:03:09.445,0:03:14.165 so it takes 3.5 seconds[br]to send the number seven 0:03:21.529,0:03:24.677 Alice then realizes[br]they can do much better 0:03:24.677,0:03:27.179 if they change their coding strategy 0:03:27.179,0:03:31.389 she realizes that the odds of each number[br]being sent follow a simple pattern 0:03:31.394,0:03:35.805 there is one way to roll a 2,[br]two ways to roll a 3 0:03:35.805,0:03:39.885 three ways to roll a 4,[br]four ways to roll a 5 0:03:39.885,0:03:46.270 five ways to roll a 6 and six ways to[br]roll a 7, the most common 0:03:46.270,0:03:48.446 and five ways to roll an 8 0:03:48.446,0:03:51.119 four ways for a 9 and so on 0:03:51.119,0:03:53.652 back to one way for a twelve 0:03:53.652,0:03:57.802 and this is the graph showing the[br]number of ways each result can occur 0:03:57.802,0:04:00.007 and the pattern is obvious 0:04:00.007,0:04:05.077 so now let's change the graph to number[br]of plucks versus each symbol 0:04:05.077,0:04:08.808 she proceeds by mapping the most[br]common number, seven 0:04:08.808,0:04:13.518 to the shortest signal one pluck 0:04:13.912,0:04:17.142 she then proceeds to the next[br]most probable number 0:04:17.142,0:04:20.099 and if there is a tie[br]she picks one at random 0:04:20.099,0:04:22.856 in this case she selects[br]six to be two plucks 0:04:22.856,0:04:25.250 and then eight to be three plucks 0:04:25.250,0:04:28.449 and then back to five to be four plucks 0:04:28.449,0:04:30.399 and nine as five plucks 0:04:30.399,0:04:33.889 and back and forth until we reach 12 0:04:33.889,0:04:36.404 which is assigned to 11 plucks 0:04:36.404,0:04:39.394 now the most common number seven 0:04:39.394,0:04:41.692 can be sent in less than a second 0:04:41.692,0:04:43.821 a huge improvement 0:04:43.821,0:04:47.704 this symbol change allows them to send[br]more information 0:04:47.704,0:04:52.023 in the same amount of time on average 0:04:52.023,0:04:55.887 in fact this coding strategy[br]is optimal for this simple example 0:04:55.887,0:04:59.788 in that it impossible for you to come up[br]with a shorter method 0:04:59.788,0:05:04.698 of sending two dice rolls[br]using identical plucks 0:05:04.698,0:05:08.877 however after playing with the[br]wire for some time 0:05:08.877,0:05:12.907 Bob hit on a new idea