TOPICS
Search

Half-GCD


Given integers a and b with close to 2n bits each, the half-GCD of a and b is a 2×2 matrix

 [u v; u^' v^']

with determinant equal to -1 or 1 such that ua+vb=r and u^'a+v^'b=r^', where r and r^' each have a number of bits close to n.

The half-GCD results by performing roughly half the Euclidean algorithm for computing the greatest common divisor GCD(a,b). There is an efficient algorithm for computing the half-GCD of two large numbers which, when applied recursively, allows the greatest common divisor to be computed faster than using the Euclidean algorithm.


See also

Euclidean Algorithm, Greatest Common Divisor

This entry contributed by David Terr

Explore with Wolfram|Alpha

References

Aho, A. V.; Hopcroft, J. E.; and Ullmann, J. D. Data Structures and Algorithms. Reading, MA: Addison-Wesley, 1987.Sedjelmaci, S. M. "The Accelerated Euclidean Algorithm." Poster talk presented at ISAAC 2004, July 4-7, University of Cantabria, Santander, Spain. http://www.risc.uni-linz.ac.at/issac2004/poster-abstracts/abstract27.pdf.

Referenced on Wolfram|Alpha

Half-GCD

Cite this as:

Terr, David. "Half-GCD." From MathWorld--A Wolfram Web Resource, created by Eric W. Weisstein. https://mathworld.wolfram.com/Half-GCD.html

Subject classifications