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
-
G
Gillespie algorithm
Method for stochastic equation systems
Nº Q5562121 ★
Not listed
-
Video CD
Optical home video format
Nº Q321259 ★★★
Not listed
-
Z
Zeller's congruence
Algorithm to calculate the day of the week in the Gregorian and Julian calendars
Nº Q2140717 ★★★
Not listed
-
Moser's circle problem
Problem in geometry
Nº Q5284051 ★
Not listed
-
C
Consistent Overhead Byte Stuffing
Algorithm for encoding data bytes
Nº Q5163224 ★
Not listed
-
Str8ts
Logic puzzle
Nº Q2352532 ★★
Not listed
-
C
Constant folding
Compiler optimization that replaces expressions with computed results at compile time
Nº Q2342581 ★
Not listed
-
Hadwiger conjecture (graph theory)
Conjecture that all graphs requiring k or more colors contain a k-vertex complete minor
Nº Q1128435 ★
Not listed
-
H
Hidden subgroup problem
In computer science, the task in which one is given a function on a group that is constant on cosets of an unknown subgroup and one tries to reconstruct this subgroup
Nº Q5752087 ★
Not listed
-
Kalman filter
Algorithm that estimates unknowns from a series of measurements over time
Nº Q846780 ★★★★
Not listed
-
Kolmogorov complexity
Measure of algorithmic complexity
Nº Q1456811 ★★★
Not listed
-
V
Verbal arithmetic
A puzzle of reconstructing equations that have been enciphered into words
Nº Q1332573 ★
Not listed
-
C
Conflict-driven clause learning
SAT solving algorithm
Nº Q17008878 ★
Not listed
-
D
Dirichlet's unit theorem
Theorem
Nº Q1227702 ★
Not listed
-
Chinese remainder theorem
Theorem for solving simultaneous congruences
Nº Q193878 ★★★
Not listed
-
Bzip2
Compression software
Nº Q283563 ★
Not listed
-
E
Erdős–Straus conjecture
Unproven statement in number theory
Nº Q1349651 ★★
Not listed
-
C
Count–min sketch
Probabilistic data structure in computer science
Nº Q5176629 ★
Not listed