Tower of Hanoi
The Tower of Hanoi puzzle consists of discs, no two of the same size, stacked on vertical pegs, in such a way that no disc lies on top of a smaller disc. A permissible is to take the top disc from one of the pegs and move it to one of the other pegs, as long as it is not placed on top of a smaller disc. Initially, they are all stacked on the first peg. The goal is to end up with them all stacked on the last peg.
Parameters
- : number of discs
- : number of pegs
Related Problems
Filters
Computational Model
Randomization
Approximation
Algorithms Table
Displaying 5 of 5 algorithms
| See more | ||||
|---|---|---|---|---|
| Hanoi graph | 2008 | |||
| Iteration based | 1883 | |||
| Recursion based | 1883 | |||
| Non-recursion based | 1883 | |||
| Gray-code based | 1883 |
Reductions Table
Insuffient Data to display table
Other relevant algorithms
Insuffient Data to display table