Extended Euclidean algorithm
Algorithm for computing the coefficients of Bézout's Identity
In arithmetic and computer programming, the extended Euclidean algorithm is an extension to the Euclidean algorithm, and computes, in addition to the greatest common divisor (gcd) of integers a and b, also the coefficients of Bézout's identity, which are integers x and y such that a x + b y = gcd ( a , b ) {\displaystyle ax+by=\gcd(a,b)} ; it is generally denoted as xgcd ( a , b ) {\displaystyle \operatorname {xgcd} (a,b)} . This is a certifying algorithm, because the gcd is the only number that can simultaneously satisfy this equation and di...
Nº Q1362750 ★★
Uncommon · Knowledge
Extended Euclidean algorithm
Algorithm for computing the coefficients of Bézout's Identity
In arithmetic and computer programming, the extended Euclidean algorithm is an extension to the Euclidean algorithm, and computes, in addition to the greatest common divisor (gcd) of integers a and b, also the coefficients of Bézout's identity, which are integers x and y such that a x + b y = gcd ( a , b ) {\displaystyle ax+by=\gcd(a,b)} ; it is generally denoted as xgcd ( a , b ) {\displaystyle \operatorname {xgcd} (a,b)} . This is a certifying algorithm, because the gcd is the only number that can simultaneously satisfy this equation and di...
From Wikipedia
In arithmetic and computer programming, the extended Euclidean algorithm is an extension to the Euclidean algorithm, and computes, in addition to the greatest common divisor (gcd) of integers a and b, also the coefficients of Bézout's identity, which are integers x and y such that a x + b y = gcd ( a , b ) {\displaystyle ax+by=\gcd(a,b)} ; it is generally denoted as xgcd ( a , b ) {\displaystyle \operatorname {xgcd} (a,b)} . This is a certifying algorithm, because the gcd is the only number that can simultaneously satisfy this equation and divide the inputs. It allows one to compute also, with almost no extra cost, the quotients of a and b by their greatest common divisor. Extended Euclidean algorithm also refers to a very similar algorithm for computing the polynomial greatest common divisor and the coefficients of Bézout's identity of two univariate polynomials. The extended Euclidean algorithm is particularly useful when a and b are coprime. With that provision, x is the modular multiplicative inverse of a modulo b, and y is the modular multiplicative inverse of b modulo a. Similarly, the polynomial extended Euclidean algorithm allows one to compute the multiplicative inverse in algebraic field extensions and, in particular in finite fields of non-prime order. It follows that both extended Euclidean algorithms are widely used in cryptography. In particular, the computation of the modular multiplicative inverse is an essential step in the derivation of key-pairs in the RSA public-key encryption method.
Text: Wikipédia, CC BY-SA 4.0. · Image: Terraviper-5 (CC BY 3.0) ·
Related cards
-
Bézout's identity
Formula relating two numbers and their greatest common divisor
Nº Q513028 ★★★
Not listed
-
Euclidean algorithm
Algorithm for computing greatest common divisors
Nº Q230848 ★★★
Not listed
-
E
Elliptic Curve Digital Signature Algorithm
Cryptographic algorithm for digital signatures
Nº Q915079 ★★
Not listed
-
EBCDIC
Computer character encoding
Nº Q627945 ★★
Not listed
-
G
Globally unique identifier
Identifier which is unique and permanent within all of space and time
Nº Q254972 ★★★
Not listed
-
Arithmetic overflow
Condition in computer arithmetics when a calculation yields a result that is greater in magnitude than that which a given storage location can represent
Nº Q669163 ★★
Not listed