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.
Explanations
L1 human
To move a tower of discs, first move the top discs out of the way. Then move the largest disc, and then move the discs back on top. Each new disc doubles the work and adds one move.
What this node 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 node is. They do not measure its truth.
Sources
- Web https://en.wikipedia.org/wiki/Tower_of_Hanoi, Recursive solution
What links here
No node links to this node yet.