Hi Nicolas,<br>&nbsp;thank you for the answer!<br>&nbsp;We&#39;ll take a look.<br><br>&nbsp;Bye,<br>&nbsp;Hernan.<br><br><div><span class="gmail_quote">On 4/20/07, <b class="gmail_sendername">nicolas cellier</b> &lt;<a href="mailto:ncellier@ifrance.com">
ncellier@ifrance.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Hernan,<br><br>Lehmer is faster than Euclid algorithm only for large integers.
<br>According to papers for (u gcd: v) you can expect a (n log: 2)<br>improvement factor where n is the number of bits (u abs highBit min: v<br>abs highBit).<br><br>For huge integers for which FFT product algorithm is efficient, you can
<br>even get better, but at the cost of algorithm complexity.<br><br>However, if you look at squeak Integer&gt;&gt;#gcd: you will find that it is<br>not the naive Euclid algorithm, but rather some form of Lehmer&#39;s, so
<br>don&#39;t expect much gain (unless you connect gnuMP library).<br><br>Nicolas<br><br>Hernan Wilkinson a écrit :<br>&gt; Sorry... I pressed the wrong button...<br>&gt; I wanted to ask for faster implementations of the GCD algorithm than the
<br>&gt; Euclid&#39;s one.<br>&gt; We found on the web that the Lehmer&#39;s and the Binary GCD are faster...<br>&gt; has anyone experience on that? are they really faster? has anyone have a<br>&gt; implementation in Smalltalk? (or similar language like C++ :-)&nbsp;&nbsp;)
<br>&gt;<br>&gt; Thanks is advance and sorry to bother you people with this.<br>&gt; Hernan.<br>&gt;<br>&gt; On 4/20/07, *Hernan Wilkinson* &lt; <a href="mailto:hernan.wilkinson@gmail.com">hernan.wilkinson@gmail.com</a><br>
&gt; &lt;mailto:<a href="mailto:hernan.wilkinson@gmail.com">hernan.wilkinson@gmail.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;th<br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt;<br><br><br></blockquote></div><br>