< Return to Video

Computational Number Theory (Prime Adventure part 1)

  • 0:00 - 0:03
    We'll return back to 1770, and look at what
  • 0:03 - 0:07
    Leonard Euler said at the time.
  • 0:07 - 0:09
    "Mathematicians have tried in vain
  • 0:09 - 0:11
    to discover some order
  • 0:11 - 0:12
    in the sequence of prime numbers.
  • 0:12 - 0:14
    But we have every reason to believe
  • 0:14 - 0:15
    that there are some mysteries
  • 0:15 - 0:18
    which the human mind will never penetrate."
  • 0:18 - 0:19
    Okay?
  • 0:19 - 0:23
    And thirty years later, here's a quote from Gauss.
  • 0:23 - 0:26
    "The problem of distinguishing
  • 0:26 - 0:28
    prime numbers from composite numbers,
  • 0:28 - 0:29
    and resolving composite numbers into their
  • 0:29 - 0:31
    prime factors, is known as one of the most
  • 0:31 - 0:35
    important and useful [problems] in the arithmetic.
  • 0:35 - 0:38
    All methods that have been proposed thus far
  • 0:38 - 0:42
    are either restricted to very special cases,
  • 0:42 - 0:45
    or are so difficult that they try the patience
  • 0:45 - 0:48
    of even the practiced calculator.
  • 0:48 - 0:51
    The dignity of science itself seems to require
  • 0:51 - 0:53
    that every possible means be explored
  • 0:53 - 0:55
    for the solution of a problem
  • 0:55 - 0:58
    so elegant and so celebrated."
  • 0:58 - 1:00
    Wow!
  • 1:00 - 1:02
    So these two great thinkers have really
  • 1:02 - 1:05
    set the stage for the challenge ahead of us.
  • 1:05 - 1:08
    And now, I'm going to fast-forward to 2010,
  • 1:08 - 1:10
    and show you a paper
  • 1:10 - 1:12
    that came out of the 'RSA competition' --
  • 1:12 - 1:14
    which is a competition that no longer runs.
  • 1:14 - 1:16
    But the purpose of the competition was
  • 1:16 - 1:18
    to put out a large number and say,
  • 1:18 - 1:20
    "Can anyone factor it?"
  • 1:20 - 1:23
    So in 2010, this winning team
  • 1:23 - 1:26
    factored a 768-bit number.
  • 1:26 - 1:30
    (And that means it was a 232-digit number,
  • 1:30 - 1:32
    if you're thinking in base ten.)
  • 1:32 - 1:36
    So this team -- in 2010 -- they won the competition
  • 1:36 - 1:39
    by factoring a 232-digit number.
  • 1:39 - 1:44
    So that's how far we have come from Euler to --
  • 1:44 - 1:46
    (Or we can go back to Euclid.)
  • 1:46 - 1:47
    But from Euler to 2010,
  • 1:47 - 1:49
    we're at 232-digit numbers.
  • 1:49 - 1:51
    And here was the answer in their paper.
  • 1:51 - 1:55
    So this was the first prime.
  • 1:55 - 1:57
    This was p1.
  • 1:57 - 1:59
    And this was p2.
  • 1:59 - 2:03
    So this is the state of the art right now.
  • 2:04 - 2:06
    Okay. How did they factor this number?
  • 2:06 - 2:07
    And what are the state-of-the-art techniques?
  • 2:07 - 2:09
    Well, we're going to go back
  • 2:09 - 2:10
    and build from the beginning.
  • 2:10 - 2:14
    And this kind of defines 'computational number theory.'
  • 2:14 - 2:17
    That is the topic of this adventure.
  • 2:17 - 2:20
    So what does computational number theory mean?
  • 2:20 - 2:23
    Well, 'computation' comes from the Greek word for 'gravel.'
  • 2:23 - 2:25
    Stones were used for counting.
  • 2:25 - 2:28
    Computation is any type of calculation --
  • 2:28 - 2:30
    whether you're using stones, or a ruler,
  • 2:30 - 2:32
    or a slide rule, or a calculator,
  • 2:32 - 2:34
    or this cool looking machine --
  • 2:34 - 2:37
    which is Babbage's 'Difference Engine' --
  • 2:37 - 2:41
    which was a hand-powered calculator.
  • 2:41 - 2:42
    It doesn't matter what you're using
  • 2:42 - 2:44
    or [if] you're using a computer -- [or not].
  • 2:44 - 2:46
    You're doing some sort of computation.
  • 2:46 - 2:49
    And now, what kind of computation are we doing?
  • 2:49 - 2:52
    Number theory.
  • 2:52 - 2:55
    And that involves this mysterious distribution
  • 2:55 - 2:58
    of prime numbers -- studying this distribution.
  • 2:58 - 3:00
    And what we're actually looking at
  • 3:00 - 3:02
    is 'multiplicative' number theory --
  • 3:02 - 3:03
    which is questions of
  • 3:03 - 3:05
    "How do you factorize numbers?"
  • 3:05 - 3:07
    "How do you tell me if a number is prime?"
  • 3:07 - 3:09
    -- and so forth.
  • 3:09 - 3:14
    And we begin with a very simple question, or --
  • 3:14 - 3:17
    not a question -- a challenge.
  • 3:17 - 3:20
    We need to build a machine which takes an input --
  • 3:20 - 3:22
    (And that input is some integer, 'x.')
  • 3:22 - 3:25
    And all that machine needs to do
  • 3:25 - 3:32
    is output 'true' or 'false.'
  • 3:32 - 3:34
    And that is the first step.
  • 3:34 - 3:36
    Now we will use the
  • 3:36 - 3:37
    [Khan Academy] computer-science tool
  • 3:37 - 3:40
    to actually build this machine together.
  • 3:40 - 3:41
    And one of the questions
  • 3:41 - 3:45
    that we will be asking is two things --
  • 3:45 - 3:46
    two aspects to this machine.
  • 3:46 - 3:49
    How much time --
  • 3:49 - 3:50
    That's a clock. [CHUCKLES]
  • 3:50 - 3:53
    How much time does it take to get the solution?
  • 3:53 - 3:57
    And how much space does it need?
  • 3:57 - 3:59
    And when I say 'space,'
  • 3:59 - 4:00
    I mean -- for example, in the case of
  • 4:00 - 4:02
    this mechanical calculator -- physical space.
  • 4:02 - 4:04
    How many rooms do we need to hold our machine?
  • 4:04 - 4:06
    Or if we're using a computer,
  • 4:06 - 4:10
    how much memory does it need?
  • 4:10 - 4:12
    So we will be returning
  • 4:12 - 4:14
    to these two ideas as we go.
Title:
Computational Number Theory (Prime Adventure part 1)
Description:

Prime Adventure: Learn how to build algorithms (and write code!) which solve number theoretic challenges such as prime factorization. Follow the rest of this adventure on Khan Academy: http://www.khanacademy.org/cs/prime-adventure-level-1/1018672065

more » « less
Video Language:
English
Duration:
04:14

English subtitles

Revisions