代入法的啟發(fā)示搜索
我的代碼實(shí)現(xiàn)是:按照自然語言各字母出現(xiàn)頻率的大小從高到低(已經(jīng)有人作國統(tǒng)計(jì)分析了)先生成一張字母出現(xiàn)頻率統(tǒng)計(jì)表(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)
,再對(duì)密文字母計(jì)算頻率,并按頻率從高到低生成一張輸入密文字母的統(tǒng)計(jì)表(B),通過兩張表的對(duì)應(yīng)關(guān)系,不斷用A中的字母去替換B中的字母,搜索不成功時(shí)就回退,在這里回朔是一個(gè)關(guān)鍵。
標(biāo)簽:
字母
頻率
搜索
代碼
上傳時(shí)間:
2015-10-24
上傳用戶:wanqunsheng
%BIQPBOX Bisection reflective line search for sqpbox
% [nx,nsig,alpha] = BIQPBOX(s,c,strg,x,y,sigma,l,u,...
% oval,po,normg,DS,mtxmpy,data,H)
% returns the new feasible point nx, the corresponding sign vector nsig,
% and the step size of the unreflected step, alpha.
% Copyright (c) 1990-98 by The MathWorks, Inc.
% $Revision: 1.2 $ $Date:
標(biāo)簽:
BIQPBOX
reflective
Bisection
search
上傳時(shí)間:
2013-12-17
上傳用戶:sk5201314