Regularity of the Euclid Algorithm; application to the analysis of fast GCD Algorithms

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 lg n . A...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:Journal of symbolic computation 2009, Vol.44 (7), p.726-767
Hauptverfasser: Cesaratto, Eda, Clément, Julien, Daireaux, Benoît, Lhote, Loïck, Maume-Deschamps, Véronique, Vallée, Brigitte
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung: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 lg n . A rough estimate of the worst-case complexity of these fast versions provides the bound O ( μ ( 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 Θ ( μ ( n ) log n ) , 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 Ω ( n log n ) , 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.
ISSN:0747-7171
1095-855X
DOI:10.1016/j.jsc.2008.04.018