previous up next contents
Previous: 5 Padé approximants Up: From Euclid to Padé Next: 7 Concluding remarks   Contents

Subsections

6 Accelerations

6.1 Describing some experiments

In paragraph 6.3, a divide and conquer method will be described to accelerate all these different flavours of the Bezout algorithm. But, before that, a precise meaning has to be given to the speed we want accelerate. We begin this discussion by describing some numerical experiments.

These experiments are starting from a lot of maths "random numbers" maths chosen in the following way : integers maths were picked at (uniform) random in the range maths and maths has been assigned to maths or maths to enforce maths. We have ran the confrac algorithm, starting successively from these maths and some statistics have been collected.

First of all, the length of all these runs were not really different, ranging from maths to maths and inducing a total of maths elementary steps.

Figure 9 describe the experimental frequences (circles) of all the encountered maths, tallyied into maths intervals of equal length. The regular curve is maths. The maths factor is obvious to normalize the distribution. The shape factor will be discussed in next paragraph.

maths (9)

FIG.  9: Distribution of the successive maths.
maths

Figure 10 describe the repartition of all the encountered maths. The left plot describe the experimental frequence (circles) of those maths in maths and the right one those maths in maths (the scale of ordinates has been magnified maths in the second graph). There were maths of maths outside maths, the greatest being maths. The regular curve is:

maths (10)

and is a straigthforward consequence of the (supposed valid) Eq. 10.

FIG.  10: Distribution of the successive maths.
maths maths

From Eq. 10, we obtain that maths looks like maths i.e. great values of maths are so frequent that the arithmetical mean of the maths's tends to infinity (the experimental mean is maths). On the other hand, maths looks like maths, leading to the Khinchin's rule :

maths (11)

This rule is checked Figure 12, where we have plotted the max, the min and the arithmetical mean of all the obtained values for each maths.

FIG.  11: Checking the Khinchin's formula.
maths

To conclude this experimental part, Eq. 9 (if valid... ) implies that maths. Denoting maths the denominator of the mathsth convergent of maths, we obtain the Heilbronn-Levy's rule :

maths (12)

This rule is checked Figure 12, where we have plotted the max, the min and the arithmetical mean of all the obtained values for each maths, Moreover, the (arithmetical) mean of all the maths obtained maths was maths.

FIG.  12: Checking the Heilbronn-Levy's formula.
maths

6.2 Almost but not everywhere

It's time now to discuss the validity of formulae 9, 10, 11 and 12. First thing to say, these formulae are not appliable to any of the previously described expansions ! When maths is rational, the process stops at some maths where maths. When maths is a quadratic number, the process is periodic, leading to special limiting values (for example, maths leads to maths, maths, maths and maths). When maths is related to numbers like maths, the maths's are forming an arithmetic sequence implying maths and maths too.

But these formulae nevertheless describe what happens when you randomly chose the starting point maths, i.e. for almost every number maths in maths. Precise proofs can be found in litterature, and only the mainlines are given now.

Defining the Gauss operator as:

maths (13)

we obviously have (for any non rational maths, i.e. for almost every maths) maths. The key point is that, for almost every maths in maths, the maths are Monte-Carlo distributed, with density given by Eq. 9 i.e. maths. In other words, for any fixed maths such that maths, we have :

maths

As an immediate by-product, the associated measure remains invariant under the action of maths. This can also be checked by direct computation :

maths

But the main implication is that, for almost all maths, the process maths is ergodic. Therefore, the mean over a sequence maths, taken as the limit of the means over the partial paths starting from almost any given maths, is equal to the mean taken over all the maths and we have, for any regular function maths :

maths

leading to Khinchin's and Levy's constants.


6.3 Divide and conquer

Therefore, the number of steps required for the Bezout algorithm is, for almost all maths, equivalent to a linear function of the size (in binary digits) of the last denominator obtained. Thus the whole algorithm has, at first sight, a maths complexity at the bit level. But a maths complexity can be reached when using fast arithmetic, providing multiplications at cost maths, together with a divide and conquer strategy that will reduce the number of steps to maths.


previous up next contents
Previous: 5 Padé approximants Up: From Euclid to Padé Next: 7 Concluding remarks   Contents


douillet@ensait.fr
2005-02-09