RUS  ENG
Full version
JOURNALS // Uchenye Zapiski Kazanskogo Universiteta. Seriya Fiziko-Matematicheskie Nauki // Archive

Uchenye Zapiski Kazanskogo Universiteta. Seriya Fiziko-Matematicheskie Nauki, 2019 Volume 161, Book 1, Pages 110–118 (Mi uzku1505)

This article is cited in 2 papers

On acceleration of the $k$-ary GCD algorithm

I. Amer, S. T. Ishmukhametov

Kazan Federal University, Kazan, 420008 Russia

Abstract: In this paper, methods of acceleration of GCD algorithms for natural numbers based on the $k$-ary GCD algorithm have been studied. The $k$-ary algorithm was elaborated by J. Sorenson in 1990. Its main idea is to find for given numbers $A$, $B$ and a parameter $k$, co-prime to both $A$ and $B$, integers $x$ and $y$ satisfying the equation $Ax+By\equiv 0 \bmod k.$ Then, integer $C=(Ax+By)/k$ takes a value less than $A$. At the next iteration, a new pair $(B, C)$ is formed. The $k$-ary GCD algorithm ensures a significant diminishing of the number of iterations against the classical Euclidian scheme, but the common productivity of the $k$-ary algorithm is less than the Euclidian method.
We have suggested a method of acceleration for the $k$-ary algorithm based on application of preliminary calculated tables of parameters like as inverse by module $k$. We have shown that the $k$-ary GCD algorithm overcomes the classical Euclidian algorithm at a sufficiently large $k$ when such tables are used.

Keywords: greatest common divisor for natural numbers, Euclidian GCD algorithm, binary GCD algorithm, $k$-ary GCD algorithm.

UDC: 519.688

Received: 15.06.2018

DOI: 10.26907/2541-7746.2019.1.110-118



Bibliographic databases:


© Steklov Math. Inst. of RAS, 2024