On The Optimal General Solution To The Multi-Peg Tower of Hanoi
Abhiram Menon

TL;DR
This paper derives a closed-form solution for the Frame-Stewart algorithm in the multi-peg Tower of Hanoi, proving its optimality for many cases and advancing understanding of the problem's complexity.
Contribution
It introduces a unified closed-form expression for the minimal moves in multi-peg Tower of Hanoi and proves its optimality for a broad range of cases.
Findings
Derived a closed-form expression for M(p,n).
Proved optimality of the Frame-Stewart algorithm for specific regimes.
Established optimality for infinitely many (p,n) pairs, settling parts of the conjecture.
Abstract
We derive a unified closed-form expression for the Frame-Stewart algorithm in the multi-peg Tower of Hanoi: M(p,n) = 2^(i(p,n)+1)*n - sum_{k=0}^{i(p,n)} 2^k * C(p+k-2, k), where i(p,n) = min{ j >= 0 : n <= C(p-1+j, j+1) }. and prove it satisfies the Frame-Stewart recurrence for all (p,n) via double induction using discrete slope analysis with simplex boundaries. It shows that M(p,n) grows linearly within each regime, with slopes doubling at successive boundaries. We also prove Frame-Stewart optimality for the first two regimes indexed by i: for p-1 < n <= C(p,2), M(p,n) = 4n - 2p + 1; for C(p,2) < n <= C(p+1,3), M(p,n) = 8n - 2p^2 + 1. These results give optimality proofs for infinitely many (p,n) pairs beyond trivial cases, settling the conjecture up to n <= C(p+1,3).
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsStructural Analysis and Optimization · Soil, Finite Element Methods · Vibration and Dynamic Analysis
