Concrete Mathematics - Recurrent Problems - Warmups - (4)

Chapter One: Recurrent Problems

Warmups

4. Are there any starting and ending configurations of n disks on three pegs that are more than 2^n-1 moves apart, under Lucas's original rules?

As we know, the answer to the original "Hanno Towper" problem is 2^n-1, which involve the starting configuration of all n disks in A and the ending configuration of all n disks in B. The proposition argues whether there are any starting and ending configurations of n disks on three pegs that are more than 2^n-1 moves apart. Again here, we can use the induction method, which is as follow:

1) First we prove the basis. When n = 1, we can easily figure out no more starting and ending configurations of 1 disk that are more than 1 move apart.

2) Then we assume that when n = k, the proposition holds, where k >= 1. Now we prove that the proposition holds when n = k+1. ( As usual, we mark n disks as d1, d2, ..., dn in acending order of size) Suppose we start with any configuration T1, and end in any configuration T2. Denote the moves between T1 and T2 is D(T1, T2). 

21) If the peg on which the dk+1 disk lies in T1 is the same as the peg on which the dk+1 disk lies in T2, D(T1, T2) would be no more than 2^k - 1, according to the assumption, for the dk+1 disk need not to be moved.

22) If the peg on which the dk+1 disk lies in T1 is not the same as the peg on which the dk+1 disk lies in T2, suppose dk+1 lies in A in T1 without any speciality, and dk+1 lies in B in T2 without any speciality. So we must make the following process to transfer T1 to T2:

221) We move all other k disks without dk+1 in T1 to peg C, and this step takes no more than 2^k-1 moves according to the assumption.

222) We move the dk+1disk from A to B, and this step takes 1 move.

223) We move all other k disks without dk+1 to their positions in configuration T2, and this step takes no more than 2^k-1 moves according to the assumption.

224) Take moves all above, D(T1, T2) <= (2^k-1 + 2^k-1 + 1) = 2^(k+1) - 1. So the proposition holds when n = k+1.

3) QED.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值