Thursday, February 4, 2010

Tower of Hanoi

Tower of Hanoi was quite confusing. I was very frustrated and wanted to give up. I didn't use a specific strategy for it, because i couldn't find one, so i just used guess and check. After getting some help from my classmates, i realized the strategy. If the number of discs are even, then the littlest disc would go in the middle pole, and if the number of discs are odd, then the littlest discs would go in the right pole.

No comments:

Post a Comment