2 FAST GCD ALGORITHMS

被引:41
|
作者
SORENSON, J
机构
[1] Department of Mathematics and Computer Science, Butler University, Indianapolis, IN 46208
关键词
D O I
10.1006/jagm.1994.1006
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present two new algorithms for computing greatest common divisors: the right- and left-shift k-ary GCD algorithms. These algorithms are generalizations of the binary and left-shift binary algorithms. Interestingly, both new algorithms have sequential versions that are practical and efficient and parallel versions that rival the best previous parallel GCD algorithms. We show that sequential versions of both algorithms take Θ(n2/log n) bit operations in the worst case to compute the GCD of two n-bit integers. This compares favorably to the Euclidean and both binary algorithms, which take Θ(n2) time. In practice, we implemented multiple-precision versions of these GCD algorithms, and we found that both k-ary algorithms are faster than the Euclidean and binary algorithms on inputs of 100 to 1000 decimal digits in length. We show that parallel versions of both algorithms match the complexity of the best previous parallel GCD algorithm due to Chor and Goldreich. Specifically, if log n ≤ k ≤ 2n and k is a power of two, then both algorithms run in O(n/log k + log2n log log n) time using a number of processors bounded by a polynomial in n and k on a common CRCW PRAM. We also discuss extended versions of both algorithms. © 1994 Academic Press, Inc.
引用
收藏
页码:110 / 144
页数:35
相关论文
共 50 条
  • [31] On the computation of the GCD of 2-D polynomials
    Tzekis, Panagiotis
    Karampetakis, Nicholas P.
    Terzidis, Haralambos K.
    INTERNATIONAL JOURNAL OF APPLIED MATHEMATICS AND COMPUTER SCIENCE, 2007, 17 (04) : 463 - 470
  • [32] A Look-up Table based Binary GCD for Fast Modular Inversion
    Ishida, Tsutomu
    Nagase, Tomoyuki
    Yoshioka, Yoshio
    INFORMATION-AN INTERNATIONAL INTERDISCIPLINARY JOURNAL, 2011, 14 (08): : 2901 - 2910
  • [33] FAST SUBSUMPTION ALGORITHMS
    GOTTLOB, G
    LEITSCH, A
    LECTURE NOTES IN COMPUTER SCIENCE, 1985, 204 : 64 - 77
  • [34] Fast Genetic Algorithms
    Doerr, Benjamin
    Huu Phuoc Le
    Makhmara, Regis
    Ta Duy Nguyen
    PROCEEDINGS OF THE 2017 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE (GECCO'17), 2017, : 777 - 784
  • [35] Approximations and fast algorithms
    Beylkin, G
    WAVELETS: APPLICATIONS IN SIGNAL AND IMAGE PROCESSING IX, 2001, 4478 : 1 - 8
  • [36] Fast Algorithms For PTFTs
    Bi, Guoan
    Li, Gang
    2011 6TH IEEE CONFERENCE ON INDUSTRIAL ELECTRONICS AND APPLICATIONS (ICIEA), 2011, : 2534 - 2537
  • [37] FAST DIVISIBILITY ALGORITHMS
    GORDON, HT
    DR DOBBS JOURNAL, 1983, 8 (06): : 14 - &
  • [38] FAST ENVELOPE ALGORITHMS
    Cook, R. Dennis
    Zhang, Xin
    STATISTICA SINICA, 2018, 28 (03) : 1179 - 1197
  • [39] Generalized algorithms for the approximate matrix polynomial GCD of reducing data uncertainties with to MIMO and control
    Fazzi, Antonio
    Guglielmi, Nicola
    Markovsky, Ivan
    JOURNAL OF COMPUTATIONAL AND APPLIED MATHEMATICS, 2021, 393
  • [40] Fast regular 2-D algorithms for trigonometric transforms
    Astola, J
    Akopian, D
    VISUAL COMMUNICATIONS AND IMAGE PROCESSING '97, PTS 1-2, 1997, 3024 : 885 - 896