Mathematics of Computation · 2007 · 48 citations · 8 references
ComputingComputer ScienceMathematicsAlgorithmsNumber TheoryTheory Of ComputationAlgorithm AnalysisComputational ComplexityComputational Number TheoryModular ArithmeticNumber-theoretic AlgorithmsBinary FormsComputational Gcd AlgorithmsDiscrete Logarithm AlgorithmsDivision Algorithms
We describe a new subquadratic left-to-right <sc>gcd</sc> algorithm, inspired by Schönhage’s algorithm for reduction of binary quadratic forms, and compare it to the first subquadratic <sc>gcd</sc> algorithm discovered by Knuth and Schönhage, and to the binary recursive <sc>gcd</sc> algorithm of Stehlé and Zimmermann. The new <sc>gcd</sc> algorithm runs slightly faster than earlier algorithms, and it is much simpler to implement. The key idea is to use a stop condition for <sc>hgcd</sc> that is based not on the size of the remainders, but on the size of the next difference. This subtle change is sufficient to eliminate the back-up steps that are necessary in all previous subquadratic left-to-right <sc>gcd</sc> algorithms. The subquadratic <sc>gcd</sc> algorithms all have the same asymptotic running time, <inline-formula content-type="math/mathml"> <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" alttext="upper O left-parenthesis n left-parenthesis log n right-parenthesis squared log log n right-parenthesis"> <mml:semantics> <mml:mrow> <mml:mi>O</mml:mi> <mml:mo stretchy="false">(</mml:mo> <mml:mi>n</mml:mi> <mml:mo stretchy="false">(</mml:mo> <mml:mi>log</mml:mi> <mml:mo> </mml:mo> <mml:mi>n</mml:mi> <mml:msup> <mml:mo stretchy="false">)</mml:mo> <mml:mn>2</mml:mn> </mml:msup> <mml:mi>log</mml:mi> <mml:mo> </mml:mo> <mml:mi>log</mml:mi> <mml:mo> </mml:mo> <mml:mi>n</mml:mi> <mml:mo stretchy="false">)</mml:mo> </mml:mrow> <mml:annotation encoding="application/x-tex">O(n (\log n)^ 2 \log \log n)</mml:annotation> </mml:semantics> </mml:math> </inline-formula> .
8
Computational problems associated with Racah algebra
J. Stein · Journal of Computational Physics · 1967 · 170 citations
Euclid's Algorithm for Large Numbers
D. H. Lehmer · American Mathematical Monthly · 1938 · 117 citations
Jonathan Sorenson · Journal of Algorithms · 1994 · 96 citations
The accelerated integer GCD algorithm
Kenneth Weber · ACM Transactions on Mathematical Software · 1995 · 51 citations · Full text
Fast reduction and composition of binary quadratic forms
Arnold Schönhage · 1991 · 50 citations · Full text