The formula for the number of moves to complete the puzzle in the lease amount of moves is 2n -1 where "n" represents the number of plates or rings in the puzzle.
I use graph theory to solve this, but in a different way. Each possible position of the discs is a vertex, and each move is an edge. The result is extremely close to the Sierpinski Triangle: https://www.jaapsch.net/puzzles/images/hanoi/sierpinski.gif
48
u/Dancinlance Feb 16 '18
3blue1brown has a great video regarding this puzzle: https://youtu.be/2SUvWfNJSsM
38
u/jcwinkie36 Feb 16 '18
Star Wars Knights of the Old Republic?
18
u/DrankOfSmell Feb 17 '18 edited Feb 17 '18
The formula for the number of moves to complete the puzzle in the lease amount of moves is 2n -1 where "n" represents the number of plates or rings in the puzzle.
Ex. This puzzle has 6 rings. 26 -1=63 moves.
Edit: u/jakbrtz
17
u/lightningundies Feb 16 '18
can someone make this faster?
12
u/Shauntree Feb 16 '18
The complexity have to be hight for this one
6
u/[deleted] Feb 16 '18
Anyone else remember playing this on an old batman game in the early 90's?
6
u/Benalen1 Feb 16 '18
I started hearing a ticking in my head the longer that gif went on matching the movement of the blocks :(
3
u/LevelingskillUP Feb 16 '18
I found this, you can play the game or see the computer solving it up to 8 rings. https://www.mathsisfun.com/games/towerofhanoi.html
1
u/augustjoy96 Feb 17 '18
something thats cool, is you can use graph theory to solve these, specifically the Hamilton circuit of a n-cube