代入法的啟發示搜索
我的代碼實現是:按照自然語言各字母出現頻率的大小從高到低(已經有人作國統計分析了)先生成一張字母出現頻率統計表(A)--------(e),(t,a,o,i,n,s,h,r),(d,l),(c,u,m,w,f,g,y,p,b),(v,k,j,x,q,z)
,再對密文字母計算頻率,并按頻率從高到低生成一張輸入密文字母的統計表(B),通過兩張表的對應關系,不斷用A中的字母去替換B中的字母,搜索不成功時就回退,在這里回朔是一個關鍵。
標簽:
字母
頻率
搜索
代碼
上傳時間:
2015-10-24
上傳用戶:wanqunsheng
在命令窗輸入如下內容就得到圖形了:
[t,x]=ode45( godhua ,[0,10],[0,0,0,1])
subplot(131) plot(t,x(:,4)) xlabel( t ) ylabel( y )
subplot(132) plot(t,x(:,1)) xlabel( t ) ylabel( v )
subplot(133) plot(t,x(:,2)) xlabel( t ) ylabel( \theta )
標簽:
subplot
godhua
xlabel
plot
上傳時間:
2013-12-25
上傳用戶:15736969615