求解二元线性丢番图方程的平均情况高效算法
An average case efficient algorithm for solving two-variable linear Diophantine equations
AI总结:
本文提出一种求解二元线性丢番图方程的高效算法,通过细粒度分析递归调用次数,得出递归调用周期函数,并证明该算法的平均递归次数优于扩展欧几里得算法。
摘要:
求解二元线性丢番图方程在许多密码协议中都有应用,如RSA和椭圆曲线密码学。扩展欧几里得算法是已知的解决方案。本文重新审视两种求解二元线性丢番图方程的算法。我们编写了其中一种算法的迭代版本。对于另一种,我们对递归调用次数进行了细粒度分析,得出一个表示递归调用次数的周期函数。我们找到周期并利用它推导出多个平均递归调用次数的上界。这些上界表明,分析算法的平均递归调用次数在扩展欧几里得算法上有一个常数项改进。我们提出该算法的迭代变种。我们实现了该算法并发现,该算法的平均迭代次数少于现有两种算法。我们比较了该算法与扩展欧几里得算法的迭代次数。在比较中,我们发现对于100%的可解实例输入,该算法的迭代次数少于扩展欧几里得算法的迭代次数。
英文摘要:
Solving two-variable linear Diophantine equations has applications in many cryptographic protocols such as RSA and Elliptic curve cryptography. The Extended Euclid's algorithm is a well known algorithm to solve these equations. We revisit two algorithms to solve two-variable linear Diophantine equations. We write the iterative version of one of the revisited algorithms. For another, we do a fine-grained analysis of the number of recursive calls and arrive at a periodic function that represents the number of recursive calls. We find the period and use it to derive multiple upper bounds on the average number of recursive calls. The upper bounds conclude that the average number of recursive calls in the analyzed algorithm is a constant term improvement over the Extended Euclid's algorithm. We propose an iterative variant of the algorithm. We implement this algorithm and find that the average number of iterations by our algorithm is less than that of two existing algorithms. We compare the number of iterations in this algorithm and in Extended Euclid's algorithm. In the comparison, we find that for 100\% of the solvable instances of inputs, the iterations are less than that in Extended Euclid's algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。