Computing Multiplicative Inverses in GF(p)
暂无分享,去创建一个
Two familiar algorithms, the extended Euclidean algorithm and the Fermat algorithm (based on Fermat's theorem aP a(mod p)), are analyzed and compared as methods for computing multiplicative inverses in GF(p). Using Knuth's results on the average number of divisions in the Euclidean algorithm, it is shown that the average number of arithmetic operations required by the Fermat algorithm is nearly twice as large as the average number for the extended Euclidean algorithm. For each of the two algorithms, forward and backward versions are distinguished. It is shown that all numbers computed in the forward extended Euclidean algorithm are bounded by the larger of the two inputs, a property which was previously established by Kelisky for the backward version. U
[1] I. Borosh,et al. Exact solutions of linear equations with rational coefficients by congruence techniques , 1966 .
[2] George E. Collins,et al. Subresultants and Reduced Polynomial Remainder Sequences , 1967, JACM.