A Study of Euclidean K-Ary Gcd Algorithm

Nikolai Andreevich Antonov, Shamil Talgatovich Ishmukhametov, Al Halidi Arkan M, Mariia Evgenevna Maiorova

Abstract


The problem of computing the greatest common divisor GCD of natural numbers is one of the most common problems that is solved in modern computational mathematics and its applications. At the moment, many algorithms are known to solve this problem, but every day the requirements for the effectiveness of such algorithms become more stringent. As a result, there is a need to create new algorithms that are more efficient in time and number of the operations performed. Besides, they must allow the possibility of their transformation into modern programming languages while maintaining the efficiency of the algorithm.

This article presents an analysis of the realization features and the results of testing the speed of three GCD computation algorithms: the classical Euclidean algorithm, the Sorenson k-ary algorithm, and the approximating k-ary algorithm developed by the second of the authors in MicrosoftVisualStudio in C #. Qualitative and quantitative data on the effectiveness of these algorithms in terms of time and number of the steps within the main cycle are have been obtained.

The concluding part of the article contains the analysis of the results obtained, their representation in the diagrams, and gives the recommendations on the choice of the parameters of the methods.


Keywords


s: GCD of natural numbers, Euclidian GCD algorithm, k-ary GCD algorithm, approximating k-ary algorithm

Full Text:

PDF

References


DixonJ. ThenumberofstepsintheEuclidean algorithm // Journal of Number Theory. vol. 2, pp. 414–422, 1970.

Hardy G. H., Wright E. M. An introduction to the theory of numbers, 4th ed. (Oxford, Calrendon Press), 1959.

Ishmukhametov S.T. An approximating k-ary GCD Algorithm, Lobachevskii Journal of Mathematics, vol. 37, Issue 6, pp. 723-728, 2016.

Ishmukhametov S.T. Factorization methods of natural numbers // Kazan Federal University, Kazan (rus), 2011.

Ishmukhametov S., Mubarakov B., Mochalov A. Euclidian algorithm for recurrent sequences, Applied Discrete Mathematics and Heuristic Algorithms // International Scientific Journal. – Samara, vol. 1(2). – pp. 57–62, 2015.

Sorenson J. An analysis of the generalized binary GCD algorithm / J. Sorenson, A. van derPoorten, A. Stein (Eds.), High Primes and Misdemeanors// Lectures in Honour of Hugh Cowie Williams. – Banff, Alberta, Canada. – AMS Math. Review, vol. 41,pp. 254–258, 2004.

Sorenson J. The k-ary GCD algorithm //Computer Sciences Technical Report. – 1990.

Sorenson J. Two fast GCD Algorithms // Journal of Algorithms, vol. 16(1), pp 110–144, 1994.

Weber K. The accelerated integer GCD algorithm, ACM Trans.Math.Software, 21, №1, pp. 1–12, 1995.

Jebelean T. A Generalization of the Binary GCD Algorithm, Proc. OfIntern.Symp.onSymb.and Algebra, Comp.(ISSAC’93), pp. 111-116, 1993.

Wang X., Pan V. Acceleration of Euclidian Algorithm and rational number reconstruction. Siam J. Comp,vol.32,№2, pp. 548-556, 2003.


Refbacks

  • There are currently no refbacks.




Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Revista Publicando.

Licencia de Creative Commons

 

This Content is available under licencia de Creative Commons Reconocimiento-NoComercial-CompartirIgual 4.0 Internacional.