Regularity of the Euclid Algorithm; application to the analysis of fast GCD Algorithms
; Clément, Julien ; Daireaux, Benoit ; Lhote, Loick ; Maume, Veronique ; Vallée, Brigitte Otros responsables
Fecha
07/2009
Editorial
Academic Press Ltd - Elsevier Science Ltd
Revista
Journal Of Symbolic Computation
Título del libro
Nombre del evento
Fecha del evento
Institución organizadora
ISSN
0747-7171
eISSN
ISBN
Idioma
Inglés
Tipo del evento
Clasificación temática
Palabras clave
Resumen
This paper is an extended complete version of ´´Analysis of fast versions of Euclid Algorithm´´ presented in ANALCO´07. Among the differences here we deal with several Fast multiplication algorithms and we give precise estimates of the constants involved. There exist fast variants of the gcd algorithm which are all based on principles due to Knuth and Schönhage. On inputs of size n, these algorithms use a Divide and Conquer approach, perform FFT multiplications with complexity mu(n) and stop the recursion at a depth slightly smaller than log n. A rough estimate of the worst--case complexity of these fast versions provides the bound O ( mu(n)log n). Even the worst-case estimate is partly based on heuristics and is not actually proven. Here, we provide a precise probabilistic analysis of some of these fast variants, and we prove that their average bit--complexity on random inputs of size n is Theta (mu(n) log n , with a precise remainder term, and estimates of the constant in the Theta--term. Our analysis applies to any cases when the cost mu(n) is of order Omega(n log n), and is valid both for the FFT multiplication algorithm of Schönhage--Stassen, but also for the new algorithm introduced quite recently by Fürer . We view such a fast algorithm as a sequence of what we call interrupted algorithms, and we obtain two main results about the (plain) Euclid Algorithm which are of independent interest. We precisely describe the evolution of the distribution of numbers during the execution of the (plain) Euclid Algorithm, and we exhibit an (unexpected) density psi which plays a central rôle since it always appear at the beginning of each recursive call. This strong regularity phenomenon proves that the interrupted algorithms are locally ``similar´´ to the total algorithm. This finally leads to the precise evaluation of the average bit--complexity of these fast algorithms. This work uses various tools, and is based on a precise study of generalised transfer operators related to the dynamical system underlying the Euclid Algorithm.nhage. On inputs of size n, these algorithms use a Divide and Conquer approach, perform FFT multiplications with complexity mu(n) and stop the recursion at a depth slightly smaller than log n. A rough estimate of the worst--case complexity of these fast versions provides the bound O ( mu(n)log n). Even the worst-case estimate is partly based on heuristics and is not actually proven. Here, we provide a precise probabilistic analysis of some of these fast variants, and we prove that their average bit--complexity on random inputs of size n is Theta (mu(n) log n , with a precise remainder term, and estimates of the constant in the Theta--term. Our analysis applies to any cases when the cost mu(n) is of order Omega(n log n), and is valid both for the FFT multiplication algorithm of Schönhage--Stassen, but also for the new algorithm introduced quite recently by Fürer . We view such a fast algorithm as a sequence of what we call interrupted algorithms, and we obtain two main results about the (plain) Euclid Algorithm which are of independent interest. We precisely describe the evolution of the distribution of numbers during the execution of the (plain) Euclid Algorithm, and we exhibit an (unexpected) density psi which plays a central rôle since it always appear at the beginning of each recursive call. This strong regularity phenomenon proves that the interrupted algorithms are locally ``similar´´ to the total algorithm. This finally leads to the precise evaluation of the average bit--complexity of these fast algorithms. This work uses various tools, and is based on a precise study of generalised transfer operators related to the dynamical system underlying the Euclid Algorithm.
Colecciones
Aprobación
Revisión
Complementado por
Referenciado por
Licencia Creative Commons
Excepto donde se indique lo contrario, la licencia de este ítem se describe como by-nc-sa
