I am looking for information on fast GCD calculation algorithms. Moreover, I would like to take a look at the implementation of this.
The most interesting thing for me: - Lehmer GCD algorithm, - Accelerated GCD algorithm, - k-ary algorithm, - Knut-Schonhage with FFT. I don’t have ANY information about the accelerated GCD algorithm, I just saw several articles where it was mentioned as the most efficient and fastest method for calculating gcd at the inputs of the environment (~ 1000 bits)
It is very difficult for me to understand from the theory of view. Can someone please share the code (preferably in C ++) with the implementation of any algorithm / parts from the list or share experience. I would also appreciate any information, comments, tips, places to study. I have a class for working with large integers, but I have no methods for working with it. Except, of course, the Euclid and Binary gcd algorithms, which now seem clear to me; there is no problem with that. The main thing I would like to get at the end: lehmer gcd implementation code. (this is easier on the list)
source
share