Slides On Algebra of Coding Theory
Slides On Algebra of Coding Theory
B. Sainath
sainath.bitragunta@pilani.bits-pilani.ac.in
September 7, 2019
2 Groups
3 Rings
4 Fields
5 Vector Spaces
6 Linear Algebra
Algebraic theory
provides tools necessary to design encoders & decoders
classifies many arithmetic systems
Binary field
Finite field (Galois Field, GF(2))
Binary field with only two elements
Let symbols 0 and 1 denote the two elements
Operations of addition (XOR) & multiplication (AND) (details in class)
Example (in class)
Hexadecimal field is another popular finite field
contains 16 elements (0, 1, . . . , 9, A, B, C, D, E, F )
Exercise: Prepare addition & multiplication table
GF (q):
Algebraic theory
provides tools necessary to design encoders & decoders
classifies many arithmetic systems
Binary field
Finite field (Galois Field, GF(2))
Binary field with only two elements
Let symbols 0 and 1 denote the two elements
Operations of addition (XOR) & multiplication (AND) (details in class)
Example (in class)
Hexadecimal field is another popular finite field
contains 16 elements (0, 1, . . . , 9, A, B, C, D, E, F )
Exercise: Prepare addition & multiplication table
GF (q): Finite field with q elements
Finite fields applications: linear block codes (e.g., BCH codes &
Reed–Solomon codes), cryptography algorithms
GF(q) construction
Finite fields with q elements can be constructed when, and only when,
q = pm
p is a prime number
m is an arbitrary positive integer
GF(2) is the smallest field
Definition
Let ∗ denote an operation on pairs of elements
A group (G, ∗) is a set together with an operation ∗ on pairs of elements
in the set satisfying four properties
Closure: For every a, b in the set G, c = a ∗ b is in the set
Definition
Let ∗ denote an operation on pairs of elements
A group (G, ∗) is a set together with an operation ∗ on pairs of elements
in the set satisfying four properties
Closure: For every a, b in the set G, c = a ∗ b is in the set
Associativity: For every a, b, c in the set a ∗ (b ∗ c) = (a ∗ b) ∗ c
Definition
Let ∗ denote an operation on pairs of elements
A group (G, ∗) is a set together with an operation ∗ on pairs of elements
in the set satisfying four properties
Closure: For every a, b in the set G, c = a ∗ b is in the set
Associativity: For every a, b, c in the set a ∗ (b ∗ c) = (a ∗ b) ∗ c
Identity: There is unique element e called the identity element such that
a∗e =e∗a=a
Definition
Let ∗ denote an operation on pairs of elements
A group (G, ∗) is a set together with an operation ∗ on pairs of elements
in the set satisfying four properties
Closure: For every a, b in the set G, c = a ∗ b is in the set
Associativity: For every a, b, c in the set a ∗ (b ∗ c) = (a ∗ b) ∗ c
Identity: There is unique element e called the identity element such that
a∗e =e∗a=a
Inverse: If a is in the set, then there is some element b in the set called
inverse of a such that a ∗ b = b ∗ a = e
Definition
Let ∗ denote an operation on pairs of elements
A group (G, ∗) is a set together with an operation ∗ on pairs of elements
in the set satisfying four properties
Closure: For every a, b in the set G, c = a ∗ b is in the set
Associativity: For every a, b, c in the set a ∗ (b ∗ c) = (a ∗ b) ∗ c
Identity: There is unique element e called the identity element such that
a∗e =e∗a=a
Inverse: If a is in the set, then there is some element b in the set called
inverse of a such that a ∗ b = b ∗ a = e
Definition
Let ∗ denote an operation on pairs of elements
A group (G, ∗) is a set together with an operation ∗ on pairs of elements
in the set satisfying four properties
Closure: For every a, b in the set G, c = a ∗ b is in the set
Associativity: For every a, b, c in the set a ∗ (b ∗ c) = (a ∗ b) ∗ c
Identity: There is unique element e called the identity element such that
a∗e =e∗a=a
Inverse: If a is in the set, then there is some element b in the set called
inverse of a such that a ∗ b = b ∗ a = e
Definition
Let ∗ denote an operation on pairs of elements
A group (G, ∗) is a set together with an operation ∗ on pairs of elements
in the set satisfying four properties
Closure: For every a, b in the set G, c = a ∗ b is in the set
Associativity: For every a, b, c in the set a ∗ (b ∗ c) = (a ∗ b) ∗ c
Identity: There is unique element e called the identity element such that
a∗e =e∗a=a
Inverse: If a is in the set, then there is some element b in the set called
inverse of a such that a ∗ b = b ∗ a = e
Simple Examples
Set of integers under addition
Set of positive rationals under multiplication
Set of 2 × 2 real-valued matrices under matrix addition
Set {0, 1} under modulo−2 addition
Figure: The six 6th complex roots of unity form a cyclic group under multiplication.
Source: Wiki
modulo n
For a positive integer n, two numbers a and b are said to be congruent
modulo n, if their difference a − b is an integer multiple of n
i.e. if there is an integer k such that a − b = k × n
e.g., 38 ≡ 14 (mod 12)
modulo n
For a positive integer n, two numbers a and b are said to be congruent
modulo n, if their difference a − b is an integer multiple of n
i.e. if there is an integer k such that a − b = k × n
e.g., 38 ≡ 14 (mod 12)
Example:
Let G is the group, integers mod 8 under addition i.e.
Example:
Let G is the group, integers mod 8 under addition i.e.
G = {0, 1, 2, 3, 4, 5, 6, 7} ⇐ finite
Subgroup H = {0, 4}
Clearly, H ⊂ G
More details in class
Theorem
Every element of set G appears once and only once in a coset
decomposition of G
Proof by contradiction
Corollary
If H is a subgroup of G, then the number of elements in H divides the
number of elements in G
(Order of H) × (Number of cosets of G w.r.to H) = (order of G)
Definition
A ring R is a set with two operations defined: addition (+) and
multiplication and the following axioms are satisfied:
(R, +) is an abelian group
Closure: For any a, b in R, the product ab is in R
Associativity: a(bc) = (ab)c
Distributive property: a(b + c) = ab + ac, (b + c)a = ba + ca
Multiplication is commutative =⇒
Definition
A ring R is a set with two operations defined: addition (+) and
multiplication and the following axioms are satisfied:
(R, +) is an abelian group
Closure: For any a, b in R, the product ab is in R
Associativity: a(bc) = (ab)c
Distributive property: a(b + c) = ab + ac, (b + c)a = ba + ca
Theorem
For any a, b in a ring R,
a0 = 0a = 0 ⇐ identity
a(-b) = (-a)b = -(ab)
Theorem
For any a, b in a ring R,
a0 = 0a = 0 ⇐ identity
a(-b) = (-a)b = -(ab)
1a = a1 = a, for all a in R
Inverse
Given an element a, there may exist an element b with ab = 1 ⇒ right inverse b
Theorem
For any a, b in a ring R,
a0 = 0a = 0 ⇐ identity
a(-b) = (-a)b = -(ab)
1a = a1 = a, for all a in R
Inverse
Given an element a, there may exist an element b with ab = 1 ⇒ right inverse b
If there is an element c with ca = 1 ⇒ left inverse c
Theorem
In a ring with identity
The identity is unique
If an element a has both a right inverse b and a left inverse c, then b = c
The inverse is unique, which is a−1
Theorem
Let an element that has inverse is called a unit
Under ring multiplication, the set of units of a ring forms a group
If c = ab and c is a unit, then a has a right inverse and b has left inverse
Definition
A field F is a set that has two operations defined on it; addition and
multiplication such that the following axioms are satisfied
The set is an abelian group under addition
The field is closed under multiplication, and set of nonzero elements is an
abelian group under multiplication
The distributive property
(a + b)c = ac + bc
Examples
Definition
A field F is a set that has two operations defined on it; addition and
multiplication such that the following axioms are satisfied
The set is an abelian group under addition
The field is closed under multiplication, and set of nonzero elements is an
abelian group under multiplication
The distributive property
(a + b)c = ac + bc
Examples
Q: the set of rational numbers
R: the set of real numbers
C: the set of complex numbers
These fields have infinite number of elements
B. Sainath (BITS, PILANI) Algebra & Linear Algebra September 7, 2019 16 / 30
Galois field (GF)
Subfield
Let F be a field. A subset of F is called a subfield, if it is a field under the
inherited addition and multiplication
The original field F is then called an extension field of the subfield
Theorem
In any field, if ab = ac and a 6= 0, then b = c
Note: Some rings may satisfy the cancellation property, but these rings
are not fields
Theorem
In any field, if ab = ac and a 6= 0, then b = c
Note: Some rings may satisfy the cancellation property, but these rings
are not fields
E.g.,
Theorem
In any field, if ab = ac and a 6= 0, then b = c
Note: Some rings may satisfy the cancellation property, but these rings
are not fields
E.g., the ring of integers, note that a−1 does not exist
Definition
An integral domain is a commutative ring in which b = c whenever
ab = ac and a is nonzero
Familiar example
Familiar example
three-dimensional (3−D) Euclidean space
can be extended to an n− dimensional vector space over real numbers (Rn )
Vector spaces defined abstractly with respect to any field
Definition
A vector space (V , +, F , .) is a set V of vectors, a field F of scalars, and
two operations vector addition (+) and scalar multiplication (.) such that
(V , +) is an abelian group
c.v ∈ V for all c ∈ F & v ∈ V ⇐
Familiar example
three-dimensional (3−D) Euclidean space
can be extended to an n− dimensional vector space over real numbers (Rn )
Vector spaces defined abstractly with respect to any field
Definition
A vector space (V , +, F , .) is a set V of vectors, a field F of scalars, and
two operations vector addition (+) and scalar multiplication (.) such that
(V , +) is an abelian group
c.v ∈ V for all c ∈ F & v ∈ V ⇐ Closure
c1 (c2 v) = (c1 c2 )v, for all c1 , c2 ∈ F & v ∈ V ⇐
Familiar example
three-dimensional (3−D) Euclidean space
can be extended to an n− dimensional vector space over real numbers (Rn )
Vector spaces defined abstractly with respect to any field
Definition
A vector space (V , +, F , .) is a set V of vectors, a field F of scalars, and
two operations vector addition (+) and scalar multiplication (.) such that
(V , +) is an abelian group
c.v ∈ V for all c ∈ F & v ∈ V ⇐ Closure
c1 (c2 v) = (c1 c2 )v, for all c1 , c2 ∈ F & v ∈ V ⇐ Associativity
(c1 + c2 )v = c1 v + c2 v, for all c1 , c2 ∈ F & v ∈ V ⇐
Familiar example
three-dimensional (3−D) Euclidean space
can be extended to an n− dimensional vector space over real numbers (Rn )
Vector spaces defined abstractly with respect to any field
Definition
A vector space (V , +, F , .) is a set V of vectors, a field F of scalars, and
two operations vector addition (+) and scalar multiplication (.) such that
(V , +) is an abelian group
c.v ∈ V for all c ∈ F & v ∈ V ⇐ Closure
c1 (c2 v) = (c1 c2 )v, for all c1 , c2 ∈ F & v ∈ V ⇐ Associativity
(c1 + c2 )v = c1 v + c2 v, for all c1 , c2 ∈ F & v ∈ V ⇐ Distributive property
1.v = v for all v ∈ V ( =⇒ 1 is the multiplication identity in F )
(Rn , +, R, .)
(C, +, R, .)
(Rn , +, R, .)
(C, +, R, .) ≡ (R2 , +, R, .)
(Rm×n , +, R, .)
Set of m × n matrices over reals
Let V be the set of polynomials in x with coefficients in GF (q) and take
F = GF (q)
In this space, vectors are polynomials
Definitions
In a vector space V , a sum of the form
u = b1 v1 + b2 v2 + . . . + bn vn ,
Definitions
A set of vectors {v1 , v2 , . . . , vn } is called linearly dependent (LD) if there
is a set of scalars {b1 , b2 , . . . , bn }, not all zero, such that
b1 v1 + b2 v2 + . . . + bn vn = 0.
Definitions
A set of vectors is said to span a vector space if every vector in the space
equals at least one linear combination of the vectors in the set
A vector that is spanned by a finite set of vectors is called a
finite dimensional vector space
Theorem
If a vector space V is spanned by a finite set of m vectors
A = {x1 , x2 , . . . , xm } and V contains a set of n LI vectors
B = {u1 , u2 , . . . , un }, then m ≥ n.
Theorem
Two LI sets of vectors that span the same finite-dimensional vector space
have the same number of vectors
Theorem
In a n− dimensional vector space V , any set of n LI vectors is a basis for
V
Theorem
In any vector space V , the set of all linear combinations of a set of
vectors {v1 , v2 , . . . , vn } is a subspace of V
Proof in class
Theorem
If W , a vector space of a finite-dimensional vector space V , has the same
dimension as V , then W = V
Definition of n− tuple
Given a field F , the quantity (b1 , b2 , . . . , bn ), composed of field elements
is called n−tuple of elements from the field F
under the operations of componentwise addition and componentwise scalar
multiplication, the set of n− tuples of elements from a field F is a
Definition of n− tuple
Given a field F , the quantity (b1 , b2 , . . . , bn ), composed of field elements
is called n−tuple of elements from the field F
under the operations of componentwise addition and componentwise scalar
multiplication, the set of n− tuples of elements from a field F is a vector
space, denoted by F n
u = (a1 , a2 , . . . , an ), v = (b1 , b2 , . . . , bn )
is
u = (a1 , a2 , . . . , an ), v = (b1 , b2 , . . . , bn )
is a scalar defined as
u.v = a1 b1 + a2 b2 + . . . + an bn )
If the inner product (or dot product) of two vectors is zero, they are said to
be
u = (a1 , a2 , . . . , an ), v = (b1 , b2 , . . . , bn )
is a scalar defined as
u.v = a1 b1 + a2 b2 + . . . + an bn )
If the inner product (or dot product) of two vectors is zero, they are said to
be orthogonal
Theorem
Let V be the vector space of n−tuples over a field F , and let W be a
subspace. The set of vectors orthogonal to W is itself a subspace