General and overarching topics Example
Tower of Hanoi
Example
The Tower of Hanoi is a puzzle with three rods and discs of different sizes. At the start, all discs are on one rod, in order of size, with the largest at the bottom. A move takes the top disc of one rod and puts it on top of another rod. No move may put a disc on a smaller disc. The aim is to move all discs to another rod.
Let be the minimum number of moves for discs. Then and for . This recurrence relation has the solution .
Remarks
The recurrence comes from the largest disc. Before it moves, the other discs must be on the third rod. After it moves, they must come back on top of it. Values: , , and . The French mathematician Édouard Lucas invented the puzzle and presented it in 1883.
Further reading
- Web https://en.wikipedia.org/wiki/Tower_of_Hanoi, Recursive solution
About this page
| Tag | 0906Z03EMN |
|---|---|
| URI | m2://0906Z03EMN |
| Kind | example |
| Writing | W2 usable |
| MSC | 00A08 |
| Instance of | Recurrence relation |
| Same as |
Markdown · JSON · Edit on GitHub
What this page needs for W3
- a person confirmed each agent-written section: rule P04 (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.