Module 2 - Notes
Module 2 - Notes
BMAT205L_Module 2 1
Binary Operation
BMAT205L_Module 2 2
BMAT205L_Module 2 3
Groups
BMAT205L_Module 2 4
Semigroup and Monoid
BMAT205L_Module 2 5
BMAT205L_Module 2 6
Order of a Group
Infinite Group
BMAT205L_Module 2 7
Problems
1.
BMAT205L_Module 2 9
Properties of Group
BMAT205L_Module 2 10
Modular Addition
BMAT205L_Module 2 11
BMAT205L_Module 2 12
Modular Multiplication
BMAT205L_Module 2 13
BMAT205L_Module 2 14
Permutation Group
1 2 3 1 2 3
𝑝2 = 𝑝5 =
1 3 2 3 1 2
1 2 3 1 2 3
𝑝3 = 𝑝6 =
2 3 1 3 2 1
BMAT205L_Module 2 15
∗ 𝒑𝟏 𝒑𝟐 𝒑𝟑 𝒑𝟒 𝒑𝟓 𝒑𝟔 1 2 3
𝑝1 =
𝒑𝟏 1 2 3
𝒑𝟐 1 2 3
𝑝2 =
1 3 2
𝒑𝟑
1 2 3
𝑝3 =
𝒑𝟒 2 3 1
𝒑𝟓 1 2 3
𝑝4 =
2 1 3
𝒑𝟔
1 2 3
𝑝5 =
3 1 2
1 2 3
𝑝6 =
3 2 1
BMAT205L_Module 2 16
∗ 𝒑𝟏 𝒑𝟐 𝒑𝟑 𝒑𝟒 𝒑𝟓 𝒑𝟔 1 2 3
𝑝1 =
𝒑𝟏 1 2 3
𝒑𝟐 1 2 3
𝑝2 =
1 3 2
𝒑𝟑
1 2 3
𝑝3 =
𝒑𝟒 2 3 1
𝒑𝟓 1 2 3
𝑝4 =
2 1 3
𝒑𝟔
1 2 3
𝑝5 =
3 1 2
1 2 3
𝑝6 =
3 2 1
BMAT205L_Module 2 17
∗ 𝒑𝟏 𝒑𝟐 𝒑𝟑 𝒑𝟒 𝒑𝟓 𝒑𝟔
𝒑𝟏 𝑝1 𝑝2 𝑝3 𝑝4 𝑝5 𝑝6
𝒑𝟐 𝑝2 𝑝1 𝑝4 𝑝3 𝑝6 𝑝5
𝒑𝟑 𝑝3 𝑝6 𝑝5 𝑝2 𝑝1 𝑝4
𝒑𝟒 𝑝4 𝑝5 𝑝6 𝑝1 𝑝2 𝑝3
𝒑𝟓 𝑝5 𝑝4 𝑝1 𝑝6 𝑝3 𝑝2
𝒑𝟔 𝑝6 𝑝3 𝑝2 𝑝5 𝑝4 𝑝1
BMAT205L_Module 2 18
∗ 𝒑𝟏 𝒑𝟐 𝒑𝟑 𝒑𝟒 𝒑𝟓 𝒑𝟔
𝒑𝟏 𝑝1 𝑝2 𝑝3 𝑝4 𝑝5 𝑝6
𝒑𝟐 𝑝2 𝑝1 𝑝4 𝑝3 𝑝6 𝑝5
𝒑𝟑 𝑝3 𝑝6 𝑝5 𝑝2 𝑝1 𝑝4
𝒑𝟒 𝑝4 𝑝5 𝑝6 𝑝1 𝑝2 𝑝3
𝒑𝟓 𝑝5 𝑝4 𝑝1 𝑝6 𝑝3 𝑝2
𝒑𝟔 𝑝6 𝑝3 𝑝2 𝑝5 𝑝4 𝑝1
BMAT205L_Module 2 19
Problem: If the permutations of the elements of 1,2,3,4,5 are given
1 2 3 4 5 1 2 3 4 5
by 𝛼 = and 𝛽 = , then find
2 3 1 4 5 1 3 2 5 4
𝛼𝛽, 𝛼 2 and solve the equation 𝛼𝑋 = 𝛽.
BMAT205L_Module 2 20
BMAT205L_Module 2 21
BMAT205L_Module 2 22
Homomorphism
BMAT205L_Module 2 23
BMAT205L_Module 2 24
Subgroup
BMAT205L_Module 2 25
BMAT205L_Module 2 26
Lagrange's Theorem
BMAT205L_Module 2 27
Cosets
BMAT205L_Module 2 28
BMAT205L_Module 2 29
BMAT205L_Module 2 30
BMAT205L_Module 2 31
BMAT205L_Module 2 32
Lagrange's Theorem
BMAT205L_Module 2 33
Properties of Cosets
BMAT205L_Module 2 34
Kernal of Homomorphism:
If 𝑓: 𝐺 → 𝐺′ is a group homomorphism from (𝐺,∗) to
𝐺 ′ , ∆ , then the set of elements of 𝐺, which are mapped
into 𝑒′, the identity element of 𝐺′, is called the kernel of the
homomorphism 𝑓and denoted by ker 𝑓 .
BMAT205L_Module 2 35
Problem 1:
If 𝐺 is the multiplicative group of all (𝑛 × 𝑛) non-singular
matrices whose elements are real numbers and 𝐺 ′ is the multiplicative
group of all non-zero real numbers, show that the mapping 𝑓: 𝐺 → 𝐺′,
where 𝑓 𝐴 = 𝐴 , for all 𝐴 ∈ 𝐺 is a homomorphism. Find also the kernel
of 𝑓.
BMAT205L_Module 2 36
Question 2:
Let 𝑅 and 𝐶 are additive groups of real and complex numbers
respectively and if the mapping 𝑓: 𝐶 → 𝑅 is defined by 𝑓 𝑥 + 𝑖𝑦 = 𝑥,
show that 𝑓 is a homomorphism. Find also the kernel of 𝑓.
BMAT205L_Module 2 37
Encoders and Decoders
Fig.1
BMAT205L_Module 2 38
Group Code
Hamming Codes
BMAT205L_Module 2 39
BMAT205L_Module 2 40
Generator Matrix (𝑮)
Definition
When 𝑚, 𝑛 ∈ 𝑍 + and 𝑚 < 𝑛, the encoding function 𝑒: 𝐵𝑚 → 𝐵𝑛 ,
where 𝐵 ≡ (0,1) is given by a 𝑚 × 𝑛 matrix 𝐺 over 𝐵. This matrix 𝐺
is called the generator matrix for the code and is of the form [𝐼𝑚 |A],
where 𝐼𝑚 is the 𝑚 × 𝑚 unit matrix and 𝐴 is an 𝑚 × (𝑛 − 𝑚) matrix
to be chosen suitably. If 𝑤 is a message belongs to 𝐵𝑚 , then 𝑒(𝑤) =
𝑤𝐺 and the code (the set of code words) C = 𝑒(𝐵𝑚 ) ⊆ 𝐵𝑛 , where 𝑤
is a (1 × 𝑚) vector.
BMAT205L_Module 2 41
Parity Check Matrix (𝑯)
BMAT205L_Module 2 42
Problem 1:
Find the code words generated by the encoding function 𝑒: 𝐵2 → 𝐵5
with respect to the parity check matrix
0 0 1 0 0
𝐻= 1 1 0 1 0
1 1 0 0 1
Here, 𝑚 = 2 and 𝑛 = 5
BMAT205L_Module 2 43
BMAT205L_Module 2 44
BMAT205L_Module 2 45
Problem 2:
Find the code words generated by the parity check matrix
1 1 1 1 0 0
𝐻= 1 0 1 0 1 0
0 1 1 0 0 1
BMAT205L_Module 2 46
BMAT205L_Module 2 47
BMAT205L_Module 2 48
BMAT205L_Module 2 49
Problem 3:
1 0 0 1 1 0
Given the generator matrix 𝐺 ≡ 0 1 0 0 1 1 , corresponding to the
0 0 1 1 0 1
3 6
encoding function 𝑒: 𝐵 → 𝐵 , find the corresponding parity check matrix and use
it to decode the following received words and hence, to find the original message.
Are all the words decoded uniquely?
𝑖 110101, 𝑖𝑖 001111, 𝑖𝑖𝑖 110001, 𝑖𝑣 111111
Problem 4:
Decode each of the following received words corresponding to the encoding
function 𝑒: 𝐵3 → 𝐵6 given by 𝑒 000 = 000 000, 𝑒(001) = 001 011,
𝑒(010) = 010 101, 𝑒(100) = 100 111, 𝑒(011) = 011 110, 𝑒(101) =
101 100, 𝑒(110) = 110 010 and 𝑒(111) = 111 001, assuming that no error or
single error has occurred:
011110, 110111, 110000, 111000, 011111
BMAT205L_Module 2 50
Problem 3:
1 0 0 1 1 0
Given the generator matrix 𝐺 ≡ 0 1 0 0 1 1 , corresponding to the
0 0 1 1 0 1
3 6
encoding function 𝑒: 𝐵 → 𝐵 , find the corresponding parity check matrix and use
it to decode the following received words and hence, to find the original message.
Are all the words decoded uniquely?
𝑖 110101, 𝑖𝑖 001111, 𝑖𝑖𝑖 110001, 𝑖𝑣 111111
BMAT205L_Module 2 51
BMAT205L_Module 2 52
BMAT205L_Module 2 53
BMAT205L_Module 2 54
BMAT205L_Module 2 55
BMAT205L_Module 2 56
BMAT205L_Module 2 57
Problem 4:
Given the encoding function 𝑒: 𝐵3 → 𝐵6 given by 𝑒 000 = 000 000, 𝑒(001) =
001 011, 𝑒(010) = 010 101, 𝑒(100) = 100 111, 𝑒(011) = 011 110,
𝑒(101) = 101 100, 𝑒(110) = 110 010 and 𝑒(111) = 111 001. Find the parity
check matrix and use it to decode the following received words
011110, 110111, 110000, 111000, 011111 and hence, to find the original
message. Are all the words decoded uniquely?
Steps:
1. Find the matrix A using the encoding function.
2. Then form the parity check matrix H.
3. Now decode the received words using the parity check matrix H
BMAT205L_Module 2 58
Problem 4:
Given the encoding function 𝑒: 𝐵3 → 𝐵6 given by 𝑒 000 = 000 000, 𝑒(001) =
001 011, 𝑒(010) = 010 101, 𝑒(100) = 100 111, 𝑒(011) = 011 110,
𝑒(101) = 101 100, 𝑒(110) = 110 010 and 𝑒(111) = 111 001. Find the parity
check matrix and use it to decode the following received words
011110, 110111, 110000, 111000, 011111 and hence, to find the original
message. Are all the words decoded uniquely?
BMAT205L_Module 2 60
We choose 𝑤 = 100 to get the
constants a1, a2 and a3.
BMAT205L_Module 2 61
We choose 𝑤 = 001 to get the constants c1, c2 and c3.
BMAT205L_Module 2 62
Decoding the following codes using H:
Do it by your self. . .!
BMAT205L_Module 2 63
Decoding using Decoding Table
BMAT205L_Module 2 64
Theorem on Detection
Theorem on Detection:
A code [an (𝑚, 𝑛) encoding function] can detect at most 𝑘 errors if
and only if the minimum distance between any two code words is at
least (𝑘 + 1).
BMAT205L_Module 2 65
Theorem on Correction
Theorem on Correction:
A code can correct a set of at most 𝑘 errors if and only if the
minimum distance between any two code words is at least (2𝑘 + 1).
BMAT205L_Module 2 66
Decoding using Decoding Table
BMAT205L_Module 2 67
BMAT205L_Module 2 68
BMAT205L_Module 2 69
BMAT205L_Module 2 70
BMAT205L_Module 2 71
000000 001011 010101 100111 011110 101100 110010 111001
BMAT205L_Module 2 72
000000 001011 010101 100111 011110 101100 110010 111001
BMAT205L_Module 2 73
BMAT205L_Module 2 74
000000 001011 010101 100111 011110 101100 110010 111001
BMAT205L_Module 2 75
BMAT205L_Module 2 76
000000 001011 010101 100111 011110 101100 110010 111001
BMAT205L_Module 2 77
BMAT205L_Module 2 78
000000 001011 010101 100111 011110 101100 110010 111001