文件名称:Substituter.java
介绍说明--下载内容均来自于网络,请自行研究使用
代入法的启发示搜索
我的代码实现是:按照自然语言各字母出现频率的大小从高到低(已经有人作国统计分析了)先生成一张字母出现频率统计表(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中的字母,搜索不成功时就回退,在这里回朔是一个关键。
-generation into a search of inspiration I said a code is : According to the Natural Language alphabet frequency of the size of precedence (has been for the State Statistical Analysis), Mr. into an alphabet frequency tables (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), again close to the mother language calculated frequency and frequency input precedence generate a secret letter to the mother TAB (B), Table 2 by the corresponding relations, use of the letters A to B to replace the letters of the alphabet, when unsuccessful search regression, Here is a retrospective key.
我的代码实现是:按照自然语言各字母出现频率的大小从高到低(已经有人作国统计分析了)先生成一张字母出现频率统计表(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中的字母,搜索不成功时就回退,在这里回朔是一个关键。
-generation into a search of inspiration I said a code is : According to the Natural Language alphabet frequency of the size of precedence (has been for the State Statistical Analysis), Mr. into an alphabet frequency tables (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), again close to the mother language calculated frequency and frequency input precedence generate a secret letter to the mother TAB (B), Table 2 by the corresponding relations, use of the letters A to B to replace the letters of the alphabet, when unsuccessful search regression, Here is a retrospective key.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 11912884substituter.java.rar 列表 Substituter.java\Substituter.java Substituter.java