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 条
  • [41] Fast algorithms design for 2-D Walsh transform
    Zhu, Minli
    Wang, Nengchao
    2000, China Educ Book Import Export Corp, China (24):
  • [42] FAST ALGORITHMS FOR THE 2-D DISCRETE COSINE TRANSFORM
    KAMANGAR, FA
    RAO, KR
    IEEE TRANSACTIONS ON COMPUTERS, 1982, 31 (09) : 899 - 906
  • [43] Fast algorithms for the 2-D discrete W transform
    Bi, GA
    SIGNAL PROCESSING, 1999, 74 (03) : 297 - 308
  • [44] RADIX -2 AND RADIX -4 FAST HARTLEY TRANSFORM ALGORITHMS
    YATSIMIRSKIY, MN
    TELECOMMUNICATIONS AND RADIO ENGINEERING, 1989, 44 (03) : 74 - 78
  • [45] Modular Inverse for Integers using Fast Constant Time GCD Algorithm and its Applications
    Deshpande, Sanjay
    del Pozo, Santos Merino
    Mateu, Victor
    Manzano, Marc
    Aaraj, Najwa
    Szefer, Jakub
    2021 31ST INTERNATIONAL CONFERENCE ON FIELD-PROGRAMMABLE LOGIC AND APPLICATIONS (FPL 2021), 2021, : 122 - 129
  • [46] GCD-CLOSED SETS AND THE DETERMINANTS OF GCD MATRICES
    BESLIN, S
    LIGH, S
    FIBONACCI QUARTERLY, 1992, 30 (02): : 157 - 160
  • [47] Polynomial GCD
    Bruckman, PS
    FIBONACCI QUARTERLY, 1998, 36 (05): : 472 - 472
  • [48] 左移2进制gcd算法的改进
    孙燮华
    中国计量学院学报, 2008, (02) : 154 - 157
  • [49] Resultant properties of gcd of many polynomials and a factorization representation of gcd
    Fatouros, S
    Karcanias, N
    INTERNATIONAL JOURNAL OF CONTROL, 2003, 76 (16) : 1666 - 1683
  • [50] Fast commutative matrix algorithms
    Rosowski, Andreas
    JOURNAL OF SYMBOLIC COMPUTATION, 2023, 114 : 302 - 321