HAMILTONICITY OF HANOI GRAPHS Katherine Rock Advisor: Dr. John - - PowerPoint PPT Presentation

โ–ถ
hamiltonicity of hanoi
SMART_READER_LITE
LIVE PREVIEW

HAMILTONICITY OF HANOI GRAPHS Katherine Rock Advisor: Dr. John - - PowerPoint PPT Presentation

ON THE PLANARITY AND HAMILTONICITY OF HANOI GRAPHS Katherine Rock Advisor: Dr. John Caughman Fariborz Maseeh Department of Mathematics and Statistics Portland State University MTH 501 Presentation June 2, 2016 The Tower of Hanoi Puzzles


slide-1
SLIDE 1

ON THE PLANARITY AND HAMILTONICITY OF HANOI GRAPHS

Katherine Rock Advisor: Dr. John Caughman Fariborz Maseeh Department of Mathematics and Statistics Portland State University MTH 501 Presentation June 2, 2016

slide-2
SLIDE 2

The Tower of Hanoi Puzzles

ร‰douard Lucas 1842-1891 The original Tower of Hanoi puzzle 1883

slide-3
SLIDE 3

The Tower of Hanoi Puzzles

  • ๐‘œ discs arranged on 3 + ๐‘› vertical pegs, with ๐‘œ, ๐‘› โˆˆ โ„คโ‰ฅ0.
  • Each disc is a different size.
  • Regular state: If multiple discs are on the same peg, they

are arranged in decreasing size from bottom to top.

  • Perfect state: A regular state in which all discs are on the

same peg.

slide-4
SLIDE 4

The Tower of Hanoi Puzzles

  • Object: To move from one perfect state to another by

moving one disc at a time from the topmost position on

  • ne peg to the topmost position on another peg.
  • Divine rule: No larger disc may be placed on top of any

smaller disc.

slide-5
SLIDE 5

Hanoi Graphs

  • The Hanoi graph ๐ผ๐‘›

๐‘œ corresponds to the Tower of Hanoi

puzzle with 3 + ๐‘› pegs and ๐‘œ discs.

  • Label the pegs 0,1, โ€ฆ , 2 + ๐‘› and let ๐‘ฆ๐‘— be the position of

the disc with radius ๐‘—, for each ๐‘— = 1,2, โ€ฆ , ๐‘œ.

  • Then each regular state in the puzzle is represented by

vertex in the graph, labeled with an ๐‘œ-tuple (๐‘ฆ1, ๐‘ฆ2, โ€ฆ , ๐‘ฆ๐‘œ), where each ๐‘ฆ๐‘— โˆˆ {0,1, โ€ฆ , 2 + ๐‘›}.

  • The edges of ๐ผ๐‘›

๐‘œ are all the possible legal moves of the

  • discs. Two vertices are adjacent if and only if their

corresponding states can be achieved from one another through a legal move of exactly one disc.

slide-6
SLIDE 6

Example: ๐ผ๐‘›

5

In the graph ๐ผ๐‘›

5 ,

1,1,1,1,1 ~(0,1,1,1,1) and 0,1,1,1,1 ~(0,2 + ๐‘›, 1,1,1), but 1,1,1,1,1 โ‰ 0,2 + ๐‘›, 1,1,1 .

slide-7
SLIDE 7

Hanoi Graphs

Definition Let ๐‘œ, ๐‘› โˆˆ โ„ค, with ๐‘œ > 0 and ๐‘› โ‰ฅ 0. The Hanoi graph ๐ผ๐‘›

๐‘œ is the graph with vertex set ๐‘Š(๐ผ๐‘› ๐‘œ )

given by ๐‘Š ๐ผ๐‘›

๐‘œ

= ๐‘ฆ1, ๐‘ฆ2, โ€ฆ , ๐‘ฆ๐‘œ 0 โ‰ค ๐‘ฆ๐‘— โ‰ค 2 + ๐‘›, ๐‘ฆ๐‘— โˆˆ โ„ค} and where ๐‘ฆ1, ๐‘ฆ2, โ€ฆ , ๐‘ฆ๐‘œ ~ ๐‘ง1, ๐‘ง2, โ€ฆ , ๐‘ง๐‘œ if and only if there exists ๐‘— โˆˆ 1,2, โ€ฆ , ๐‘œ such that

i.

๐‘ฆ๐‘— โ‰  ๐‘ง๐‘—,

ii.

๐‘ฆ๐‘˜ = ๐‘ง๐‘˜ for all ๐‘— โ‰  ๐‘˜, and

iii.

๐‘ฆ๐‘—, ๐‘ง๐‘— โˆฉ ๐‘ฆ1, โ€ฆ , ๐‘ฆ๐‘—โˆ’1 = โˆ….

slide-8
SLIDE 8

Example: ๐ผ0

3

slide-9
SLIDE 9

Example: ๐ผ1

1 & ๐ผ1 2

slide-10
SLIDE 10

Outline

  • Introduction (done)
  • Hamiltonian graphs
  • Hamiltonicity of ๐ผ๐‘›

๐‘œ

  • Planar graphs
  • Planarity of Hanoi graphs
slide-11
SLIDE 11

Hamiltonian Graphs

Definition A graph ๐ป is called hamiltonian if it contains a cycle that is a spanning subgraph of ๐ป. Example: ๐ผ0

3

slide-12
SLIDE 12

Hamiltonicity of ๐ผ๐‘›

๐‘œ

Lemma 1 Let ๐‘ก1, ๐‘ก2, ๐‘ก3, and ๐‘ก4 be perfect states in ๐ผ๐‘›

๐‘œ , with s1 โ‰  ๐‘ก2

and ๐‘ก3 โ‰  ๐‘ก4. Then there exists an automorphism ๐‘” โˆˆ ๐ต๐‘ฃ๐‘ข(๐ผ๐‘›

๐‘œ ) such that

๐‘” ๐‘ก1 = ๐‘ก3 and ๐‘” ๐‘ก2 = ๐‘ก4.

slide-13
SLIDE 13

Hamiltonicity of ๐ผ๐‘›

๐‘œ

Theorem 1 Every Hanoi graph is hamiltonian. Proof: Fix any ๐‘› โˆˆ โ„คโ‰ฅ0. The proof consists of two parts.

  • Part I: We will show by induction on ๐‘œ that there exists a

hamiltonian path in ๐ผ๐‘›

๐‘œ beginning and ending with vertices

that correspond to distinct perfect states.

  • Part II: We will use the result of Part I to construct a

hamiltonian cycle in ๐ผ๐‘›

๐‘œ+1.

slide-14
SLIDE 14

Theorem 1, Part I

Base Case: Let ๐‘œ = 1. The Hanoi graph ๐ผ๐‘›

1 is isomorphic to the complete graph

  • n 3 + ๐‘› vertices, which is hamiltonian, and so contains a

hamiltonian path. Example: ๐ผ2

1

slide-15
SLIDE 15

Theorem 1, Part I

Induction Hypothesis: Fix any ๐‘œ โ‰ฅ 1 and suppose ๐ผ๐‘›

๐‘œ has a hamiltonian path

beginning and ending with vertices that correspond to distinct perfect states. ๐ผ๐‘›

๐‘œ+1 corresponds to the puzzle obtained by adding a disc

with radius ๐‘œ + 1 to the Tower of Hanoi puzzle that correspond to ๐ผ๐‘›

๐‘œ .

๐ผ๐‘›

๐‘œ

๐ผ๐‘›

๐‘œ+1

slide-16
SLIDE 16

Theorem 1, Part I

Without loss of generality, suppose all discs begin on peg 0. By the induction hypothesis, there is a hamiltonian path between distinct perfect states in ๐ผ๐‘›

๐‘œ .

By Lemma 1, perfect states are isomorphic, so there is a hamiltonian path between any two distinct perfect states. We can move disc ๐‘œ + 1 stepwise through every peg from 0 to 2 + ๐‘› in the following way.

slide-17
SLIDE 17

Theorem 1, Part I

Before each step moving disc ๐‘œ + 1, we perform a hamiltonian path transferring the ๐‘œ-tower of discs to a peg allowing disc ๐‘œ + 1 to move. In general, before moving disc ๐‘œ + 1 from peg ๐‘— to peg ๐‘— + 1, we first move the ๐‘œ-tower to peg ๐‘— + 2(mod 3 + ๐‘›).

slide-18
SLIDE 18

Theorem 1, Part I

After the last move of disc ๐‘œ + 1 to peg 2 + ๐‘›, the ๐‘œ- tower can be transferred to peg 2 + ๐‘› as well, again through a hamiltonian path in ๐ผ๐‘›

๐‘œ .

During this process, every possible state of all ๐‘œ + 1 discs is achieved exactly

  • nce, completing a

hamiltonian path in ๐ผ๐‘›

๐‘œ+1.

slide-19
SLIDE 19

Theorem 1, Part II

We now construct a hamiltonian cycle in ๐ผ๐‘›

๐‘œ+1.

Without loss of generality, let the initial vertex in the cycle be 1,1, โ€ฆ , 1,0 โˆˆ ๐‘Š ๐ผ๐‘›

๐‘œ+1 .

By Part I, we can transfer the ๐‘œ-tower of smaller discs from peg 1 to peg 2 through a hamiltonian path, followed by moving disc ๐‘œ + 1 to peg 1. In this step, weโ€™ve gone through every vertex with a 0 in the last entry, ending on vertex (2,2, โ€ฆ , 2,1).

slide-20
SLIDE 20

Theorem 1, Part II

Continuing in this way, we transfer the ๐‘œ-tower through a hamiltonian path from peg ๐‘— + 1 to peg ๐‘— + 2 for each ๐‘— โˆˆ {0,1, โ€ฆ , 2 + ๐‘›}, following each by a single move of disc ๐‘œ + 1 from peg ๐‘— to peg ๐‘— + 1, where each step is modulo 3 + ๐‘›. In each step, we go through every vertex with an ๐‘— in the last entry.

slide-21
SLIDE 21

Theorem 1, Part II

The process terminates when we transfer the ๐‘œ- tower back to peg 1, followed by moving disc ๐‘œ + 1 to peg 0. We have completed a path in ๐ผ๐‘›

๐‘œ+1 that goes through

every vertex exactly once and ends on the initial

  • vertex. Thus ๐ผ๐‘›

๐‘œ+1 contains

a hamiltonian cycle. โ– 

slide-22
SLIDE 22

Planar Graphs

Definition A graph ๐ป is called planar if it can be drawn in the plane without any crossings. Example: The complete graph The complete graph ๐ฟ5 ๐ฟ4 is planar. is not planar

slide-23
SLIDE 23

Planarity of ๐ผ๐‘›

๐‘œ

Theorem 2 The only planar Hanoi graphs are ๐ผ0

๐‘œ, ๐ผ1 1, and ๐ผ1 2.

Proof:

  • Part I: We will show that ๐ผ1

1 and ๐ผ1 2 are planar by

constructing planar embeddings of each.

  • Part II: We will show by induction that ๐ผ0

๐‘œ is planar for all

๐‘œ โˆˆ โ„•.

  • Part III: We will show that ๐ผ๐‘›

๐‘œ is non-planar for all ๐‘› โ‰ฅ 2

and ๐‘œ โ‰ฅ 1.

  • Part IV: We will show that ๐ผ1

๐‘œ is non-planar for all ๐‘œ โ‰ฅ 3.

slide-24
SLIDE 24

Theorem 2, Part I

๐ผ1

1 and ๐ผ1 2 are planar, as demonstrated by planar

embeddings. Note that, since ๐ผ1

2 is 3-connected (there is no pair of

vertices whose deletion results in a disconnected graph), this planar embedding of ๐ผ1

2 is essentially unique.

slide-25
SLIDE 25

Theorem 2, Part I

๐’, ๐’ 1 2 3 4 5 โ€ฆ 1 Y Y 2 3 4 5 โ‹ฎ

slide-26
SLIDE 26

Theorem 2, Part II

We will show by induction on ๐‘œ that ๐ผ0

๐‘œ allows a planar

embedding, whose infinite face is the complement of an equilateral triangle with side length 2๐‘œ โˆ’ 1, and whose corners are the perfect states. Base Case: Let ๐‘œ = 1. The graph ๐ผ0

1 corresponds to the Tower of Hanoi puzzle

with 1 disc on 3 pegs. The disc can move freely between the pegs, so ๐ผ0

1 is isomorphic to the complete graph ๐ฟ3.

Thus ๐ผ0

1 is planar and it can be drawn as an

equilateral triangle with side length 1 = 21 โˆ’ 1.

slide-27
SLIDE 27

Theorem 2, Part II

Induction Hypothesis: Fix any ๐‘™ โˆˆ โ„• and suppose ๐ผ0

๐‘™ can be drawn without

crossings such that its infinite face is the complement of an equilateral triangle with side length 2๐‘™ โˆ’ 1 and the corners are the perfect states. Label the perfect states of ๐ผ0

๐‘™ by ( 0 ), ( 1 ), and

2 , where ( ๐‘— ) is the ๐‘™-tuple consisting of all ๐‘—โ€™s.

slide-28
SLIDE 28

Theorem 2, Part II

We construct ๐ผ0

๐‘™+1 in the following way.

  • Take 3 copies of ๐ผ0

๐‘™, one for each possible position of disc

๐‘™ + 1 (peg 0, 1, or 2).

  • Relabel their vertices with (๐‘™ + 1)-tuples ending in 0, 1,

and 2, respectively.

  • Add 3 edges to form the adjacencies 0 , 1 ~( 0 , 2),

1 , 0 ~( 1 , 2), and 2 , 0 ~ 2 , 1 .

  • Since each of the 3 copies of ๐ผ0

๐‘™ is an equilateral triangle,

through flips we can arrange them so that each of the three edges added are the middle edges of a new equilateral triangle with side length 2 2๐‘™ โˆ’ 1 + 1 = 2๐‘™+1 โˆ’ 1.

slide-29
SLIDE 29

Theorem 2, Part II

slide-30
SLIDE 30

Theorem 2, Part II

We certainly have the adjacencies 0 , 1 ~( 0 , 2), 1 , 0 ~( 1 , 2), and 2 , 0 ~ 2 , 1 in ๐ผ0

๐‘™+1, since if the ๐‘™-

tower of smaller discs are all on one peg, then disc ๐‘™ + 1 is free to move between the other two pegs. To verify that exactly 3 edges are added to the 3 copies of ๐ผ0

๐‘™ to form ๐ผ0 ๐‘™+1, we can use the edge count formula for ๐ผ๐‘› ๐‘œ

๐น๐‘›

๐‘œ = (3 + ๐‘›)(2 + ๐‘›)

4 3 + ๐‘› ๐‘œ โˆ’ 1 + ๐‘› ๐‘œ to show that ๐น0

๐‘™+1 = 3 ๐น0 ๐‘™ + 3.

Thus ๐ผ0

๐‘œ is planar for all ๐‘œ โˆˆ โ„•.

slide-31
SLIDE 31

Theorem 2, Part II

๐’, ๐’ 1 2 3 4 5 โ€ฆ Y Y Y Y Y โ€ฆ 1 Y Y 2 3 4 5 โ‹ฎ

slide-32
SLIDE 32

Theorem 2, Part III

The Hanoi graph ๐ผ2

1 is isomorphic to the complete graph

๐ฟ5, which is nonplanar. For any ๐‘› โ‰ฅ 2 and ๐‘œ โ‰ฅ 1, the Tower of Hanoi puzzle has at least 5 pegs. In any regular state, the smallest disc can move freely between any set of 5 pegs, so ๐ฟ5 is a subgraph of the corresponding Hanoi graph. Thus ๐ผ๐‘›

๐‘œ is non-planar for all ๐‘› โ‰ฅ 2 and ๐‘œ โ‰ฅ 1.

slide-33
SLIDE 33

Theorem 2, Part III

๐’, ๐’ 1 2 3 4 5 โ€ฆ Y Y Y Y Y โ€ฆ 1 Y Y 2 N N N N N โ€ฆ 3 N N N N N โ€ฆ 4 N N N N N โ€ฆ 5 N N N N N โ€ฆ โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฑ

slide-34
SLIDE 34

Theorem 2, Part IV

Lemma 2 Fix any ๐‘›, ๐‘œ โˆˆ โ„•, any ๐‘™ โˆˆ โ„• such that ๐‘™ < ๐‘œ. Fix any ๐‘š โˆˆ 0,1, โ€ฆ , 2 + ๐‘› . Let ๐‘‡ = ๐‘ฆ1, ๐‘ฆ2, โ€ฆ , ๐‘ฆ๐‘œ ๐‘ฆ๐‘™+1 = ๐‘ฆ๐‘™+2 = โ‹ฏ = ๐‘ฆ๐‘œ = ๐‘š . Then the subgraph of ๐ผ๐‘›

๐‘œ induced by ๐‘‡ is isomorphic to ๐ผ๐‘› ๐‘™ .

slide-35
SLIDE 35

Theorem 2, Part IV

By Lemma 2, ๐ผ1

3 is a subgraph of ๐ผ1 ๐‘œ for all ๐‘œ > 3.

So we need only show that ๐ผ1

3 is non-planar.

Kuratowskiโ€™s Theorem: If a graph ๐ป contains a subgraph that is a ๐ฟ5 or ๐ฟ3,3 subdivision, then ๐ป is non-planar. We can construct ๐ผ1

3 by taking 4 copies of ๐ผ1 2, one for each

position of the largest disc, and adding 24 edges corresponding to legal moves of the largest disc.

slide-36
SLIDE 36

Theorem 2, Part IV

๐ผ1

3

slide-37
SLIDE 37

Theorem 2, Part IV

๐ผ1

3

slide-38
SLIDE 38

Theorem 2, Part IV

๐ฟ5 subdivision subgraph of ๐ผ1

3:

Thus ๐ผ1

๐‘œ is non-planar for all ๐‘œ โ‰ฅ 3. โ– 

slide-39
SLIDE 39

Theorem 2, Part IV

๐’, ๐’ 1 2 3 4 5 โ€ฆ Y Y Y Y Y โ€ฆ 1 Y Y N N N โ€ฆ 2 N N N N N โ€ฆ 3 N N N N N โ€ฆ 4 N N N N N โ€ฆ 5 N N N N N โ€ฆ โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฎ โ‹ฑ

slide-40
SLIDE 40

Conclusion

Planarity:

The only planar Hanoi graphs are ๐ผ0

๐‘œ, ๐ผ1 1, and ๐ผ1 2.

Hamiltonicity:

Every Hanoi graph ๐ผ๐‘›

๐‘œ is hamiltonian.

slide-41
SLIDE 41

Some Open Problems

  • The Frame-Stewart Conjecture for more than 4 pegs.
  • The genera and crossing numbers for non-planar Hanoi

graphs.

  • A formula for the average distance in ๐ผ๐‘›

๐‘œ for ๐‘› โ‰ฅ 1.

  • The diameter of ๐ผ๐‘›

๐‘œ for ๐‘› โ‰ฅ 1.

slide-42
SLIDE 42

References

  • T. Bousch, La quatrieme tour de Hanoi, Bull. Belg. Math. Soc. Simon

Steven, 21 (2014): 895-912.

  • A. Hinz and D. Parisse, On the planarity of hanoi graphs, Expositions

Mathematicae, 20 (2002): 263-268.

  • A. Hinz, S. Klavzar, U. Milutinovic, and C. Petr, The Tower of Hanoi โ€“

Myths and Maths, Springer Basel, 2013.

  • S. Klavzar, U. Milutinovic, and C. Petr, Combinatorics of topmost discs
  • f multi-peg Tower of Hanoi problem, ARS Combin., 59 (2001): 55-64.

J.S. Rohl and T.D. Gedeon, The Reveโ€™s Puzzle, The Computer Journal, 29 (1986): 187-188 Douglas B. West, Introduction to Graph Theory, Prentice Hall, Second Edition, 2001.