The ultimate tower of Hanoi algorithm

Mathologer March 6, 2021
Video Thumbnail
Mathologer Logo

Mathologer

@mathologer

About

Enter the world of the Mathologer for really accessible explanations of hard and beautiful math(s). In real life the Mathologer is a math(s) professor at Monash University in Melbourne, Australia and goes by the name of Burkard Polster. These days Marty Ross another math(s) professor, great friend and collaborator for over 20 years also plays a huge role behind the scenes, honing the math(s) and the video scripts with Burkard. And there are Tristan Tillij and Eddie Price who complete the Mathologer team, tirelessly proofreading and critiquing the scripts and providing lots of original ideas. If you like Mathologer, also check out years worth of free original maths resources on Burkard and Marty's site http://www.qedcat.com.

Video Description

There must be millions of people who have heard of the Tower of Hanoi puzzle and the simple algorithm that generates the simplest solution. But what happens when you are playing the game not with three pegs, as in the original puzzle, but with 4, 5, 6 etc. pegs? Hardly anybody seems to know that there are also really really beautiful solutions which are believed to be optimal but whose optimality has only been proved for four pegs. Even less people know that you can boil down all these optimal solutions into simple no-brainer recipes that allow you to effortless execute these solutions from scratch. Clearly a job for the Mathologer. Get ready to dazzle your computer science friends :) I also talk about 466/885, the Power of Hanoi constant and a number of other Hanoi facts off the beaten track. And the whole thing has a Dr Who hook which is also very cute. 00:00 Intro 01:58 Chapter 1: The doctor vs. the toymaker 14:27 Chapter 2: Hanoi constant 21:21 Chapter 3: The Reve's puzzle 28:04 A beautiful shortest solution for 10 discs and 4 pegs (discs and super-disks) 30:23 Chapter 4: Unprovable algorithm 35:43 A beautiful shortest solution for 10 discs and 5 pegs (discs, super-discs and super-super-discs) 37:17 Supporters Here are some references for you to check out: Andreas M. Hinz et al. - The Tower of Hanoi – Myths and Maths, 2nd edition (2018, Birkhäuser Basel) That's the book I mentioned in the video. The Dr Who episode (well the part that's not been lost) https://www.dailymotion.com/video/x119oe7 The 3Blue1Brown video that I mention https://youtu.be/2SUvWfNJSsM Thierry Bousch, La quatrième tour de Hanoi, http://tinyurl.com/4p3fudu7 That's the paper that pins down things for four pegs. Andreas M. Hinz, Dudeney and Frame-Stewart Numbers, A nice paper explaining the connection between Dudeneys's work and Frame-Stewart. Also worth reading for the historical details. http://tinyurl.com/t8xb2e5t A. van de Liefvoort, An Iterative Algorithm for the Reve's Puzzle, http://tinyurl.com/h5cxfy5u I found this one useful. Paul K. Stockmeyer, http://www.cs.wm.edu/~pkstoc/toh.html A couple of very nice papers including a huge bibliography. Ben Houston & Hassan Masum, Explorations in 4-peg Tower of Hanoi, tinyurl.com/mw95tnek This paper has some pictures of state graphs for the 4-peg puzzle. http://towersofhanoi.info/Animate.aspx Very fancy animation of mulit-peg tower of Hanoi. Sadly, it just comes across as a mess of moves for more than three pegs. Programmers, you really should rise to my challenge to animate the 4-peg algorithm the way I present it in this video. Here is the link to the wiki page for the Celestial toymaker Dr Who episode https://en.wikipedia.org/wiki/The_Celestial_Toymaker Makes very interesting reading. Especially the fact that most of this episode has been lost I find pretty amazing. That's also why I only show a still image from the relevant part of the episode and play some audio snippet. Music: Fresh Fallen Snow and Morning Mandolin both by Chris Haugen, Mumbai effect. All from the free YouTube audio library. Enjoy! Burkard

Master Problem-Solving: Essential Tools

AI-recommended products based on this video

Loading...
Firefly Variety 8 Pack - Fire Starter Accessory for Swiss Army Victorinox Knives (Neon Green-Yellow Glow)

Firefly Variety 8 Pack - Fire Starter Accessory for Swiss Army Victorinox Knives (Neon Green-Yellow Glow)

(181)
$70.15$61.13
$5.05 delivery Thu, Jun 26Only 3 left in stock.
Loading...
VASAGLE File Cabinet with 2 Drawers, Bookcase, Cube Storage Shelf, Printer Stand, for A4, Letter-Size Files, Hanging File Folders, Home Office, Rustic Brown and Ink Black UOFC057B01

VASAGLE File Cabinet with 2 Drawers, Bookcase, Cube Storage Shelf, Printer Stand, for A4, Letter-Size Files, Hanging File Folders, Home Office, Rustic Brown and Ink Black UOFC057B01

(90)
$90.29
FREE delivery Mon, Jun 16
Loading...
ACEMAGIC Mini PC Win11 Pro, Ιntel N95(up to 3.40GHz) Mini Computer, 16GB RAM 512GB SSD Desktop Computers, Micro PC Support 4K Dual Screen/Dual-Band WiFi 5//VESA Mount, Ultra-Compact 3.9" Cube Global Recycled Standard

ACEMAGIC Mini PC Win11 Pro, Ιntel N95(up to 3.40GHz) Mini Computer, 16GB RAM 512GB SSD Desktop Computers, Micro PC Support 4K Dual Screen/Dual-Band WiFi 5//VESA Mount, Ultra-Compact 3.9" Cube Global Recycled Standard

(31)
$309.99
FREE delivery Sat, Jan 3
100+ bought in past month
Loading...
DIMJ Compression Packing Cubes Travel Organizer,Travel Packing Cubes Compressible for Carry on Luggage Lightweight Expandable Luggage Travel Accessories (8 Set-Beige)

DIMJ Compression Packing Cubes Travel Organizer,Travel Packing Cubes Compressible for Carry on Luggage Lightweight Expandable Luggage Travel Accessories (8 Set-Beige)

(146)
$26.99
FREE delivery Sat, Jun 14 on your first order
50+ bought in past month
Loading...
3D Rolling Ball Maze Cube, Maze Ball, Roller Balls Education Toy, Puzzle M-aze Cube, Roller Balls Mind Teaser for Classroom Party Birthday School Travel Waiting Room Family Gathering

3D Rolling Ball Maze Cube, Maze Ball, Roller Balls Education Toy, Puzzle M-aze Cube, Roller Balls Mind Teaser for Classroom Party Birthday School Travel Waiting Room Family Gathering

(0)
$16.03
FREE delivery Dec 19 - 23Arrives before Christmas
Loading...
3D Rolling Ball Maze Cube, Maze Ball, Roller Balls Education Toy, Puzzle M-aze Cube, Roller Balls Mind Teaser for Classroom Party Birthday School Travel Waiting Room Family Gathering

3D Rolling Ball Maze Cube, Maze Ball, Roller Balls Education Toy, Puzzle M-aze Cube, Roller Balls Mind Teaser for Classroom Party Birthday School Travel Waiting Room Family Gathering

(0)
$16.03
FREE delivery Dec 19 - 23Arrives before Christmas