(page 100(2)) |
|
The Towers of Hanoi Solution | |||||
Did you see the pattern that was developed in the previous page?
Basically if we wanted to move a tower of size N (where N is a natural number greater than zero) from A to B, we:
So to move a tower of size N from A to B: If N is greater than zero thenMove tower of size N minus 1 from A to C; |
hanoi04.qh - 1.4 - 05/10/02 |