- (25 points) Consider the game of Hanoi-Tower, where on a board with three erected pegs pile of disks of different sizes are initially stacked at one of the pegs, in a size-ordered manner with the largest disk being at the bottom and on top the smallest.
The player is required to relocate the disk pile to any of the rest two pegs, in compliance with the following rules at any time during the play:
- moving one disk at a time from one peg to another;
- when moving a disk to a peg already piled with disks, the disk must be smaller than any in the pile (which would entail that, during the game, a disk pile at any peg will be size-ordered with smaller ones on top of larger ones);
a. (2 points) Suppose that is the number of moves required to relocate a pile of disks at a peg to any of the rest two pegs. How would you formulate in a recursive manner? And
b. (3 points) The game can be extended to the case of 4-peg. Suppose that denotes the number of moves needed to relocate a pile of disks at a peg to any of the rest three pegs. How would you formulate in a recursive manner? And Is there any connection that you see between and ?
c. (10 points) Let be the number of moves for relocating a pile of disks in 5-peg situation. Are there any connections that you see among , and ?
d. (10 points) What can you tell about in the case of an -peg Hanoi-Tower game? And the connections between and ?