Download - Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Transcript
Page 1: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Cycles, Transpositions, and

Bob Gardner

KME Advisor

Fall 2013

Page 2: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Futurama is an animated series about a pizza delivery boy, Philip J. Fry, who time travels from New Year’s Eve 1999 to New Year’s Eve 2999. The show follows the underachieving Fry as he deals with talking robots, one eyed mutants, and various space aliens.

The show aired from March 28, 1999 to September 4, 2013 on the Fox network (1999 to 2003) and Comedy Central (2008 to 2013),for a total of 140 shows. The show was created by Matt Groening, of The Simpsons fame.

Page 3: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Futurama has always been big on math and science related jokes. In fact, several of the writers have undergraduate and graduate degrees in mathematics, computer science, physics, and chemistry.

Dr. Sarah Greenwald of Appalachian State University has a webpage devoted to the mathematical content of Futurama: http://mathsci.appstate.edu/~sjg/futurama/

Page 4: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Writer Ken Keeler has a Ph.D. in applied math from Harvard University. He wrote the script for “The Prisoner of Benda” which first aired on Comedy Central on August 19, 2010.

The plot concerns a body switching machine which allows two bodies to switch brains, but once a pair of bodies has switched brains then the same pair of bodies cannot switch again (due to the cerebral immune response). After several uses of the machine, the problem is to return the brains to the correct bodies. Keeler proved a theorem about permutation groups and it is used in the show.

Page 5: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

The Regular Characters

Fry (F) Leela (L) Zoiberg (Z) Bender (B)

Amy (A) Hermes (H) Professor Farnsworth (P)

Page 6: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Characters Relevant to “The Prisoner of Benda”

Emperor Nikolai (E)

Washbucket (W)

Sweet Clyde (S)

Bubblegum Tate (T)

Page 7: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

1. Groups

2. Permutation Notation

3. Permutation Group

4. Transpositions

5. The Inversion Theorem

Page 8: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Definition. A binary operation on a set is a rule that assigns to each ordered pair of elements of the set an element of the set. The element associated with ordered pair (a,b) is denoted

.ba

Leela (L)

Example. Consider the set M2 of all matrices. A binary operation on M2 is matrix multiplication. Notice that this binary operation is not commutative.

22

Page 9: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Definition. A group is a set G together with a binary operation on G such that:• The binary operation is associative• There is an element e in G such that for all , and• For each there is an element with the property that

aaeea Ga

Ga Ga .eaaaa

Amy (A)

,)()( cbacba

Note. Element e is called the identity element of the group and element is called the inverse of element a.

a

Page 10: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Example. Here is an example of a “multiplication table” of a group with binary operation and set

* a b c d e

a a b c d e

b b c d e a

c c d e a b

d d e a b c

e e a b c d

+ 0 1 2 3 4

0 0 1 2 3 4

1 1 2 3 4 0

2 2 3 4 0 1

3 3 4 0 1 2

4 4 0 1 2 3

*

G={a,b,c,d,e}.G={0,1,2,3,4}.

The integers modulo 5, Z5.

Professor Farnsworth (P)

Page 11: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Example. In general, the integers modulo n form a group under addition, Zn.Example. The integers form an infinite group under addition, Z. The integers do not form a group under multiplication or division.Example. The real numbers form a group under addition, R.

Zoiberg (Z)

Page 12: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Definition. A permutation of a set A is a one-to-one and onto function from set A to itself.

Example. If A={1,2,3,4,5}, then a permutation is function where: )=4, (2)=2, (3)=5, (4)=3, (5)=1. This can be represented with permutation notation as:

.1

5

35

43

24

21

Bender (B)

Page 13: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Example. Another permutation on set A={1,2,3,4,5} is

We can multiply two permutations to get the permutation product as follows:

.3

5

41

43

52

21

1

5

24

43

53

21

1

5

35

43

24

21

.1

5

24

43

53

21

Fry (F)

Page 14: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Example. We can write the previous permutation as a “product of cycles”:

.43,5,2,13

5

41

43

52

21

Theorem. Every permutation of a finite set is a product of disjoint cycles.

Hermes (H)

Page 15: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Example. When taking products of cycles, we read from left to right:

.654321

,,,,,

64 25 51

14 23 6 51

Amy (A)

Page 16: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Example. Consider the two permutations on {1,2,3}:

and

The product of these permutations is:

For this reason, is called the inverse of

1

3

32

21 .

2

3

13

211

.3

3

21

21

2

3

13

21

1

3

32

211

.1

Bender (B)

Page 17: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Note. In fact, the permutations of a set form a group where the binary operation is permutation product.

Definition. The group of all permutations of a set of size n is called the symmetric group on n letters, denoted Sn.

Note. Two important subgroups of Sn are the dihedral group Dn and the alternating group An.

Page 18: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Definition. A cycle of length two is a transposition.

Theorem. Any permutation of a finite set of at least two elements is a product of transpositions.

Page 19: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Now let’s watch “The Prisoner of Benda.” Watch for the seven main characters (Fry,

Leela, Amy, Professor Farnsworth, Zoiberg, Hermes, and Bender), along with

the other four characters:

Emperor Nikolai (E)

Washbucket (W)

Sweet Clyde (S) Bubblegum Tate (T)

Page 20: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Note. We will represent a body switch with a transposition. The first body switch is between the Professor and Amy. We denote this as:

or AP, ., AP

Page 21: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

After the First Three Body Switches…

…the permutation is .,,,

P

L

A

B

LB

APLPBAAP

Page 22: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Let’s explore some permutations and their

inverses…

Page 23: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Suppose we start with this population…

RED BLUE

YELLOW GREEN

Page 24: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

...and permute the red and blue disks:

RED BLUE

YELLOW GREEN

Page 25: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

We can…

RED BLUE

YELLOW GREEN

(Y,R)(G,B)(Y,B)(G,R)

Page 26: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Finally, we interchange Y and G

RED BLUE

YELLOW GREEN

(Y,G)

Page 27: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Suppose we start with this population…

RED BLUE

YELLOW GREEN

BLACK

Page 28: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Let’s mix things up to create a 3-cycle:

RED BLUE

YELLOW GREEN

BLACK

(B,Bc)(R,Bc)

(RED,BLUE,BLACK)

Page 29: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Let’s mix things up to create a 3-cycle:

RED BLUE

YELLOW GREEN

BLACK

(Y,R)(G,B)(G,Bc)(Y,B)(G,R)(Y,G)

Page 30: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

In The Prisoner of Benda, the initial transpositions are:

This yields the resulting permutation:

Body 1 Body 2 Transposition

Professor Amy (P,A)

Amy Bender (A,B)

Professor Leela (P,L)

Amy Washbucket (A,W)

Fry Zoiberg (F,Z)

Washbucket Emperor (W,E)

Hermes Leela (H,L)

LHEWZFWALPBAAP ,,,,,,,

.

F

Z

LW

HE

ZA

FW

PE

LB

HB

AP

Page 31: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Note. The problem is to find an inverse of the permutation

which does not repeat any of the previous transpositions (or repeat any new transpositions). Notice that this transposition can be written as the disjoint cycles:

F

Z

LW

HE

ZA

FW

PE

LB

HB

AP

.,,,,,,, FZLHAWEBP

Page 32: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Futurama gives the following transpositions which produce the inverse of the above permutation:

Body 1 Body 2 Transposition

Fry Sweet Clyde (F,S)

Zoiberg Bubblegum Tate (Z,T)

Sweet Clyde Zoiberg (S,Z)

Bubblegum Tate Fry (T,F)

Professor Sweet Clyde (P,S)

Washbucket Bubblegum Tate (W,T)

Sweet Clyde Leela (S,L)

Bubblegum Tate Emperor (T,E)

Hermes Sweet Clyde (H,S)

Bender Bubblegum Tate (B,T)

Sweet Clyde Amy (S,A)

Bubblegum Tate Professor (T,P)

Washbucket Sweet Clyde (W,S)

Page 33: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

The transpositions give the permutation:

which equals the product of disjoint cycles:

SWPTASTBSHETLSTWSPFTZSTZSF ,,,,,,,,,,,,,

,

W

A

PA

BH

BH

EL

EL

WP

TF

TZ

SZ

SF

.,,,,,,, BEWAHLPTSZF

Page 34: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

We can take the permutation product to get:

This verifies that Futurama’s second permutation is the inverse of the first permutation.

F

Z

LW

HE

ZA

FW

PE

LB

HB

AP

W

A

PA

BH

BH

EL

EL

WP

TF

TZ

SZ

SF

.

A

A

BH

BH

EL

EL

WP

WP

TZ

TZ

SF

SF

Page 35: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

In terms of cycles, we have:

FZLHAWEBP ,,,,,,,

BEWAHLPTSZF ,,,,,,,

.TSFZLHAWEBP

Page 36: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Sweet Clyde’s Inversion Theorem. Any permutation on a set of n individuals created in the body switching machine can be restored by introducing at most two extra individuals and adhering to the cerebral immune response rule (i.e. no repeated transpositions).

Page 37: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Here is Futurama’s proof of Sweet Clyde’s Inversion Theorem:

Page 38: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Recall that:Theorem. Every permutation of a finite set is a product of disjoint cycles.So if we can show the theorem for a k-cycle, then this is sufficient for the proof.

Page 39: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

First, let be a k-cycle:

Introduce two new elements, x and y. We perform a sequence of transpositions. Consider

(this is a special case of Sweet Clyde’s proof, and we use a slightly different notation).

.1

1

4

3

32

21,,3,2,1

k

kkk

.12

1

2

3

1

21

xy

yx

k

k

k

k

k

1,2,3,2,1,,2,1, xyykykykyxy

Page 40: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

We now see that whatever permutation did, permutation undoes:

or

Notice that x and y are interchanged, but all other elements are fixed.

xy

yx

kk

kk

1

1

3

3

21

21

xy

yx

k

k

k

k

kk

kk

12

1

2

3

1

21

1

1

4

3

32

21

1,2,3,2,1,,2,1,,3,2,1 xyykykykyxyk

.,,1,12,21,1 yxkkkk

Page 41: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

So for each cycle in the permutation, x and y are interchanged. If the permutation consists of an even number of cycles, then x and y will be fixed. If there are an odd number of cycles in the permutation, then at the end, apply the permutation (x,y).

DEQ

Page 42: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

Oh yeah… the gratuitous cartoon nudity…

Page 43: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.

1. Fraleigh, John B., A First Course in Abstract Algebra, Third Edition, Addison-Wesley Publishing (1982).

2. Internet: The images in this presentation were shamelessly “borrowed” from the internet. Wikipedia and Google’s image search were of particular use.

3. Details on the proof are online at: http://theinfosphere.org/The_Prisoner_of_Benda

References

Page 44: Cycles, Transpositions, and Bob Gardner KME Advisor Fall 2013.