Material Detail
Towers of Hanoi
A very good implementation of the classic Towers of Hanoi problem. Teaches recursive functions and stacks as well as recurrence relations.
Quality
-
Peer Review
-
User Rating
- Comments (3) Comments
- Learning Exercises (1) Learning Exercises
- Bookmark Collections (14) Bookmark Collections
- Course ePortfolios
- Accessibility Info
More about this material
Browse...
Disciplines with similar materials as Towers of Hanoi
People who viewed this also viewed
Other materials like Towers of Hanoi
Comments
Audrone Matutis (Faculty)
A good visual tool for teaching how to solve a classic programming problem. Segues nicely into material for dissecting the problem, developing a solution algorithm and then writing the resulting function.
Discussing the mathematical formula for determining the minimum number of moves
needed to solve the puzzle with any number of disks, makes this a good example of what programmers need to consider in order to develop efficiently running programs.
Discussing the mathematical formula for determining the minimum number of moves
needed to solve the puzzle with any number of disks, makes this a good example of what programmers need to consider in order to develop efficiently running programs.
Technical Remarks:
Sometimes the applet controls were only partly visible after loading. This is easily resolved by refreshing the display.
Used in course?
Yes
L Collins (Student)
I played the game 10 times, and came up with increasingly better resluts.
(Scores were 32,29,23,19,21,17,19,17,17,15.) I was stuck at 17 moves, and then
watched the animation a few times. After that I was able to get down to 15
moves. I thought this game was fun and I appreciated the feedback, and also the
animation. This would be a good teaching tool for K-8 students.
(Scores were 32,29,23,19,21,17,19,17,17,15.) I was stuck at 17 moves, and then
watched the animation a few times. After that I was able to get down to 15
moves. I thought this game was fun and I appreciated the feedback, and also the
animation. This would be a good teaching tool for K-8 students.
Used in course?
Yes
Isabel Azevedo (Faculty)
Very interesting