Lecture 4
Lecture 4
+ 0 1 2 × 0 1 2
0 0 1 2 0 0 0 0
1 1 2 0 1 0 1 2
2 2 0 1 2 0 2 1
g ( X ) = g o + g1 X + ... + g m X m
Addition of polynomials
f ( X ) + g ( X ) = ( f o + g o ) + ( f1 + g1 ) X + ... + ( f m + g m ) X m
+ f m +1 X m +1 + ... + f n X n
c0 = f0 g0
c1 = f 0 g1 + f1 g 0
c2 = f 0 g 2 + f1 g1 + f 2 g 0
M M M
cn+ m = fn gm
Examples
z Polynomials in GF(2)
f (X ) = 1+ X + X 3
g( X ) = 1 + X 2
z f(X)+g(X) = (1+1) + (1+0)X + (0+1)X2 +
(1+0)X3 = X + X2 + X3
z f(X)g(X) = (1+X+X3) × (1+X2) = 1 + X2 +
X + X3 + X3 +X5 = 1 + X + X2 + (1 + 1)X3
+ X5 = 1 + X + X2 + X5.
Examples
z Polynomials in GF(4)
f ( X ) = 1 + αX + αX 2
g( X ) = 1 + α 2 X
Properties of Polynomials over
GF(q)
Commutative
a(X) + b(X) = b(X) + a(X)
a(X)b(X) = b(X)a(X)
Associative
a(X) + [b(X) + c(X)] = [a(X) + b(X)] + c(X)
a(X)[b(X)c(X)] = [a(X)b(X)]c(X)
Distributive
a(X)[b(X) + c(X)] = a(X)b(X) + a(X)c(X)
Polynomial Division
z When we divide f(X) by g(X), we get two
new polynomials; q(X) is the quotient
and r(X) is the remainder.
z The degree of the remainder, r(X) is
smaller than the degree of g(X).
X2 +1
X 3 +1 X 5 + +X2 +1
X5 + X3
X3 + X2 +1
X3 + +1
X2