ArticleslgStudy

science

Hanoi graph

Hanoi graph is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Hanoi graph rather than just read about it. In short: 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. Construction The puzzle consists of a set of disks of different sizes, placed in increasing order of size on a fixed set of towers.

Hanoi graph — main illustration
Hanoi graph — illustration

Key takeaways

  • Hanoi graph belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Hanoi graph to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Hanoi graph from memory before moving on to harder problems.

Reference excerpt

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.

Construction

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 n {\displaystyle n} disks on k {\displaystyle k} towers is denoted H k n {\displaystyle H_{k}^{n}} . 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}} vertices. 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} unoccupied towers, the number of allowable moves is

( k 2 ) − ( u 2 ) , {\displaystyle {\binom {k}{2}}-{\binom {u}{2}},}

which ranges from a maximum of ( k 2 ) {\displaystyle {\tbinom {k}{2}}}

(when u {\displaystyle u} is zero or one and ( u 2 ) {\displaystyle {\tbinom {u}{2}}} is zero) to k − 1 {\displaystyle k-1} (when all disks are on one tower and u {\displaystyle u} is k − 1 {\displaystyle k-1} ). Therefore, the degrees of the vertices in the Hanoi graph range from a maximum of ( k 2 ) {\displaystyle {\tbinom {k}{2}}} to a minimum of k − 1 {\displaystyle k-1} . The total number of edges is

1 2 ( k 2 ) ( k n − ( k − 2 ) n ) . {\displaystyle {\frac {1}{2}}{\binom {k}{2}}{\bigl (}k^{n}-(k-2)^{n}{\bigr )}.}

For k = 0 {\displaystyle k=0} (no disks) there is only one state of the puzzle and one vertex of the graph. For k > 0 {\displaystyle k>0} , the Hanoi graph H k n {\displaystyle H_{k}^{n}} can be decomposed into k {\displaystyle k} copies of the smaller Hanoi graph H k n − 1 {\displaystyle H_{k}^{n-1}} , 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.

General properties

Every Hanoi graph contains a Hamiltonian cycle. The Hanoi graph H k 1 {\displaystyle H_{k}^{1}} is a complete graph on k {\displaystyle k} vertices. Because they contain complete graphs, all larger Hanoi graphs H k n {\displaystyle H_{k}^{n}} require at least k {\displaystyle k} colors in any graph coloring. They may be colored with exactly k {\displaystyle k} colors by summing the indexes of the towers containing each disk, and using the sum modulo k {\displaystyle k} as the color.

… excerpt ends here. Continue reading the full article.

Illustrations

Hanoi graph: The Hanoi graph 
  
    
      
        
          H
          
            3
          
          
            7
          
        
      
    
    {\displaystyle H_{3}^{7}}
The Hanoi graph H 3 7 {\displaystyle H_{3}^{7}}
Hanoi graph: The Hanoi graph 
  
    
      
        
          H
          
            3
          
          
            5
          
        
      
    
    {\displaystyle H_{3}^{5}}
  
 (black discs) derived from the odd values in Pascal's triangle
The Hanoi graph H 3 5 {\displaystyle H_{3}^{5}} (black discs) derived from the odd values in Pascal's triangle
Hanoi graph: H
          
            3
          
          
            3
          
        
      
    
    {\displaystyle H_{3}^{3}}
  
 with 12 edges deleted to yield a Hamiltonian cycle
H 3 3 {\displaystyle H_{3}^{3}} with 12 edges deleted to yield a Hamiltonian cycle

Worked examples

Example 1 — a first encounter with Hanoi graph

Start with the simplest possible case. Write down what Hanoi graph claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Hanoi graph before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Hanoi graph ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Hanoi graph

In research
Hanoi graph appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Hanoi graph in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Hanoi graph is common in secondary-school and first-year university syllabi. It links to neighbouring topics Parametric families of graphs, Planar graphs, so understanding it makes those chapters shorter.
In everyday life
Look for Hanoi graph outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Hanoi graph in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Hanoi graph means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Hanoi graph out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Hanoi graph in simple terms?

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. Construction The puzzle consists of a set of disks of different sizes, p…

Why does Hanoi graph matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Hanoi graph?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Hanoi graph.

Tags

  • Parametric families of graphs
  • Planar graphs

Keep exploring