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

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

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
摘 要 本文主要围绕伪随机序列生成算法中线性同余法和平方取中法做了程序设计实验;在Windows中用java程序对线性同余法做了10万组数据实验、对平方取中法分别做了4位和6位1万组对照数据实验,再选择相同条件下不同初始值进行比较;然后用MATLAB针对线性同余法满周期的进行了游程检验和数据图,再平方取中法中随机选择4位和6位各8组数据进行游程检验和数据图。结果表示:线余法产生的随机序列可以达到达到最大周期且比较稳定,而平方取中法受初始值影响太大产生随机序列的周期不稳定。线性同余法相较于平方取中法在周期中可以达到最大周期、在初始值中可以不受初始值影响、在均衡性上分布合理;因此线性同余法更适合用来做密钥分配。 关键词:随机序列;线性同余法;平方取中法;周期 Abstract This 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 by the initial value in the initial value, and is reasonably distributed in the equilibrium.Therefore, linear congruence method is more suitable for key distribution. Key words: Rndom Squence;LCG; Middle-square Method; period 目 录 TOC \o 1-3 \h \z \u 第一章 引言 1 1.1密码学 1 1.2研究现状 1 1.2.1 伪随机序列的发展 1 1.2.2 伪随机序列的应用 2 1.3 论文结构 2 第二章 常见的随机序列及生成算法介绍 3 2.1常见的随机序列 3 2.1.1随机数和伪随机数的关系 3 2.1.2随机序列 3 2.2 流密码与随机序列 4 2.2.1流密码的研究历程 4 2.2.2流密码中的随机序列 4 2.3生成算法 4 第三章 实验过程和结果、检验分析 7 3.1线性同余法 7 3.2平方取中法 11 3.3 对比分析 14 第四章 期望与不足 15 第五章 总结 16 参考文献 18 致谢 19 附录 20 PA

文档评论(0)

文章交流借鉴 + 关注
实名认证
文档贡献者

妙笔如花

1亿VIP精品文档

相关文档