Regularity of the Euclid Algorithm, Application to the analysis of fast GCD Algorithms

Abstract : 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 μ(n) and stop the recursion at a depth slightly smaller than lgn. A rough estimate of the worst-case complexity of these fast versions provides the bound O(μ(n)logn). 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 Θ(μ(n)logn), with a precise remainder term, and estimates of the constant in the Θ-term. Our analysis applies to any cases when the cost μ(n) is of order Ω(nlogn), and is valid both for the FFT multiplication algorithm of Schönhage-Strassen, but also for the new algorithm introduced quite recently by Fürer [Fürer, M., 2007. Faster integer Multiplication. In: Proceedings of STOC'07. pp. 57-66]. 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 ψ which plays a central rôle since it always appears at the beginning of each recursive call. This strong regularity phenomenon proves that the interrupted algorithms are locally "similar" to the total algorithm. This ultimately 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.
Type de document :
Article dans une revue
Journal of Symbolic Computation, Elsevier, 2009, 44 (7), pp.726. 〈10.1016/j.jsc.2008.04.018〉
Liste complète des métadonnées

Littérature citée [26 références]  Voir  Masquer  Télécharger

https://hal.archives-ouvertes.fr/hal-00504022
Contributeur : Véronique Maume-Deschamps <>
Soumis le : mercredi 12 novembre 2014 - 14:24:22
Dernière modification le : lundi 25 septembre 2017 - 16:08:15
Document(s) archivé(s) le : vendredi 13 février 2015 - 11:05:12

Fichier

RIACL-CESARATTO-2009-2.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

Citation

Eda Cesaratto, Julien Clément, Benoît Daireaux, Loïck Lhote, Véronique Maume-Deschamps, et al.. Regularity of the Euclid Algorithm, Application to the analysis of fast GCD Algorithms. Journal of Symbolic Computation, Elsevier, 2009, 44 (7), pp.726. 〈10.1016/j.jsc.2008.04.018〉. 〈hal-00504022〉

Partager

Métriques

Consultations de la notice

226

Téléchargements de fichiers

47