If you're using Chrome, the right column of this blog isn't displaying correctly. Switch to Firefox. If you're using the iPad, you're a tool. If you're using IE, go kill yourself.
(This person is kinda upset that I dissed their favorite browser. I actually use Chrome and I like it, but for some reason the layout here is different than on Firefox. And of course, the iPad and IE just plain suck. You tool.)

Wednesday, November 4, 2009

Tower of Hanoi

The Tower of Hanoi is a math game usually used in computer science. It involves three rods and a number of disks which can slide onto the rods. The disks vary in size -- the smallest is stacked on the top and the largest at the bottom, so it would look similar to a step pyramid. The purpose of the game is to move all the disks that are assembled on the left rod to the right rod. The middle one is used as a temporary place holder. But you have to follow these rules:

1. Only one disk can be moved at a time.
2. A disk can't be placed on top of a smaller disk.
3. All disks have to be slid on a peg while being moved.

The Tower of Hanoi got its name from a legend involving Vietnamese priests moving 64 golden disks in the same manner described above. That would have taken them 264 - 1 moves, or 18,446,744,073,709,551,615 turns, to finish.

0 comments: