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 条
  • [1] Two Fast Parallel GCD Algorithms of Many Integers
    Sedjelmaci, Sidi Mohamed
    PROCEEDINGS OF THE 2017 ACM INTERNATIONAL SYMPOSIUM ON SYMBOLIC AND ALGEBRAIC COMPUTATION (ISSAC'17), 2017, : 397 - 404
  • [2] Regularity of the Euclid Algorithm; application to the analysis of fast GCD Algorithms
    Cesaratto, Eda
    Clement, Julien
    Daireaux, Benoit
    Lhote, Loick
    Maume-Deschamps, Veronique
    Vallee, Brigitte
    JOURNAL OF SYMBOLIC COMPUTATION, 2009, 44 (07) : 726 - 767
  • [3] Extending the binary gcd algorithms
    Kubiak, P
    PUBLIC-KEY CRYPTOGRAPHY AND COMPUTATIONAL NUMBER THEORY, 2001, : 113 - 135
  • [4] Fast Prime Generation Algorithms using proposed GCD test on Mobile Smart Devices
    Jo, Hosung
    Park, Heejin
    2016 INTERNATIONAL CONFERENCE ON BIG DATA AND SMART COMPUTING (BIGCOMP), 2016, : 374 - 377
  • [5] FAST PARALLEL MATRIX AND GCD COMPUTATIONS
    BORODIN, A
    GATHEN, JV
    HOPCROFT, J
    INFORMATION AND CONTROL, 1982, 52 (03): : 241 - 256
  • [6] 3 NEW ALGORITHMS FOR MULTIVARIATE POLYNOMIAL GCD
    SASAKI, T
    SUZUKI, M
    JOURNAL OF SYMBOLIC COMPUTATION, 1992, 13 (04) : 395 - 411
  • [7] An Effective Programming of GCD Algorithms for Natural Numbers
    Al Halidi, Arkan Mohammed
    Ishmukhametov, Sh T.
    RUSSIAN MATHEMATICS, 2020, 64 (06) : 1 - 5
  • [8] An Effective Programming of GCD Algorithms for Natural Numbers
    Arkan Mohammed Al Halidi
    Sh. T. Ishmukhametov
    Russian Mathematics, 2020, 64 : 1 - 5
  • [9] A fast parallel sparse polynomial GCD algorithm
    Hu, Jiaxiong
    Monagen, Michael
    JOURNAL OF SYMBOLIC COMPUTATION, 2021, 105 : 28 - 63
  • [10] A novel fast hybrid GCD computation algorithm
    Mohamed, Faraoun Kamel
    INTERNATIONAL JOURNAL OF COMPUTING SCIENCE AND MATHEMATICS, 2014, 5 (01) : 37 - 47