Recursion and Optimality in the Tower of Hanoi with Three to Five Pegs
This paper compares recursive solution methods for the Tower of Hanoi with three, four, and five pegs, with particular attention to the difference between constructing a short solution and proving global optimality. The classical three-peg recurrence provides both an algorithm and a matching lower bound, so its exact move count follows directly. For four pegs, the Frame-Stewart strategy introduces a partition choice that is evaluated by dynamic programming. Bousch's 2014 result is reviewed at the level needed to explain why the resulting move count is globally optimal: the recursive construction supplies an upper bound, while a potential function on legal configurations supplies the matching lower bound. The same recurrence gives efficient five-peg solutions, but no corresponding lower-bound proof is known for all disk counts. Computations for up to 30 disks show the large reduction in move counts obtained from additional pegs. The results also show why numerical agreement and partition optimization cannot replace a proof over all legal move sequences.
Authors
- Yile Dai
Institutions
- University of Bristol (GB)
Publication Details
- Journal
- Advances in Economics Management and Political Sciences
- Published
- 2026-12-01
- DOI
- https://doi.org/10.54254/2754-1169/2026.ab39646
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- article
- Field-Weighted Citation Impact
- 0.00