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
-
D
Dhrystone
Computer performance test
Nº Q1207761 ★
Not listed
-
Bellman equation
Necessary condition for optimality associated with dynamic programming
Nº Q1430750 ★★
Not listed
-
S
Sturges's rule
Method to decide the number of bins
Nº Q125768330 ★★
Not listed
-
Dynamic programming
Problem optimization method that simplifies a complicated problem by decomposing it into simpler subproblems recursively
Nº Q380679 ★★★
Not listed
-
FEAL
Block cipher
Nº Q1388053 ★
Not listed
-
Otsu's method
Automatic image thresholding method
Nº Q2444417 ★★
Not listed
-
Dichotomic search
Type of search algorithm
Nº Q5272532 ★★★
Not listed
-
Conjugate gradient method
Method to compute systems of linear equations whose matrix is symmetric positive-definite
Nº Q1191895 ★★
Not listed
-
F
Frank–Wolfe algorithm
Optimization algorithm
Nº Q2020318 ★
Not listed
-
Bernoulli trial
Any experiment with two possible random outcomes
Nº Q1077800 ★
Not listed
-
A
Ancient Egyptian multiplication
Multiplication algorithm
Nº Q1346420 ★
Not listed
-
L
Lempel–Ziv–Welch
Universal lossless data compression algorithm
Nº Q2681 ★★★
Not listed
-
Gzip
File compression program
Nº Q283647 ★★★
Not listed
-
Schönhage–Strassen algorithm
Multiplication algorithm
Nº Q1938391 ★
Not listed
-
S
Subset sum problem
Decision problem in computer science
Nº Q1154420 ★★
Not listed
-
Benford's law
Observation about the frequency distribution of leading digits in many real-life sets of numerical data
Nº Q817168 ★★★
Not listed
-
Z
Zstd
Lossless compression algorithm
Nº Q26737171 ★★
Not listed
-
Euler method
An explicit, first-order method for numerically solving ordinary differential equations
Nº Q868454 ★★★
Not listed