in reply to Re^3: Algorithm for cancelling common factors between two lists of multiplicands
in thread Algorithm for cancelling common factors between two lists of multiplicands
where N is the smaller argument to Euclid's algorithm. The average is much better:O(GCD) ~= 4.785*log(N) + 0.6723
Avg(GCD) ~= 0.1775*N
The mean is given as
where N is the smaller argument to Euclid's algorithm, and ignoring a subtracted correction term based on the divisors of N.Avg(GCD) ~= 1.9405*log10(N)
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
---|