On the Planarity of Hanoi Graphs

Similar documents
A THREE AND FIVE COLOR THEOREM

Planar graphs. Chapter 8

1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G))

Fundamental Properties of Graphs

CS 2336 Discrete Mathematics

An Introduction to Graph Theory

THE GROUP OF SYMMETRIES OF THE TOWER OF HANOI GRAPH

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS

Graph Theory Questions from Past Papers

INTRODUCTION TO GRAPH THEORY. 1. Definitions

Discrete mathematics

and Heinz-Jürgen Voss

Hamiltonian cycles in bipartite quadrangulations on the torus

Zero-Sum Flow Numbers of Triangular Grids

The Fibonacci hypercube

Bar k-visibility Graphs: Bounds on the Number of Edges, Chromatic Number, and Thickness

Tutte s Theorem: How to draw a graph

arxiv: v1 [math.co] 17 Jan 2014

Elements of Graph Theory

Planar Graph (7A) Young Won Lim 6/20/18

K 4,4 e Has No Finite Planar Cover

Adjacent: Two distinct vertices u, v are adjacent if there is an edge with ends u, v. In this case we let uv denote such an edge.

The following is a summary, hand-waving certain things which actually should be proven.

The Hoffman-Singleton Graph and its Automorphisms

Basics of Graph Theory

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

[8] that this cannot happen on the projective plane (cf. also [2]) and the results of Robertson, Seymour, and Thomas [5] on linkless embeddings of gra

Graph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011

Key Graph Theory Theorems

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Diskrete Mathematik und Optimierung

Every planar graph is 4-colourable and 5-choosable a joint proof

This is a preprint of an article accepted for publication in Discrete Mathematics c 2004 (copyright owner as specified in the journal).

The Four Color Theorem: A Possible New Approach

ECS 20 Lecture 17b = Discussion D8 Fall Nov 2013 Phil Rogaway

Infinite locally random graphs

Planar Graph (7A) Young Won Lim 5/21/18

Planar Graphs. 1 Graphs and maps. 1.1 Planarity and duality

On Universal Cycles of Labeled Graphs

Chapter 3: Paths and Cycles

Assignment 4 Solutions of graph problems

An Investigation of the Planarity Condition of Grötzsch s Theorem

CMSC Honors Discrete Mathematics

WUCT121. Discrete Mathematics. Graphs

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

MATH 350 GRAPH THEORY & COMBINATORICS. Contents

Basic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions

Introduction to Graph Theory

CLAW-FREE 3-CONNECTED P 11 -FREE GRAPHS ARE HAMILTONIAN

8 Colouring Planar Graphs

MAT 145: PROBLEM SET 4

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS

Construction of planar triangulations with minimum degree 5

Math 443/543 Graph Theory Notes 5: Planar graphs and coloring

Geometry. Every Simplicial Polytope with at Most d + 4 Vertices Is a Quotient of a Neighborly Polytope. U. H. Kortenkamp. 1.

CS6702 GRAPH THEORY AND APPLICATIONS QUESTION BANK

Hamilton paths & circuits. Gray codes. Hamilton Circuits. Planar Graphs. Hamilton circuits. 10 Nov 2015

Bar k-visibility Graphs

A Practical 4-coloring Method of Planar Graphs

v V Question: How many edges are there in a graph with 10 vertices each of degree 6?

Discrete mathematics

Genus Ranges of 4-Regular Rigid Vertex Graphs

Math Summer 2012

Subdivided graphs have linear Ramsey numbers

About the Author. Dependency Chart. Chapter 1: Logic and Sets 1. Chapter 2: Relations and Functions, Boolean Algebra, and Circuit Design

Vertex-magic Labeling of Regular Graphs: Disjoint Unions and Assemblages

List of Theorems. Mat 416, Introduction to Graph Theory. Theorem 1 The numbers R(p, q) exist and for p, q 2,

G.B. FAULKNER and D.H. YOUNGER

Coloring Squared Rectangles

Eulerian disjoint paths problem in grid graphs is NP-complete

Octonion multiplication and Heawood s map

Embeddability of Arrangements of Pseudocircles into the Sphere

Geometry. Bounds for Generalized Thrackles. G. Cairns and Y. Nikolayevsky. Introduction

Characterizations of graph classes by forbidden configurations

Some Upper Bounds for Signed Star Domination Number of Graphs. S. Akbari, A. Norouzi-Fard, A. Rezaei, R. Rotabi, S. Sabour.

Discrete mathematics , Fall Instructor: prof. János Pach

Introductory Combinatorics

Math 777 Graph Theory, Spring, 2006 Lecture Note 1 Planar graphs Week 1 Weak 2

Harmonious and achromatic colorings of fragmentable hypergraphs

Laurent Beaudou 1, Sylvain Gravier 1, Sandi Klavžar 2,3,4, Michel

Varying Applications (examples)

GRAPH THEORY AND COMBINATORICS ( Common to CSE and ISE ) UNIT 1

Discrete mathematics II. - Graphs

ASSIGNMENT 4 SOLUTIONS

14 More Graphs: Euler Tours and Hamilton Cycles

Part II. Graph Theory. Year

Perfect Matchings in Claw-free Cubic Graphs

Number Theory and Graph Theory

On vertex-coloring edge-weighting of graphs

Technische Universität München Zentrum Mathematik

Topic 10 Part 2 [474 marks]

Face two-colourable triangulations of K 13

1. The following graph is not Eulerian. Make it into an Eulerian graph by adding as few edges as possible.

Acyclic Edge Colorings of Graphs

The University of Sydney MATH2969/2069. Graph Theory Tutorial 2 (Week 9) 2008

IMO Training 2008: Graph Theory

Introduction III. Graphs. Motivations I. Introduction IV

2 hours THE UNIVERSITY OF MANCHESTER. 22 May :00 16:00

Chapter 2 Graphs. 2.1 Definition of Graphs

Sarah Will Math 490 December 2, 2009

Transcription:

EXPOSITIONES MATHEMATICAE Expo. Math. 20 (2002): 263-268 Urban & Fischer Verlag www.u rbanfischer.de/jou rnals/expomath Mathematical Note On the Planarity of Hanoi Graphs Andreas M. Hinz ] and Daniele Parisse 2 1 Zentrum Mathematik, Technische Universit~t Miinchen, 80290 Mtinchen, Germany, 2 EADS Deutschland GmbH, 81663 Mtinchen, Germany Abstract. Hanoi graphs are the state graphs for Tower of Hanoi problems with three or more pegs. We prove hamiltonicity and present a complete analysis of planarity of these graphs. 1 Hanoi graphs The Tower of Hanoi puzzle (cf., e.g., [5]) consists of n discs of different size distributed among 3 + m vertical pegs (m, n E No) in such a way that only the topmost disc on a peg can be moved to the top position on another peg with the additional restriction that no larger disc may be placed on a smaller one (divine rule). Starting from a perfect state, where all discs are on one and the same peg in natural order with the smallest on top, this means that any reachable state is regular and can be represented by a unique element s of V,~ := {0,..., 2 + m}~; here Sd is the peg where disc d, numbered according to size, is lying. With this set as the vertex set, the Hanoi graph H~ is defined if an edge is a pair of vertices obtained from each other by a legal move of a single disc. See Figure 1 for the example of H0 3 (with the vertex s labeled as sls2ss). A lot is known for the graphs H~'. They first appeared in [12], where the proof of (2-)connectedness and planarity is sketched. They were named Hanoi graphs by Lu [8], who showed that they are hamiltonian. (Hanoi graphs with n > 1 cannot be eulerian, since there are always vertices whose degrees are odd; cf. [13, Theorem 6B].) For more detailed discussions of properties of H~', see [10, 9]. E-mail addresses: 1 hinz@appl-math.tu-muenchen.de, 2 Daniele.Parisse@m.eads.net 0732-0869/02/20/3-263 $15.00/0

264 A.M. Hinz and D. Parisse 000 211 201 001 002 102 122 Fig. 1 Hanoi graph H 3 Obviously, Hanoi graphs have been employed to visualize and analyze tasks in the Tower of Hanoi puzzle, the classical one being to find a shortest path from one perfect state to another. For m = 0, the length of this path, 2" - 1, is also the diameter of H~. But while H~, is still simple and (2 + m)-connected for m >_ 1, its diameter, apart from some trivial cases, is not known, and it is even not clear, if it is assumed by the distance of two distinct perfect states! Among the many nice results about the graphs H~', let us mention their isomorphy to Sierpifiski triangles and (finite cuts of) Pascal's arithmetical triangle (cf. [4, 10]). This has been used to determine the average distance of two points on the Sierpifiski gasket (cf. [6]) by starting from the corresponding value on H~', namely 885 3+~5-9+ X/~ 5 3 /'1"~ n /'12 18 V/~,5- - 1003 (cf. [3, Proposition 7]), rescaling, i.e. dividing by the diameter 2 ~- 1, and letting n tend to infinity. Another interesting result is that the graphs H~' support perfect error-correcting codes (cf. [2]). As mentioned before, very little is known about the general case of H,~. Let us start by proving hamiltonicity. Theorem 1. Every Hanoi graph is hamiltonian, Proof. o) For n = 0, this is trivial.

On the Planarity of Hanoi Graphs 265 i) By induction on n N we show that there is a hamiltonian path starting and ending in distinct perfect states. This is trivial for n = 1. Now let disc n + 1 move stepwise from peg 0 to 1 and so on to 2 + m, say. Before each such step, a hamiltonian path in H~ can be performed to transfer the tower consisting of the n smaller discs to a peg allowing disc n + 1 to move. Finally, after the last move of disc n+ 1, the n-tower has to be transferred to peg 2 + m, again on a hamiltonian path through H,~. ii) A hamiltonian circuit on H~ +1, n E No, can now be constructed by starting in state (1,...,1,0) V~ +1, say, and transferring the tower of n smaller discs on hamiltonian paths according to (i) in a cyclic fashion from peg to peg, each complete transfer being followed by a single move of disc n + 1 to the next peg in the same direction. [] Obviously, the number of vertices in H~ is IV,~I = (3 + m) n and, less obviously, the number of edges is levi = (3 + m)(24 + m) (\(3 + m) ~ - (1 + m) ~) (cf. [7, Corollary 3.3], where this result has been used to obtain some combinatorial identities). A notorious open question is to find the minimum number of moves in the classical Tower of Hanoi problem, i.e. perfect to perfect, for more than three pegs. For instance, in the case m = 1, this has been resolved so far only for n < 17 by an exhaustive inspection of the corresponding graphs with the aid of a computer (cf. [1]). It would therefore be desirable to have more, both qualitative and quantitative, information on Hanoi graphs. From some graphical representations by A. Rukhin [11], we were inspired to settle the question of planarity. 2 Planarity The main result of this note is the following. Theorem 2. The only planar Hanoi graphs are H m, H~, Hll and H 2 (m, n No). Proof. The case of//o is trivial. Planarity of H~ is shown by proving the following statement by induction on n C N: Hg can be represented by a plane graph, the infinite face (cf. [13, p. 65]) of which is the complement of an equilateral triangle (of side length 2" - 1, say) whose corners are the perfect states. This is obvious for n = 1. Assume that the statement has been proved for n > 1. Now take three copies of these plane graphs isomorphic to Hg, one for each different position of disc n + 1. Then they can be arranged and joined by three new edges in the plane in an appropriate way to form the desired plane graph which is isomorphic to H~ +1. The example in Figure 1 shows how to get from n = 1 to n = 2 and from n = 2 ton=3.

266 A.M. Hinz and D. Parisse H i is isomorphic to the complete graph/(4 and therefore planar. The proof of planarity of H~ is by constructing the plane representation in Figure 2. 01 1 32 O0 I 0 23 w 02 03 Fig. 2 Hanoi graph H~ We now show that//13 is not planar. This will complete the proof, since all HI' with n > 3 contain (an isomorphic copy of) //13 as a subgraph and every H~ with m > 1 and n > 0 contains some H 1 as a subgraph (in any regular state, the smallest disc can choose among at least five pegs), which is isomorphic to the non-planar K~ (cf. [13, Theorem 12A]). By Kuratowski's Theorem (cf. [13, Theorem 128]), we can use the same kind of argument to prove non-planarity of//13 by devising a subgraph which is homeomorphic to/(5 or K3,3. However, we want to present two alternative and more elegant arguments. Assume that we have a plane representation of/-/13, consisting of four copies of H~ (one for each position of disc 3) which are interconnected by altogether 24 extra edges, as can be seen by a combinatorial analysis or by recourse to the above formula for the numbers of edges ]E~[ -- 36 and [E~[ --- 168. The faces of H 2 cannot have more than four vertices each, as can be seen by isomorphy to the graph depicted in Figure 2. In particular, the infinite face has either three or four vertices. In the former case, these three vertices have at least degree 3 in H~ and since there are 12 edges going out from /-/12 (moves of disc 3), at least one of the vertices gets another 4 degrees. However, all vertices in H~ have degrees strictly less than 7. (In any state of the Tower of Hanoi with four pegs, disc 1 can move to exactly three different goals, disc 2 to at most two, whereas disc 3 can move to

On the Planarity of Hanoi Graphs 267 two different goals only if disc 2 can not move at all.) Similarly, if the infinite face of one of the copies of/-/12 has four vertices, then another look at Figure 2 reveals that they all have degree 5 in H i and at least one of them has to get at least three more edges incident to it, again leading to a degree of more than 6. Another alternative for the disproof of planarity of H i can be based on Euler's formula for plane graphs. By inspection of Figure 2 one realizes that each face of/-/12 has either two or three (adjacent) vertices (if at all) allowing the largest disc to move. By dismissing the other vertices, we arrive at a subgraph of H~ consisting of l E {0, 1, 2, 3, 4} copies of/(2 and 4 - l copies of/(3 which are interconnected by 24 edges. That is, for this graph, the number of vertices is v = 21 + 3(4 - l) = 12 - l, and the number of edges is e=1+3(4-i)+24=36-2l. But then3v-6=30-31<36-21=e, such that this graph, and consequently H~, cannot be planar by [13, Corollary 13D]. [] For those Hanoi graphs which are not planar, an interesting problem is to find out their genera (cf. [13, p. 70]). It took almost 80 years from the conjecture of Heawood (1890) to the proof of Ringel and Youngs (1968) to settle the question for complete graphs, i.e. for Hanoi graphs with n = 1, with the result that 1)] g (H~) -- 12 (cf. [13, Theorem 14D]). The question for other non-planar Hanoi graphs is open. Acknowledgement. We thank Christian Clason (TU Miinchen) and Wolfgang Sobetzki (EADS Mi_inchen) for technical support. References [1] Bode, J.-P., Hinz, A. M., Results and open problems on the Tower of Hanoi, Congr. Numer. 139(1999), 113-122. [2] Cull, P., Nelson, I., Error-correcting codes on the towers of Hanoi graphs, Discrete Math. 208/209(1999), 157-175. [3] Hinz, A. M., The Tower of Hanoi, Enseign. Math. (2) 35(1989), 289-321. [4] Hinz, A. M., Pascal's Triangle and the Tower of Hanoi, Amer. Math. Monthly 99(1992), 538-544. [5] Hinz, A. M., The Tower of Hanoi, in: K. P. Shum, E. J. Taft and Z. X. Wan (Eds.), Algebras and Combinatorics, Springer, Singapore, 1999; 277-289.

268 A.M. Hinz and D. Parisse [6] Hinz, A. M., Schief, A., The average distance on the Sierpifiski gasket, Probab. Theory Related Fields 87(1990), 129-138. [7] Klav~ar, S., Milutinovid, U., Petr, C., Combinatorics of topmost discs of multi-peg Tower of Hanoi problem, Ars Combin. 59(2001), 55-64. [8] Lu, X., Towers of Hanoi Graphs, Int. J. Comput. Math. 19(1986), 23-38. [9] Nurlybaev, A. N., K zm:lache Lyuka o bashnyakh iee obobshchenii, Izv. Nats. Akad. Nauk Respub. Kazakhstan Ser. Fiz.-Mat. (1995)1(182), 24-30. [10] Poole, D. G., The Towers and Triangles of Professor Claus (or, Pascal Knows Hanoi), Math. Mag. 67(1994), 323-344. [11] Rukhin, A., private communication (2000). [12] Scorer, R. S., Grundy, P. M., Smith, C. A. B., Some binary games, Math. Gaz. 28(1944), 96-103. [13] Wilson, R. J., Introduction to Graph Theory, Third Edition, Longman, Harlow, 1985. Received: 18.02.2002