电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

几种典型伪随机序列程序设计和数据分析

几种典型伪随机序列程序设计和数据分析_第1页
几种典型伪随机序列程序设计和数据分析_第2页
几种典型伪随机序列程序设计和数据分析_第3页
几种典型伪随机序列程序设计和数据分析Several Typical Pseudo-Random Sequence Programming and Data Analysis摘 要本文主要围绕伪随机序列生成算法中线性同余法和平方取中法做了程序设计实验;在 Windows 中用 java 程序对线性同余法做了 10 万组数据实验、对平方取中法分别做了 4 位和 6 位 1 万组对照数据实验,再选择相同条件下不同初始值进行比较;然后用 MATLAB 针对线性同余法满周期的进行了游程检验和数据图,再平方取中法中随机选择 4 位和 6位各 8 组数据进行游程检验和数据图。结果表示:线余法产生的随机序列可以达到达到最大周期且比较稳定,而平方取中法受初始值影响太大产生随机序列的周期不稳定。线性同余法相较于平方取中法在周期中可以达到最大周期、在初始值中可以不受初始值影响、在均衡性上分布合理;因此线性同余法更适合用来做密钥分配。关键词:随机序列;线性同余法;平方取中法;周期AbstractThis paper mainly focuses on the programming experiments of the linear congruence method and the square selection method in the pseudo-random sequence generation algorithm.In Windows, Java program was used to do 100,000 sets of data experiments for linear congruence method and 10,000 sets of control data experiments for 4-bit and 6-bit squaring method respectively. Then, different initial values were selected for comparison under the same conditions.Then MATLAB is used to carry out the run test and data graph for the full period of linear congruence method. In the square method, 8 groups of data of 4 bits and 6 bits are randomly selected for the run test and data graph.The results show that the random sequences generated by the line complementary method can reach the maximum period and are relatively stable, while the periodic instability of the random sequences generated by the square median method is greatly affected by the initial value.The linear congruence method can reach the maximum period in the period, is not affected...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

文章天下+ 关注
实名认证
内容提供者

各种文档应有尽有

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部