All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Algorithms
Towers of Hanoi (Posted on 2003-09-07) Difficulty: 3 of 5
You have three small poles and five hoops - XS, S, M, L, XL (as in extra small, small, medium, large and extra large). They are placed on pole 1 in order, with largest at the bottom.

You can move one hoop at a time, and the hoops you are not moving have to be on a pole. You also cannot place a hoop on top of a smaller one. How can you move the hoops so that they are in the same order as they are now, but on pole 3?

See The Solution Submitted by Lewis    
Rating: 3.0667 (15 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Holy Hula Hoops! | Comment 1 of 22
In this classic tower of Babel problem, the clue to controlling the final position of the hoops is noticing the odd and even hoops. That is to say, begin by numbering the hoops from smallest to largest. If you want to move the tower of hoops to pole three you must begin by moving hoop #1 to pole three. Thereafter all even numbered hoops will first be moved to pole two, covered with their succesively smaller hoops until pole three is empty and available for the next larger odd numbered hoop. This, of course, applies to all tower sizes.
  Posted by Eric on 2003-09-07 10:12:37
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (17)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information