< Return to Video

Can you solve the famously difficult green-eyed logic puzzle? - Alex Gendler

  • 0:07 - 0:09
    Imagine an island where 100 people,
  • 0:09 - 0:14
    all perfect logicians,
    are imprisoned by a mad dictator.
  • 0:14 - 0:18
    There's no escape,
    except for one strange rule.
  • 0:18 - 0:23
    Any prisoner can approach the guards
    at night and ask to leave.
  • 0:23 - 0:26
    If they have green eyes,
    they'll be released.
  • 0:26 - 0:30
    If not, they'll be tossed
    into the volcano.
  • 0:30 - 0:34
    As it happens,
    all 100 prisoners have green eyes,
  • 0:34 - 0:37
    but they've lived there since birth,
  • 0:37 - 0:41
    and the dictator has ensured
    they can't learn their own eye color.
  • 0:41 - 0:43
    There are no reflective surfaces,
  • 0:43 - 0:46
    all water is in opaque containers,
  • 0:46 - 0:48
    and most importantly,
  • 0:48 - 0:51
    they're not allowed
    to communicate among themselves.
  • 0:51 - 0:55
    Though they do see each other
    during each morning's head count.
  • 0:55 - 0:59
    Nevertheless, they all know no one would
    ever risk trying to leave
  • 0:59 - 1:03
    without absolute certainty of success.
  • 1:03 - 1:05
    After much pressure
    from human rights groups,
  • 1:05 - 1:09
    the dictator reluctantly agrees
    to let you visit the island
  • 1:09 - 1:12
    and speak to the prisoners
    under the following conditions:
  • 1:12 - 1:15
    you may only make one statement,
  • 1:15 - 1:18
    and you cannot tell them
    any new information.
  • 1:18 - 1:21
    What can you say
    to help free the prisoners
  • 1:21 - 1:24
    without incurring the dictator's wrath?
  • 1:24 - 1:26
    After thinking long and hard,
  • 1:26 - 1:31
    you tell the crowd,
    "At least one of you has green eyes."
  • 1:31 - 1:33
    The dictator is suspicious
  • 1:33 - 1:38
    but reassures himself that your statement
    couldn't have changed anything.
  • 1:38 - 1:42
    You leave, and life on the island
    seems to go on as before.
  • 1:42 - 1:45
    But on the hundredth morning
    after your visit,
  • 1:45 - 1:47
    all the prisoners are gone,
  • 1:47 - 1:51
    each having asked to leave
    the previous night.
  • 1:51 - 1:54
    So how did you outsmart the dictator?
  • 1:54 - 1:59
    It might help to realize that the amount
    of prisoners is arbitrary.
  • 1:59 - 2:04
    Let's simplify things
    by imagining just two, Adria and Bill.
  • 2:04 - 2:06
    Each sees one person with green eyes,
  • 2:06 - 2:10
    and for all they know,
    that could be the only one.
  • 2:10 - 2:12
    For the first night, each stays put.
  • 2:12 - 2:15
    But when they see each other
    still there in the morning,
  • 2:15 - 2:18
    they gain new information.
  • 2:18 - 2:22
    Adria realizes that if Bill had seen
    a non-green-eyed person next to him,
  • 2:22 - 2:24
    he would have left the first night
  • 2:24 - 2:28
    after concluding the statement
    could only refer to himself.
  • 2:28 - 2:32
    Bill simultaneously realizes
    the same thing about Adria.
  • 2:32 - 2:34
    The fact that the other person waited
  • 2:34 - 2:39
    tells each prisoner his
    or her own eyes must be green.
  • 2:39 - 2:42
    And on the second morning,
    they're both gone.
  • 2:42 - 2:45
    Now imagine a third prisoner.
  • 2:45 - 2:49
    Adria, Bill and Carl each see
    two green-eyed people,
  • 2:49 - 2:54
    but aren't sure if each of the others
    is also seeing two green-eyed people,
  • 2:54 - 2:56
    or just one.
  • 2:56 - 2:58
    They wait out the first night as before,
  • 2:58 - 3:01
    but the next morning,
    they still can't be sure.
  • 3:01 - 3:04
    Carl thinks, "If I have non-green eyes,
  • 3:04 - 3:07
    Adria and Bill were just
    watching each other,
  • 3:07 - 3:10
    and will now both leave
    on the second night."
  • 3:10 - 3:12
    But when he sees both
    of them the third morning,
  • 3:12 - 3:16
    he realizes they must
    have been watching him, too.
  • 3:16 - 3:19
    Adria and Bill have each
    been going through the same process,
  • 3:19 - 3:22
    and they all leave on the third night.
  • 3:22 - 3:24
    Using this sort of inductive reasoning,
  • 3:24 - 3:29
    we can see that the pattern will repeat
    no matter how many prisoners you add.
  • 3:29 - 3:32
    The key is the concept
    of common knowledge,
  • 3:32 - 3:35
    coined by philosopher David Lewis.
  • 3:35 - 3:39
    The new information was not contained
    in your statement itself,
  • 3:39 - 3:43
    but in telling it to everyone
    simultaneously.
  • 3:43 - 3:47
    Now, besides knowing at least one
    of them has green eyes,
  • 3:47 - 3:51
    each prisoner also knows
    that everyone else is keeping track
  • 3:51 - 3:54
    of all the green-eyed people they can see,
  • 3:54 - 3:59
    and that each of them
    also knows this, and so on.
  • 3:59 - 4:01
    What any given prisoner doesn't know
  • 4:01 - 4:04
    is whether they themselves are one
    of the green-eyed people
  • 4:04 - 4:06
    the others are keeping track of
  • 4:06 - 4:13
    until as many nights have passed
    as the number of prisoners on the island.
  • 4:13 - 4:17
    Of course, you could have spared
    the prisoners 98 days on the island
  • 4:17 - 4:21
    by telling them at least 99 of you
    have green eyes,
  • 4:21 - 4:26
    but when mad dictators are involved,
    you're best off with a good headstart.
Title:
Can you solve the famously difficult green-eyed logic puzzle? - Alex Gendler
Speaker:
Alex Gendler
Description:

View full lesson: http://ed.ted.com/lessons/the-famously-difficult-green-eyed-logic-puzzle-alex-gendler

One hundred green-eyed logicians have been imprisoned on an island by a mad dictator. Their only hope for freedom lies in the answer to one famously difficult logic puzzle. Can you solve it? Alex Gendler walks us through this green-eyed riddle.

Lesson by Alex Gendler, animation by Artrake Studio.

more » « less
Video Language:
English
Team:
closed TED
Project:
TED-Ed
Duration:
04:42

English subtitles

Revisions Compare revisions