Content deleted Content added
m Fixed/removed {{expand}} + WP:CHECKWIKI error fixes + general fixes, removed: {{Expand|date=June 2009}} using AWB (7552) |
m WP:CHECKWIKI error 61 fixes + general fixes, References after punctuation per WP:REFPUNC and WP:PAIC using AWB (7510) |
||
Line 2:
== Algorithm ==
Lehmer noted that that most of the [[quotient]]s from each step of the division part of the standard algorithm are small. (For example, [[Donald Knuth|Knuth]] observed that the quotients 1, 2, and 3 comprise 67.7% of all quotients.<ref name="knuth2">[[Donald Knuth|Knuth]], ''[[The Art of Computer Programming]] vol 2 "Seminumerical algorithms"'', chapter 4.5.3 Theorem E.</ref>
Say we want to obtain the GCD of the two integers ''a'' and ''b''. Let ''a'' ≥ ''b''.
Line 37:
== References ==
* Kapil Paranjape, [http://www.imsc.res.in/~kapil/crypto/notes/node11.html Lehmer's Algorithm]
{{DEFAULTSORT:Lehmer's Gcd Algorithm}}
|