multi-peg towers of hanoi by krüz kalke summer 2014 1
TRANSCRIPT
![Page 1: Multi-Peg Towers of Hanoi By Krüz Kalke Summer 2014 1](https://reader035.vdocuments.us/reader035/viewer/2022072008/56649d765503460f94a5749e/html5/thumbnails/1.jpg)
1
Multi-Peg Towers of Hanoi
By Krüz KalkeSummer 2014
![Page 2: Multi-Peg Towers of Hanoi By Krüz Kalke Summer 2014 1](https://reader035.vdocuments.us/reader035/viewer/2022072008/56649d765503460f94a5749e/html5/thumbnails/2.jpg)
2
Overview
•Three-Peg Puzzle•Four-Peg Puzzle
▫Example•Multi-Peg Puzzle
▫Example•My Current Research
![Page 3: Multi-Peg Towers of Hanoi By Krüz Kalke Summer 2014 1](https://reader035.vdocuments.us/reader035/viewer/2022072008/56649d765503460f94a5749e/html5/thumbnails/3.jpg)
3
Three-Peg Puzzle
•The goal is to move the stack of disks from the starting peg to the destination peg
•Rules:▫Only one disk can be moved at a time▫Only the topmost disk on a stack may be
moved▫Larger disks cannot be placed on smaller
disks
![Page 4: Multi-Peg Towers of Hanoi By Krüz Kalke Summer 2014 1](https://reader035.vdocuments.us/reader035/viewer/2022072008/56649d765503460f94a5749e/html5/thumbnails/4.jpg)
4
Four-Peg Puzzle
•With more pegs, less moves are required•The Frame-Stewart algorithm is the
presumed optimal solution:▫Move k upper disks to temporary peg using
four pegs▫Move bottom disks to destination peg using
remaining three pegs▫Move previous k disks to destination using four
pegs
![Page 5: Multi-Peg Towers of Hanoi By Krüz Kalke Summer 2014 1](https://reader035.vdocuments.us/reader035/viewer/2022072008/56649d765503460f94a5749e/html5/thumbnails/5.jpg)
5
Four-Peg Puzzle Example
![Page 6: Multi-Peg Towers of Hanoi By Krüz Kalke Summer 2014 1](https://reader035.vdocuments.us/reader035/viewer/2022072008/56649d765503460f94a5749e/html5/thumbnails/6.jpg)
6
Multi-Peg Puzzle
•The previous algorithm works for any number of pegs
•Each splitting of the stack reduces the number of available pegs by one
•An open problem is how to decide the optimal k-values at each step
![Page 7: Multi-Peg Towers of Hanoi By Krüz Kalke Summer 2014 1](https://reader035.vdocuments.us/reader035/viewer/2022072008/56649d765503460f94a5749e/html5/thumbnails/7.jpg)
7
Multi-Peg Puzzle Example
![Page 8: Multi-Peg Towers of Hanoi By Krüz Kalke Summer 2014 1](https://reader035.vdocuments.us/reader035/viewer/2022072008/56649d765503460f94a5749e/html5/thumbnails/8.jpg)
8
My Current Research
•Analyze algorithm used in Robert Swartz’s Towers of Hanoi applet
•Verify correctness of his approach•Analyze pattern of optimal k-values given
by Swartz’s algorithm•Attempt to find a closed-form solution that
generates k-values given any number of disks and pegs
![Page 9: Multi-Peg Towers of Hanoi By Krüz Kalke Summer 2014 1](https://reader035.vdocuments.us/reader035/viewer/2022072008/56649d765503460f94a5749e/html5/thumbnails/9.jpg)
9
Acknowledgments
•Multipeg Towers of Hanoi Applet by Robert J. Swartz [2014] – www.mathapplets.net
•“On the Frame-Stewart Algorithm for the Tower of Hanoi” by Michael Rand [2009] – www2.bc.edu/~grigsbyj/Rand_Final.pdf