Skip to main content

Binary Euclidean Algorithm

  • Reference work entry
  • 228 Accesses

Synonyms

Binary GCD algorithm; Stein’s algorithm

Related Concepts

Euclidean Algorithm; Modular Inverse Computation

Definition

The binary euclidean algorithm is a technique for computing the greatest common divisor and the euclidean coefficients of two nonnegative integers.

Background

The principles behind this algorithm were first published by R. Silver and J. Tersian, and independently by J. Stein [1]. Knuth claims [2] that the same algorithm may have been known in ancient China based on it’s appearance in verbal form in the first century A.D. text Nine Chapters on Arithmetic by Chiu Chang Suan Shu.

Theory

The binary GCD algorithm is based on the following observations on two arbitrary positive integers u and v:

  1. If u and v are both even, then \(\gcd (u,v) = 2\gcd (u/2,v/2)\);

  2. If u is even and v is odd, then \(\gcd (u,v) =\gcd (u/2,v)\);

  3. Otherwise both are odd, and \(\gcd (u,v) =\gcd (\vert u - v\vert /2,v)\).

The three conditions cover all possible cases for u and v. The Binary...

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   799.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD   949.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Recommended Reading

  1. Stein J (1967) Computational problems associated with racah algebra. J Comput Phys 1:397–405

    Article  MATH  Google Scholar 

  2. Knuth DE (1997) The art of computer programming, vol 2: Seminumerical algorithms, 3rd edn. Addison-Wesley Longman Publishing Co., Inc., Reading, Massachusetts

    Google Scholar 

  3. Menezes AJ, van Oorschot PC, Vanstone SA (1997) Handbook of applied cryptography. CRC Press, Boca Raton, Florida

    MATH  Google Scholar 

  4. Brent RP (1976) Analysis of the binary Euclidean algorithm. In: Traub JF (ed) Algorithms and complexity. Academic Press, New York, pp 321–355

    Google Scholar 

  5. Bach E, Shallit, J (1996) Algorithmic number theory, vol I: Efficient algorithms. MIT Press, Cambridge, Massachusetts

    MATH  Google Scholar 

  6. Jebelean T (1993) Comparing several GCD algorithms. In: 11th IEEE Symposium on computer arithmetic, Windsor, Ontario, Canada

    Google Scholar 

  7. Jebelean T (1993) A generalization of the binary gcd algorithm. In: Proceedings of the 1993 international symposium on symbolic and algebraic computation, ACM Press, Kiev, Ukraine, pp 111–116

    Google Scholar 

  8. Lehmer, DH (1938) Euclid’s algorithm for large numbers. Am Math Mon 45:227–233

    Article  MathSciNet  Google Scholar 

  9. Sorenson J (1994) Two fast GCD algorithms. J Algorithms 16(1):110–144

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Springer Science+Business Media, LLC

About this entry

Cite this entry

Sunar, B. (2011). Binary Euclidean Algorithm. In: van Tilborg, H.C.A., Jajodia, S. (eds) Encyclopedia of Cryptography and Security. Springer, Boston, MA. https://doi.org/10.1007/978-1-4419-5906-5_25

Download citation

Publish with us

Policies and ethics