Return to Video

Source Encoding

  • 0:03 - 0:07
    we begin with a problem
  • 0:14 - 0:16
    Alice and Bob leave in tree forts
  • 0:16 - 0:21
    which are far apart
    with no line of sight between them
  • 0:21 - 0:23
    and they need to communicate
  • 0:23 - 0:28
    so they decide to run a wire
    between the two houses
  • 0:40 - 0:42
    they pull a wire tight
  • 0:42 - 0:45
    and attach it tin can to each end
  • 0:52 - 0:56
    allowing them to send their voices
    faintly along the wire
  • 1:15 - 1:18
    however there is a problem
  • 1:18 - 1:21
    noise
  • 1:21 - 1:23
    whenever there is a high wind
  • 1:23 - 1:27
    it becomes impossible to hear
    the signal over the noise
  • 1:29 - 1:32
    so they need a way to increase
    the energy level of the signal
  • 1:32 - 1:35
    to separate it from the noise
  • 1:35 - 1:38
    this gives bob an idea
  • 1:40 - 1:43
    they can simply pluck the wire
  • 1:43 - 1:46
    which is much easier to detect
    over the noise
  • 1:46 - 1:49
    but this leads to a new problem
  • 1:49 - 1:53
    how do they encode their
    messages as plucks?
  • 1:57 - 2:00
    well since they want to play
    board games across a distance
  • 2:00 - 2:03
    they tackle the most common messages first
  • 2:03 - 2:06
    the outcome of two dice rolls
  • 2:06 - 2:09
    in this case the messages they are sending
  • 2:09 - 2:14
    can be thought of as a selection
    from a finite number of symbols
  • 2:14 - 2:17
    in this case the 11 possible numbers
  • 2:17 - 2:21
    which we call a discrete source
  • 2:24 - 2:27
    at first they decide to use
    the simplest method
  • 2:27 - 2:31
    they send the result as
    the number of plucks
  • 2:31 - 2:34
    so to send a 3 they send three plucks
  • 2:34 - 2:38
    9 is nine plucks and 12 is twelve plucks
  • 2:38 - 2:43
    however they soon realize that this
    takes much longer than it needs to
  • 2:44 - 2:49
    from practice they find that their
    maximum plucks speed is
  • 2:49 - 2:51
    two plucks per second
  • 2:51 - 2:54
    any faster and they will get confused
  • 2:54 - 2:57
    so two plucks per second can be
    thought of as the rate
  • 2:57 - 3:01
    or capacity for sending information
    in this way
  • 3:06 - 3:09
    and it turns out that the most
    common roll is a 7
  • 3:09 - 3:14
    so it takes 3.5 seconds
    to send the number seven
  • 3:22 - 3:25
    Alice then realizes
    they can do much better
  • 3:25 - 3:27
    if they change their coding strategy
  • 3:27 - 3:31
    she realizes that the odds of each number
    being sent follow a simple pattern
  • 3:31 - 3:36
    there is one way to roll a 2,
    two ways to roll a 3
  • 3:36 - 3:40
    three ways to roll a 4,
    four ways to roll a 5
  • 3:40 - 3:46
    five ways to roll a 6 and six ways to
    roll a 7, the most common
  • 3:46 - 3:48
    and five ways to roll an 8
  • 3:48 - 3:51
    four ways for a 9 and so on
  • 3:51 - 3:54
    back to one way for a twelve
  • 3:54 - 3:58
    and this is the graph showing the
    number of ways each result can occur
  • 3:58 - 4:00
    and the pattern is obvious
  • 4:00 - 4:05
    so now let's change the graph to number
    of plucks versus each symbol
  • 4:05 - 4:09
    she proceeds by mapping the most
    common number, seven
  • 4:09 - 4:14
    to the shortest signal one pluck
  • 4:14 - 4:17
    she then proceeds to the next
    most probable number
  • 4:17 - 4:20
    and if there is a tie
    she picks one at random
  • 4:20 - 4:23
    in this case she selects
    six to be two plucks
  • 4:23 - 4:25
    and then eight to be three plucks
  • 4:25 - 4:28
    and then back to five to be four plucks
  • 4:28 - 4:30
    and nine as five plucks
  • 4:30 - 4:34
    and back and forth until we reach 12
  • 4:34 - 4:36
    which is assigned to 11 plucks
  • 4:36 - 4:39
    now the most common number seven
  • 4:39 - 4:42
    can be sent in less than a second
  • 4:42 - 4:44
    a huge improvement
  • 4:44 - 4:48
    this symbol change allows them to send
    more information
  • 4:48 - 4:52
    in the same amount of time on average
  • 4:52 - 4:56
    in fact this coding strategy
    is optimal for this simple example
  • 4:56 - 5:00
    in that it impossible for you to come up
    with a shorter method
  • 5:00 - 5:05
    of sending two dice rolls
    using identical plucks
  • 5:05 - 5:09
    however after playing with the
    wire for some time
  • 5:09 - 5:13
    Bob hit on a new idea
Title:
Source Encoding
Video Language:
English
Duration:
05:57

English subtitles

Revisions