Question: 1.11: A Double Tower of Hanoi contains 2n disks of n different sizes, two of each size. As usual, we’re required to move only one disk at a time, without putting a larger one over a smaller one.
- How many moves does it take to transfer a double tower from one peg to another, if disks of equal size are indistinguishable from each other?
- What if we are required to reproduce the original top-to-bottom order of all the equal-size disks in the final arrangement? [Hint: This is difficult–it’s really a “bonus problem.”]
Solution:
for a:
for b:
** click and open the photo for better view.
No comments:
Post a Comment