fbpx
Wikipedia

Hanoi graph

In graph theory and recreational mathematics, the Hanoi graphs are undirected graphs whose vertices represent the possible states of the Tower of Hanoi puzzle, and whose edges represent allowable moves between pairs of states.

The Hanoi graph

Construction edit

 
The Hanoi graph   (black discs) derived from the odd values in Pascal's triangle

The puzzle consists of a set of disks of different sizes, placed in increasing order of size on a fixed set of towers. The Hanoi graph for a puzzle with   disks on   towers is denoted  .[1][2] Each state of the puzzle is determined by the choice of one tower for each disk, so the graph has   vertices.[2]

In the moves of the puzzle, the smallest disk on one tower is moved either to an unoccupied tower or to a tower whose smallest disk is larger. If there are   unoccupied towers, the number of allowable moves is

 

which ranges from a maximum of   (when   is zero or one and   is zero) to   (when all disks are on one tower and   is  ). Therefore, the degrees of the vertices in the Hanoi graph range from a maximum of   to a minimum of  . The total number of edges is[3]

 

For   (no disks) there is only one state of the puzzle and one vertex of the graph. For  , the Hanoi graph   can be decomposed into   copies of the smaller Hanoi graph  , one for each placement of the largest disk. These copies are connected to each other only at states where the largest disk is free to move: it is the only disk in its tower, and some other tower is unoccupied.[4]

General properties edit

 
  with 12 edges deleted to yield a Hamiltonian cycle

Every Hanoi graph contains a Hamiltonian cycle.[5]

The Hanoi graph   is a complete graph on   vertices. Because they contain complete graphs, all larger Hanoi graphs   require at least   colors in any graph coloring. They may be colored with exactly   colors by summing the indexes of the towers containing each disk, and using the sum modulo   as the color.[3]

Three towers edit

A particular case of the Hanoi graphs that has been well studied since the work of Scorer, Grundy & Smith (1944)[1][6] is the case of the three-tower Hanoi graphs,  . These graphs have 3n vertices (OEISA000244) and 3(3n − 1)/2 edges (OEISA029858).[7] They are penny graphs (the contact graphs of non-overlapping unit disks in the plane), with an arrangement of disks that resembles the Sierpinski triangle. One way of constructing this arrangement is to arrange the numbers of Pascal's triangle on the points of a hexagonal lattice, with unit spacing, and place a unit disk on each point whose number is odd. The diameter of these graphs, and the length of the solution to the standard form of the Tower of Hanoi puzzle (in which the disks all start on one tower and must all move to one other tower) is  .[2]

More than three towers edit

Unsolved problem in mathematics:

What is the diameter of the graphs   for  ?

For  , the structure of the Hanoi graphs is not as well understood, and the diameter of these graphs is unknown.[2] When   and   or when   and  , these graphs are nonplanar.[5]

See also edit

References edit

  1. ^ a b Hinz, Andreas M.; Klavžar, Sandi; Petr, Ciril (2018), "2.3 Hanoi Graphs", The tower of Hanoi—myths and maths (2nd ed.), Cham: Birkhäuser, p. 120, doi:10.1007/978-3-319-73779-9, ISBN 978-3-319-73778-2, MR 3791459
  2. ^ a b c d Imrich, Wilfried; Klavžar, Sandi; Rall, Douglas F. (2008), "2.2 Hanoi Graphs", Topics in Graph Theory: Graphs and their Cartesian Product, Wellesley, MA: A K Peters, pp. 13–15, ISBN 978-1-56881-429-2, MR 2468851
  3. ^ a b Arett, Danielle; Dorée, Suzanne (2010), "Coloring and counting on the Tower of Hanoi graphs", Mathematics Magazine, 83 (3): 200–209, doi:10.4169/002557010X494841, MR 2668333, S2CID 120868360
  4. ^ Stewart, Ian (2003), "Chapter 1: The Lion, the Llama, and the Lettuce", Another Fine Math You've Got Me Into, Mineola, NY: Dover Publications, ISBN 0-486-43181-9, MR 2046372
  5. ^ a b Hinz, Andreas M.; Parisse, Daniele (2002), "On the planarity of Hanoi graphs", Expositiones Mathematicae, 20 (3): 263–268, doi:10.1016/S0723-0869(02)80023-8, MR 1924112
  6. ^ Scorer, R. S.; Grundy, P. M.; Smith, C. A. B. (July 1944), "Some binary games", The Mathematical Gazette, 28 (280): 96, doi:10.2307/3606393, JSTOR 3606393, S2CID 125099183
  7. ^ "Hanoi Graph".

hanoi, graph, graph, theory, recreational, mathematics, undirected, graphs, whose, vertices, represent, possible, states, tower, hanoi, puzzle, whose, edges, represent, allowable, moves, between, pairs, states, displaystyle, contents, construction, general, pr. In graph theory and recreational mathematics the Hanoi graphs are undirected graphs whose vertices represent the possible states of the Tower of Hanoi puzzle and whose edges represent allowable moves between pairs of states The Hanoi graph H 3 7 displaystyle H 3 7 Contents 1 Construction 2 General properties 3 Three towers 4 More than three towers 5 See also 6 ReferencesConstruction edit nbsp The Hanoi graph H 3 5 displaystyle H 3 5 nbsp black discs derived from the odd values in Pascal s triangleThe puzzle consists of a set of disks of different sizes placed in increasing order of size on a fixed set of towers The Hanoi graph for a puzzle with n displaystyle n nbsp disks on k displaystyle k nbsp towers is denoted H k n displaystyle H k n nbsp 1 2 Each state of the puzzle is determined by the choice of one tower for each disk so the graph has k n displaystyle k n nbsp vertices 2 In the moves of the puzzle the smallest disk on one tower is moved either to an unoccupied tower or to a tower whose smallest disk is larger If there are u displaystyle u nbsp unoccupied towers the number of allowable moves is k 2 u 2 displaystyle binom k 2 binom u 2 nbsp which ranges from a maximum of k 2 displaystyle tbinom k 2 nbsp when u displaystyle u nbsp is zero or one and u 2 displaystyle tbinom u 2 nbsp is zero to k 1 displaystyle k 1 nbsp when all disks are on one tower and u displaystyle u nbsp is k 1 displaystyle k 1 nbsp Therefore the degrees of the vertices in the Hanoi graph range from a maximum of k 2 displaystyle tbinom k 2 nbsp to a minimum of k 1 displaystyle k 1 nbsp The total number of edges is 3 1 2 k 2 k n k 2 n displaystyle frac 1 2 binom k 2 bigl k n k 2 n bigr nbsp For k 0 displaystyle k 0 nbsp no disks there is only one state of the puzzle and one vertex of the graph For k gt 0 displaystyle k gt 0 nbsp the Hanoi graph H k n displaystyle H k n nbsp can be decomposed into k displaystyle k nbsp copies of the smaller Hanoi graph H k n 1 displaystyle H k n 1 nbsp one for each placement of the largest disk These copies are connected to each other only at states where the largest disk is free to move it is the only disk in its tower and some other tower is unoccupied 4 General properties edit nbsp H 3 3 displaystyle H 3 3 nbsp with 12 edges deleted to yield a Hamiltonian cycleEvery Hanoi graph contains a Hamiltonian cycle 5 The Hanoi graph H k 1 displaystyle H k 1 nbsp is a complete graph on k displaystyle k nbsp vertices Because they contain complete graphs all larger Hanoi graphs H k n displaystyle H k n nbsp require at least k displaystyle k nbsp colors in any graph coloring They may be colored with exactly k displaystyle k nbsp colors by summing the indexes of the towers containing each disk and using the sum modulo k displaystyle k nbsp as the color 3 Three towers editA particular case of the Hanoi graphs that has been well studied since the work of Scorer Grundy amp Smith 1944 1 6 is the case of the three tower Hanoi graphs H 3 n displaystyle H 3 n nbsp These graphs have 3n vertices OEIS A000244 and 3 3n 1 2 edges OEIS A029858 7 They are penny graphs the contact graphs of non overlapping unit disks in the plane with an arrangement of disks that resembles the Sierpinski triangle One way of constructing this arrangement is to arrange the numbers of Pascal s triangle on the points of a hexagonal lattice with unit spacing and place a unit disk on each point whose number is odd The diameter of these graphs and the length of the solution to the standard form of the Tower of Hanoi puzzle in which the disks all start on one tower and must all move to one other tower is 2 n 1 displaystyle 2 n 1 nbsp 2 More than three towers editUnsolved problem in mathematics What is the diameter of the graphs H k n displaystyle H k n nbsp for k gt 3 displaystyle k gt 3 nbsp more unsolved problems in mathematics For k gt 3 displaystyle k gt 3 nbsp the structure of the Hanoi graphs is not as well understood and the diameter of these graphs is unknown 2 When k gt 4 displaystyle k gt 4 nbsp and n gt 0 displaystyle n gt 0 nbsp or when k 4 displaystyle k 4 nbsp and n gt 2 displaystyle n gt 2 nbsp these graphs are nonplanar 5 See also editSierpinski triangleReferences edit a b Hinz Andreas M Klavzar Sandi Petr Ciril 2018 2 3 Hanoi Graphs The tower of Hanoi myths and maths 2nd ed Cham Birkhauser p 120 doi 10 1007 978 3 319 73779 9 ISBN 978 3 319 73778 2 MR 3791459 a b c d Imrich Wilfried Klavzar Sandi Rall Douglas F 2008 2 2 Hanoi Graphs Topics in Graph Theory Graphs and their Cartesian Product Wellesley MA A K Peters pp 13 15 ISBN 978 1 56881 429 2 MR 2468851 a b Arett Danielle Doree Suzanne 2010 Coloring and counting on the Tower of Hanoi graphs Mathematics Magazine 83 3 200 209 doi 10 4169 002557010X494841 MR 2668333 S2CID 120868360 Stewart Ian 2003 Chapter 1 The Lion the Llama and the Lettuce Another Fine Math You ve Got Me Into Mineola NY Dover Publications ISBN 0 486 43181 9 MR 2046372 a b Hinz Andreas M Parisse Daniele 2002 On the planarity of Hanoi graphs Expositiones Mathematicae 20 3 263 268 doi 10 1016 S0723 0869 02 80023 8 MR 1924112 Scorer R S Grundy P M Smith C A B July 1944 Some binary games The Mathematical Gazette 28 280 96 doi 10 2307 3606393 JSTOR 3606393 S2CID 125099183 Hanoi Graph Retrieved from https en wikipedia org w index php title Hanoi graph amp oldid 1158145557, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.