教育资源为主的文档平台

当前位置: 查字典文档网> 所有文档分类> 论文> 其他论文> 一个改进的Euclid算法

一个改进的Euclid算法

上传者:网友
|
翻新时间:2013-12-18

一个改进的Euclid算法

摘要

最大公因子(GCD)计算是计算数论的基础课题之1,它在密码算法和密码分析中有着非常广泛的应用。本文主要研究正整数的GCD计算问题。

本文首先介绍了算法的相关概念和当前现有的GCD算法,然后列出了最大公因子的几个基本性质。在描述了经典Euclid算法及其扩展、2进制GCD算法及其求模逆算法并对它们分析之后,提出了1个在这些算法基础上改进而来的Euclid改进算法。它与Euclid算法相比,在计算过程中不需要处理符号,减少了要赋值的次数。之后,用数学方法证明算法的正确性。用C语言将算法实现,并与之前列举的经典Euclid算法等几个算法比较运算时间的长短,得出结论。对非负数值运算而言,经过改进的Euclid求乘法逆算法比原来的相应算法在计算大整数乘法逆时速度要快得多,而且这个速度上的差距与运行环境的机器配置高低成反比,与所给出的大整数的规模大小成正比。文章最后将新算法实现的C语言代码列出,以供参考。

关键词:公钥密码体制;最大公因子;Euclid算法;时间复杂度。

Abstract

Greatest Common Divisor (GCD) is one of the basic subjects in computational number theory, it has a wide application in encryption and analysis of cryptography. This thesis has mainly study of the problem of GCD calculation for the positive integers.

Firstly, this thesis introduce the related concepts of the algorithm and some GCD algorithms that current existing, then list a few basic properties of Greatest Common Divisor. Describe the classic Euclid algorithm and its extended, the binary GCD algorithm and its inverse module algorithm, and analyze to them after. Based on these algorithms, we put forward a modified Euclid algorithm and its inverse module algorithm. Compared with the Euclid algorithm, it does not need to handle sign during the period of computing, reduce the times of the assignment. After this, prove it with mathematics method. Carry out the algorithm with the C language, and compare its runtime with the classic Euclid algorithm enumerated before, get a conclusion. In the cryptographic system for the nonnegative integers, the modified inverse module Euclid algorithm is faster than the original algorithm when compute the inverse of multiplication, and the difference of the speed is directly proportional to the stand or fall of running environment and is inversely proportional to the magnitude of the integer that we gave. At the end of the thesis, we list the C language code that the new algorithm carry out, and provide a reference.

Keyword:Public key Cryptography; Greatest Common Divisor (GCD); Euclid Algorithm; Time Complexity

下载文档

版权声明:此文档由查字典文档网用户提供,如用于商业用途请与作者联系,查字典文档网保持最终解释权!

网友最新关注

我的小房间
篮球比赛
打羽毛球
美丽的春天
海边
因祸得福
我开心我运动
西瓜皮
用磁铁找零件
一个有趣的小实验
月亮和太阳
我的妈妈
摘樱桃
绒线花树
谁耍赖
大一学年团支部工作总结
2012年生猪屠宰工作总结
乡中心幼儿园工作总结
维修电工技师工作总结
初二班主任工作总结
学校美术教育工作总结
大学生村官工作总结
大学2011党建工作总结
一年级下册语文教学工作总结
小学2012年第一学期教育教学工作总结
大学学生保健协会2012年工作总结
五年级语文教师教学工作总结
2012年八年级语文教学工作总结
社区2012年残疾人协会工作总结
2012年信息技术教学工作总结
纪检监察工作要全面贯彻并长期坚持“三个代表”重要思想
谈学校教育与心理保健
中学生狭隘心理简析
量子相空间中分布函数及其运用
中学生创新心理素质与心理健康的相关研究
关于“三个代表”重要思想历史地位的若干问题
引力场对氢原子光谱的影响之研究
论青少年心理训练
“三个代表”重要思想与我国的民族政策
“三个代表”的价值特征
几种波导中电磁波传播的一般讨论
物理摆测重力加速度g值的实验研究
关于中学心理教育课程建设的若干思考
对中学生心理健康教育的几点认识
关于确立“三个代表”重要思想指导地位的若干新思考
《彩色的非洲》教案
《再见了,亲人》教案
《给予是快乐的》听课感受
《威尼斯的小艇》教案
《晏子使楚》
《金钱的魔力》教案
《桂花雨》教案
《刷子李》教案
《秦兵马俑》教学设计一
《与象共舞》教案
《草船借箭》教案
《金色的鱼钩》教案
《小桥流水人家》教案
《梦想的力量》教案
《杨氏之子》教案