< previous page page_1128 next page >

Page 1128
1128-01.gif
Let's assume we can do this. Now, to move the next largest circle (circle 3) into place, we must move the two circles on top of it onto an auxiliary peg (peg 1 in this case):
1128-02.gif
To get circle 2 into place, we must move circle 1 to another peg, freeing circle 2 to be moved to its place on peg 3:
1128-03.gif
The last circle (circle 1) can now be moved into its final place, and we are finished:
1128-04.gif
Notice that to free circle 4, we had to move three circles to another peg. To free circle 3, we had to move two circles to another peg. To free circle 2, we had to move one circle to another peg. This sounds like a recursive algo-

 
< previous page page_1128 next page >