河內塔變形 - 拼圖
By Rachel
at 2010-02-28T13:40
at 2010-02-28T13:40
Table of Contents
其實一開始是開箱文--Knuth 《空固力數學》(Concrete Mathmatics: ) 入手,將鏘~~
中文版真的頗適合當作床頭書,其次功能就是練功與查找一些經典的題目。
附記: 每次去台電大樓古今書坊都會讓我痛下殺手,五折起(或更低)的書價太誘人啦~~~
==============================================================================
然後就是正題:
大家都知道,N階河內塔最小次數的封閉式是 2^N - 1 次。下面的題目有的書裡面有,
有的...沒有(廢話!)
1. 正統規則,換成四柱+N盤
a.H(N) = ?
2. "鄰居"規則: 加上規則「柱子1、2、3,盤子只能搬移到隔壁。即禁止1-3」。
目標一樣──將N盤從1移到3。
a.H(5) = ?
b.H(N) = ?
3. "鄰居"規則 + 四柱
→忘了補,當然指的是1搬到4的次數
a.求H(1~5) *可以預見會有很多版本的答案出現^_^
b.封閉式H(N) *似乎規則不單純。我還沒解出來,望各位指教
4. "鄰居" + 無限柱子
1, 2, 3, 4, ...,k ,...
a.求N盤,從第1柱搬到第M+1柱 (右移M的意思) *其實這題最簡單,不要被騙
--
Tags:
拼圖
All Comments
By Margaret
at 2010-03-04T13:13
at 2010-03-04T13:13
By Caroline
at 2010-03-06T00:44
at 2010-03-06T00:44
By Oscar
at 2010-03-07T04:26
at 2010-03-07T04:26
By Rachel
at 2010-03-12T01:34
at 2010-03-12T01:34
By Kama
at 2010-03-16T01:42
at 2010-03-16T01:42
By Jake
at 2010-03-17T01:47
at 2010-03-17T01:47
By Yuri
at 2010-03-19T13:26
at 2010-03-19T13:26
By Lydia
at 2010-03-22T08:06
at 2010-03-22T08:06
By Edward Lewis
at 2010-03-24T13:20
at 2010-03-24T13:20
By Andy
at 2010-03-25T11:07
at 2010-03-25T11:07
By Odelette
at 2010-03-26T23:22
at 2010-03-26T23:22
By Michael
at 2010-03-28T23:16
at 2010-03-28T23:16
Related Posts
抽到黑桃 A 還是黑桃 2 的機會比較大?
By Ina
at 2010-02-28T01:14
at 2010-02-28T01:14
忘了~
By Una
at 2010-02-28T00:19
at 2010-02-28T00:19
品質超高的魯班金屬積木球
By William
at 2010-02-27T22:41
at 2010-02-27T22:41
抽到黑桃 A 還是黑桃 2 的機會比較大?
By Thomas
at 2010-02-27T13:37
at 2010-02-27T13:37
抽到黑桃 A 還是黑桃 2 的機會比較大?
By Skylar Davis
at 2010-02-27T01:07
at 2010-02-27T01:07