AlgorithmsNumerics & probabilityEdit on GitHubEdit history
Binary GCD Algorithm
Stein's algorithm1967
An algorithm that computes the greatest common divisor of two integers using only shifts (division by 2), subtraction and comparison instead of division. It strips common factors of two and then repeatedly subtracts odd values.
Origin
J. Stein (1967). Computational problems associated with Racah algebra. Journal of Computational Physics 1(3).doi:10.1016/0021-9991(67)90047-2 — checked against Crossref, 2026-11-08
Lineage
Algorithms 2 · Relations 1
Parent algorithms
Where it came from
Euclidean Algorithm300 BCE
Structural analysisA structural variant that computes the same GCD as the Euclidean algorithm using only shifts and subtraction instead of division — doi:10.1016/0021-9991(67)90047-2
Notable implementations
No implementations registered yet. Try a repo scan to find some. Repo scan
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…