As stated by title, I want to know if there's any formal proof for solution with minimum steps to solve Towers of Hanoi being unique or non-unique.
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
As stated by title, I want to know if there's any formal proof for solution with minimum steps to solve Towers of Hanoi being unique or non-unique.
Name |
---|
Using the fact that for n=1 there's a unique configuration with 1 move, you can prove your claim by induction. At step n, move in its unique way the $$$(n-1)$$$ pile from left to mid then using 1 move take the biggest disk from left to right then uniquely move the $$$(n-1)$$$ pile from mid to right. I guess this will work
I feel like the inductive step is not correct — it should start with "Assume we have a unique way to move a tower of size n-1 from one pole to another," but then also you have to show that the strategy of 1) move n-1 A->B 2) move bottom A->C 3) move n-1 B->C is the only way to get optimal number of moves. Once you do that, then what you said will show that steps 1, 2 and 3 form a unique solution, but maybe not immediately clear that you have to solve it exactly like that
You can formalize my argument as much as you want I didn’t even try to make it formal I was just giving an intuitive idea for someone who wants to write it formally. However, the strategy of the recursive algorithm is the only strategy to get an answer not just the optimal one (unless for the case n=1) and so uniqueness of each step implies uniqueness of the whole procedure by product rule.
If you draw the graph of transistion under Sierpiński triangle shape then according to wikipedia, you can have these graphs:
Yet you can build the graph recursively to enlarge it, meanwhile the graph only have 3 bridges that you can pass through. But since the minimal steps from this peg is full to fullfill the other is a straight path of size $$$2^n - 1$$$, then you only have $$$2$$$ unique paths to do that.
Since for the tower of Hanoi puzzle. Both peg $$$2$$$ and $$$3$$$ are initialy empty hence it is symmetrical. Therefore you can also claim that there is only one unique way to do.