Euclid's Algorithm Is A Technique For Finding The Greatest Common
Euclid's Algorithm Is A Technique For Finding The Greatest Common
Euclids Algorithm
Proposition
a = q1 b + r1
0 r1 < b
( 0 deg ( r1 ) deg ( b ) )
One has ( a , b ) = ( b , r1 )
where ( a , b ) denotes greatest common divisor.
b = q2 r1 + r2
M
rn- 2 = qn rn- 1 + rn
rn- 1 = qn+ 1 rn
( b , r1 ) = ( r1 , r2 )
( a , b ) = rn
Example:
Suppose
a = 186, b = 66 ,
then
186 = 66 2
66 = 54 1
54 = 12 4
12 = 6 2
+ 54
+ 12
+6
+0
( a( x ) , b( x ) ) is
a( x ) = q1 ( x ) b( x ) + r1 ( x )
b( x ) = q2 ( x ) r1 ( x ) + r2 ( x )
r1 ( x ) = q3 ( x ) r2 ( x ) + r3 ( x )
M
rn- 1 ( x ) = qn+ 1 ( x ) rn ( x )
where the iterative process stops when a remainder of zero is
obtained.
Then the greatest common divisor of a( x ) and b( x ) is
rn ( x ) = GCD( a( x ) , b( x ) )
Example:
a( x ) = x 3 + 1
b( x ) = x 2 + 1
GCD of a( x ) and b( x ) is x + 1
x 3 + 1 = ( x 2 + 1) x + ( x + 1)
x 2 + 1 = ( x + 1) x
Primitive Elements
Consider the Galois field GF( 2 m ) generated by the primitive
2
m -1
m
polynomial p( x ) = p0 + p1 x + p2 x + L + pm 1 x + x
Definition:
The element (a root of
p( x ) ) whose powers
Example:
Minimum Polynomial
(1) Consider the Galois field GF( 2 m ) generated by a primitive
polynomial p( x ) of degree m. Let
be a non-zero
element of GF( 2 m )
Consider the powers
2
, 2 , 2 , L , 2 , L
If e is the smallest nonnegative integer for which
e
2 =
Then the integer e is called the exponent of .
( x ) = ( x + )( x + 2 )L ( x + 2 )
= a0 + a 1 x + a 2 x 2 + L + a e - 1 x e - 1 + x e
is a polynomial of e degree.
We can see that ( x ) is binary and irreducible over
GF( 2 ). ( x ) is called the minimal polynomial of the
element .