ma/cs 6a - 2015-16/1term/ma006a/17. more permutations.pdfΒ Β· 11/5/2015 3 the 15 puzzle and...

15
11/5/2015 1 Ma/CS 6 a Class 17: More Permutations By Adam Sheffer 1 2 1 … 1 2 1 … Reminder: The Permutation Set – The set of permutations of β„• = 1,2,3, … , . The set 3 : 1 2 3 ↓ ↓ ↓ 1 2 3 1 2 3 ↓ ↓ ↓ 1 3 2 1 2 3 ↓ ↓ ↓ 2 1 3 1 2 3 ↓ ↓ ↓ 2 3 1 1 2 3 ↓ ↓ ↓ 3 1 2 1 2 3 ↓ ↓ ↓ 3 2 1

Upload: phamnguyet

Post on 29-Aug-2019

213 views

Category:

Documents


0 download

TRANSCRIPT

11/5/2015

1

Ma/CS 6aClass 17: More Permutations

By Adam Sheffer

π‘Ž

π‘₯1

π‘₯2

π‘₯π‘Ÿπ‘

𝑦1

𝑦𝑠

…

π‘Ž

𝑏

π‘₯1

π‘₯2

π‘₯π‘Ÿπ‘

𝑦1

𝑦𝑠

…

π‘Ž

Reminder: The Permutation Set 𝑆𝑛

𝑆𝑛 – The set of permutations of ℕ𝑛 = 1,2,3, … , 𝑛 .

The set 𝑆3:

1 2 3↓ ↓ ↓1 2 3

1 2 3↓ ↓ ↓1 3 2

1 2 3↓ ↓ ↓2 1 3

1 2 3↓ ↓ ↓2 3 1

1 2 3↓ ↓ ↓3 1 2

1 2 3↓ ↓ ↓3 2 1

11/5/2015

2

Reminder: Cycle Notation

We can consider a permutation as a set of cycles.

1 2 3↓ ↓ ↓5 6 3

4 5 6↓ ↓ ↓2 1 4

1 β†’ 5 2 β†’ 6 β†’ 4 3

We write this permutation as1 5 2 6 4 3 .

Reminder: Classification of Permutations

Both (1 2 4)(3 5) and (1 2 3)(4 5) are of the same type: one cycle of length 3 and one of length 2.

β—¦ We denote this type as 2 3

In general, we write a type as 1𝛼12𝛼23𝛼34𝛼4 … .

11/5/2015

3

The 15 Puzzle and Permutations

How a configuration of the puzzle can be described as a permutation?

β—¦ Denote the missing tile as 16.

β—¦ The board below corresponds to the permutation

1 16 3 4 6 2 11 10 5 8 7 9 14 12 15 13

The 15 Puzzle Revisited

What kind of permutations describe a move in the 15 Puzzle?

β—¦ Permutations that switch 16 with an element that was adjacent to it.

11/5/2015

4

Transpositions

Transposition: a permutation that interchanges two elements and leaves the rest unchanged.

β—¦ 1 3 5 2 4

1 2 3 4 5

1 4 3 2 5

Decomposing a Cycle

Problem. Write the cycle (1 2 3) as a composition of transpositions.

1 2 3

2 1 3

2 3 1

(1 2)(3)

(1 3)(2)

1 2 3 = 1 3 1 2

11/5/2015

5

Decomposing a Cycle (2)

Problem. Write the cycle (π‘₯1 π‘₯2 … π‘₯π‘˜) as a composition of transpositions.

π‘₯1 π‘₯2 π‘₯3 … π‘₯π‘˜

(π‘₯1 π‘₯2)

π‘₯2 π‘₯1 π‘₯3 … π‘₯π‘˜

(π‘₯1 π‘₯3)

π‘₯2 π‘₯3 π‘₯1 … π‘₯π‘˜

π‘₯2 π‘₯3 π‘₯4 … π‘₯1

π‘₯1 π‘₯2 … π‘₯π‘˜ =π‘₯1 π‘₯π‘˜ π‘₯1 π‘₯π‘˜βˆ’1 β‹― π‘₯1 π‘₯2

Decomposing a Permutation

Problem. Can every permutation be written as a composition of transpositions?

Yes! Write the permutation in its cycle notation and decompose each cycle.

1 3 6 2 4 5 7= 1 6 1 3 2 7 2 5 2 4

11/5/2015

6

Unique Representation?

Problem. Does every permutation have a unique decomposition into transpositions (up to their order)?

1 2 3 4 5 6 :

β—¦ 1 3 1 2 4 6 4 5 .

β—¦ 1 4 1 6 1 5 3 4 2 4 1 4 .

β—¦ No. But the different decompositions of a permutation have a common property.

Composing a Permutation with a Transposition Problem.

β—¦ 𝛼 – a permutation of 𝑆𝑛 that consists of 𝑐cycles in its cycle notation.

β—¦ 𝜏 – a transposition of 𝑆𝑛.

β—¦ What can we say about the number of cycles in πœπ›Ό? And of π›Όπœ?

11/5/2015

7

Solution: Case 1

Write 𝜏 = π‘Ž 𝑏 .

First, assume that π‘Ž, 𝑏 are in the same cycle of 𝛼.

β—¦ Write the cycle asπ‘Ž π‘₯1 π‘₯2 … π‘₯π‘Ÿ 𝑏 𝑦1 𝑦2 …𝑦𝑠 .

β—¦ Then πœπ›Ό contains the cycles π‘Ž π‘₯1 π‘₯2 … π‘₯π‘Ÿand 𝑏 𝑦1 𝑦2 …𝑦𝑠 (and similarly for π›Όπœ).

π‘Ž π‘₯1 …↓ ↓ ↓π‘₯1 π‘₯2 …

π‘₯π‘Ÿ 𝑏 𝑦1↓ ↓ β†“π‘Ž 𝑦1 𝑦2

… 𝑦𝑠↓ ↓… 𝑏

Solution: Case 1

Write 𝜏 = π‘Ž 𝑏 .

First, assume that π‘Ž, 𝑏 are in the same cycle of 𝛼.

β—¦ Write the cycle asπ‘Ž π‘₯1 π‘₯2 … π‘₯π‘Ÿ 𝑏 𝑦1 𝑦2 …𝑦𝑠 .

β—¦ Then πœπ›Ό contains the cycles π‘Ž π‘₯1 π‘₯2 … π‘₯π‘Ÿand 𝑏 𝑦1 𝑦2 …𝑦𝑠 (and similarly for π›Όπœ).

π‘Ž

π‘₯1

π‘₯2

π‘₯π‘Ÿπ‘

𝑦1

𝑦𝑠

…

π‘Ž

𝑏

π‘₯1

π‘₯2

π‘₯π‘Ÿπ‘

𝑦1

𝑦𝑠

…

π‘Ž

11/5/2015

8

Solution: Case 2

Write 𝜏 = π‘Ž 𝑏 .

Assume that π‘Ž and 𝑏 are in different cycles of 𝛼.

β—¦ Write the cycles as π‘Ž π‘₯1 π‘₯2 … π‘₯π‘Ÿ and 𝑏 𝑦1 𝑦2 …𝑦𝑠 .

β—¦ Then πœπ›Ό contains the cycle π‘Ž π‘₯1 π‘₯2 … π‘₯π‘Ÿ 𝑏 𝑦1 𝑦2 …𝑦𝑠 .

π‘Ž π‘₯1 …↓ ↓ ↓π‘₯1 π‘₯2 …

π‘₯π‘Ÿ 𝑏 𝑦1↓ ↓ ↓𝑏 𝑦1 𝑦2

… 𝑦𝑠↓ ↓… π‘Ž

Solution

𝛼 – a permutation of 𝑆𝑛 that consists of 𝑐cycles in its cycle notation.

𝜏 – a transposition of 𝑆𝑛.

The number of cycles in πœπ›Ό (or π›Όπœ) is either 𝑐 + 1 or 𝑐 βˆ’ 1.

11/5/2015

9

Parity of a Permutation

Theorem. Consider a permutation 𝛼 ∈ 𝑆𝑛. Then

β—¦ Either every decomposition of 𝛼 into transpos. consists of an even number of elements,

β—¦ or every such decomposition consists of an odd number of elements.

1 2 3 4 5 6 :

β—¦ 1 3 1 2 4 6 4 5 .

β—¦ 1 4 1 6 1 5 3 4 2 4 1 4 .

Proof

𝑐 – the number of cycles in 𝛼.

(WLOG) Assume that 𝑛 is even.

Consider a decomposition 𝛼 = 𝜏1𝜏2β‹―πœπ‘˜.

β—¦ The number of cycles in the cycle structure of πœπ‘˜ is 𝑛 βˆ’ 1.

β—¦ The number of cycles in πœπ‘˜βˆ’1πœπ‘˜ is even.

β—¦ The number of cycles in πœπ‘˜βˆ’2πœπ‘˜βˆ’1πœπ‘˜ is odd.

β—¦ …

β—¦ The number of cycles in 𝜏1𝜏2β‹―πœπ‘˜ is 𝑐.

Thus, π‘˜ has the same parity as 𝑐.

11/5/2015

10

Even and Odd Permutations

We say that a permutation is even or oddaccording to the parity of the number of transpositions in its decompositions.

Finding the Parity

What is the parity of

Cycle notation: 1 2 3 4 5 6 7 8 9 .

We saw that a cycle of length π‘˜ can be expressed as composition of π‘˜ βˆ’ 1transpositions.

β—¦ 8 transpositions = even.

1 2 3↓ ↓ ↓2 3 4

4 5 6↓ ↓ ↓5 6 7

7 8 9↓ ↓ ↓8 9 1

11/5/2015

11

Parity of Inverse

Problem. Prove that any permutation 𝛼 ∈ 𝑆𝑛 has the same parity as its inverse π›Όβˆ’1.

Proof.

β—¦ Decompose 𝛼 into transpositions 𝜏1𝜏2β‹―πœπ‘˜.

β—¦ We have π›Όβˆ’1 = πœπ‘˜β‹―πœ2𝜏1, since the product of these two permutation is obviously id.

The 15 Puzzle

Problem. Start with the configuration on the left and move the tiles to obtain the configuration on the right.

11/5/2015

12

Solution (Finally!)

The number of moves is even since

β—¦ For every time that we move the empty tile left/up, we must move it back right/down.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

Even permutation 1 2 3 4 5 6 7 8 9 10 11 12 13 15 14 16

Odd permutation

Solution (Finally!)

The number of moves/ transpositions is even.

To move from an even transposition to an oddone, there must be an odd number of transpositions.

Even permutationOdd permutation

11/5/2015

13

Even and Odd Permutations of 𝑆5

Type Example Number

15 id 1

132 1 2 (3)(4)(5) 10

123 (1 2 3)(4)(5) 20

122 1 2 (3 4)(5) 15

14 1 2 3 4 5 30

23 1 2 3 4 5 20

5 1 2 3 4 5 24

Even

OddEven

Even

Odd

OddEven

Even: 60 Odd: 60

Even and Odd Permutations of 𝑆𝑛

Theorem. For any integer 𝑛 β‰₯ 2, half of the permutations of 𝑆𝑛 are even and halfare odd.

11/5/2015

14

Proof

𝜏 – an arbitrary transposition of 𝑆𝑛.

If 𝛼 ∈ 𝑆𝑛 is even, then πœπ›Ό is odd.

If 𝛼 ∈ 𝑆𝑛 is odd, then πœπ›Ό is even.

For any 𝛼 ∈ 𝑆𝑛, we have πœπœπ›Ό = 𝛼.

𝜏 defines a bijection between the set of even permutations of 𝑆𝑛 and the set of odd permutations of 𝑆𝑛.

β—¦ Thus, the two sets are of the same size.

Example: The Bijection in 𝑆3

Let 𝜏 = 1 2 ∈ 𝑆3.

1 2 3 1 2 31 2 3 1 2 33 2 1 1 3 2

Even Odd

1 2 1 3 = 1 2 3

11/5/2015

15

The End: The First Math Theorem Proved in a TV Script? The 10th episode of 6th season of the TV show

Futurama is about people switching bodies.

This is a permutation of people, and a property of the permutations is used as a plot twist!

You can also see a complete mathematical proof for a second.