Binary GCD algorithm
Algorithm that computes the greatest common divisor of two integers using only arithmetic shifts, comparisons, and subtraction
The binary GCD algorithm, also known as Stein's algorithm or the binary Euclidean algorithm, is an algorithm that computes the greatest common divisor (GCD) of two nonnegative integers. Stein's algorithm uses simpler arithmetic operations than the conventional Euclidean algorithm; it replaces division with arithmetic shifts, comparisons, and subtraction.
Nº Q622328 ★
Common · Knowledge
Binary GCD algorithm
Algorithm that computes the greatest common divisor of two integers using only arithmetic shifts, comparisons, and subtraction
The binary GCD algorithm, also known as Stein's algorithm or the binary Euclidean algorithm, is an algorithm that computes the greatest common divisor (GCD) of two nonnegative integers. Stein's algorithm uses simpler arithmetic operations than the conventional Euclidean algorithm; it replaces division with arithmetic shifts, comparisons, and subtraction.
From Wikipedia
The binary GCD algorithm, also known as Stein's algorithm or the binary Euclidean algorithm, is an algorithm that computes the greatest common divisor (GCD) of two nonnegative integers. Stein's algorithm uses simpler arithmetic operations than the conventional Euclidean algorithm; it replaces division with arithmetic shifts, comparisons, and subtraction. Although the algorithm in its contemporary form was first published by the physicist and programmer Josef Stein in 1967, it was known by the 2nd century BCE, in ancient China.
Text: Wikipédia, CC BY-SA 4.0. · Image: Cmglee (CC BY-SA 3.0) ·
Related cards
-
Geohash
Similarity-hashing function invented in 2008, specific for geographic coordinates compressing or for location clustering
Nº Q3101207 ★★
Not listed
-
Range coding
Entropy coding method defined by G. Nigel N. Martin in a 1979 paper, which effectively rediscovered the FIFO arithmetic code first introduced by Richard Clark Pasco in 1976
Nº Q818947 ★
Not listed
-
E
Exponentiation by squaring
Algorithm
Nº Q864127 ★★
Not listed
-
H
Horner's method
Algorithm for polynomial evaluation
Nº Q944658 ★★
Not listed
-
A-law algorithm
Algorithm
Nº Q278059 ★
Not listed
-
F
Fibonacci coding
Universal code
Nº Q2633 ★★
Not listed
-
B
Bellard's formula
Mathematical formula
Nº Q1108664 ★
Not listed
-
Kitagawa–Oaxaca–Blinder decomposition
Statistical method
Nº Q22907419 ★
Not listed
-
Extended Euclidean algorithm
Algorithm for computing the coefficients of Bézout's Identity
Nº Q1362750 ★★
Not listed
-
Bi-quinary coded decimal
Numeral encoding scheme
Nº Q864961 ★
Not listed
-
H
Held–Karp algorithm
Solution of the traveling salesman problem
Nº Q20203442 ★
Not listed
-
B
Buddy memory allocation
Memory allocation algorithm
Nº Q1001112 ★
Not listed
-
B
Broyden–Fletcher–Goldfarb–Shanno algorithm
Optimization method
Nº Q2877013 ★
Not listed
-
Strassen algorithm
First subcubic matrix multiplication algorithm
Nº Q728507 ★★
Not listed
-
L
Lattice multiplication
Multiplication algorithm
Nº Q3516846 ★
Not listed
-
G
Galois/Counter Mode
Authenticated encryption mode for block ciphers
Nº Q5519271 ★★★
Not listed
-
B
Baker's theorem
Lower bound for absolute value of linear combinations of logarithms of algebraic numbers
Nº Q3527009 ★
Not listed
-
Borůvka's algorithm
Algorithm for finding minimum spanning trees by repeatedly finding the shortest edge out of each subtree in a forest and adding all such edges to the forest
Nº Q1468211 ★
Not listed