四柱漢諾塔問題的求解程序.解題思路:如a,b,c,d四柱. 要把a柱第n個盤移到目標(biāo)柱子(d柱),先把上層
分兩為兩部份,上半部份移到b柱,下半部分移到c柱,再把第n盤移到
目標(biāo)柱子,然后,c柱盤子再移到目標(biāo)柱子,再把b柱盤子移到目標(biāo)柱子.
細(xì)節(jié)地方:
上半部份移到b柱時,它的中間變量柱子是有二選一的.而下半部分
移到c柱時,它的中間變量柱子只有一個(因為一個柱子已被上半部份
占了).b,c也移到目標(biāo)柱子時同理。
標(biāo)簽:
分
漢
程序
上傳時間:
2013-12-22
上傳用戶:aeiouetla
design LP,HP,B S digital Butterworth and Chebyshev
filter. All array has been specified internally,so user only need to
input f1,f2,f3,f4,fs(in hz), alpha1,alpha2(in db) and iband (to specify
the type of to design). This program output hk(z)=bk(z)/ak(z),k=1,2,...,
ksection and the freq.
標(biāo)簽:
Butterworth
internally
Chebyshev
specified
上傳時間:
2015-11-08
上傳用戶:253189838