Unit 4
Unit 4
• BASIC ALGEBRA
• ALGEBRAIC SYSTEM
There are common notations for the number system which are
R – the set of all Real numbers, R+ - the set of Positive real numbers.
[a] +𝑛 [b] = { 𝑎 + 𝑏 𝑖𝑓 𝑎 + 𝑏 < 𝑛 where r is the least non negative remainder when a+b is
𝑟 𝑖𝑓 𝑎 + 𝑏 ≥𝑛
divided by n. hence 0 ≤ 𝑟 ≤ 𝑛
Ex. [1] +5 [2] = [1+2]= 3
[3] +5 [4] = [2] for 3+4=7 >5, 7=1x5+2
[3] +5 [2] = [0]
• Multiplication of residue classes
Let [a], [b] ∈ 𝑍𝑛 then their product is denoted by ×𝑛 and is defined as follows:
𝑖𝑓 𝑎𝑏 < 𝑛
[a] ×𝑛 [b] = { 𝑎𝑏 where r is the least non negative integer when ab is
𝑟 𝑖𝑓 𝑎 𝑏 ≥ 𝑛
divided by n. hence 0
≤𝑟≤𝑛 ; [2] ×5 [4] =[3] .
Ex. [2] ×5 [2] =[4] 𝑍𝑛 = { 0 , 1 , 2 , … 𝑛 − 1 }
Algebraic systems
• Abinary operation * on a set 𝐴 is defined as a function from 𝐴 × 𝐴 into the set 𝐴
itself. .
• Anon empty set 𝐴 with one or more binary operations on it is called an algebraic
system.
Examples.
• Set : 𝑁 = {1,2,3 … } – the set of natural numbers, Operation : the usual addition ‘+’
which is a binary operation on N, then (𝑁, +) is an algebraic system.
• Similarly, (𝑄, +), (𝑍, . ), (𝑅, +), (𝐶, +) … are algebraic systems
General properties of algebraic system
Let (S, ∗ ) be an algebraic system, ∗ is the binary operation on S .
• Closure property – For all a,b ∈ S, a∗b∈S
• Associativity - For all a, b, c ∈ S , (a ∗ b) ∗ c = a ∗ (b ∗ c) ,
• ABELIAN GROUP
• EXAMPLES
• ORDER OF GROUP
• ORDER OF ELEMENT
GROUPS
Definition : Group
If G is a non empty set and * is a binary operation on G, then the algebraic system {G, *}
is called a group if the following axioms are satisfied:
1) For all a,b ∈ S, a ∗ b ∈ S [Closure property]
2) For all a, b, c ∈ G, a ∗ b ∗ c = a ∗ (b ∗ c) (Associativity)
3) There exists an element e ∈ G such that, for any a ∈G, 𝑎∗e = e∗a= a
(Existence of identity)
2) The set of all 2 x 2 non singular matrices over R is an abelian group under matrix
addition , but not abelian with respect to matrix multiplication as 𝐴𝐵 ≠ 𝐵𝐴
1 2 … 𝑛
𝑝=
𝑝(1) 𝑝(2) … 𝑝(𝑛)
1 2 3 4
For example 𝑝 =
3 4 2 1
IfAhas n elements 𝑆𝐴 has 𝑛! Permutations.
Permutation group
1 2 3 4 1 2 3 4
Let 𝑝1 = 𝑎𝑛𝑑 𝑝2 = , the composition of these two
1 4 2 3 3 2 4 1
permutations is defined as
1 2 3 4 1 2 3 4
𝑝1 ◦ 𝑝2 = ◦
1 4 2 3 3 2 4 1
= 1 2 3 4
3 1 2 4
MODULE 3
• PROPERTIES OF GROUPS
• PROBLEMS ON GROUPS
◦ 𝑓1 𝑓2 𝑓3 𝑓4
𝑓1 𝑓1 𝑓2 𝑓3 𝑓4
𝑓2 𝑓2 𝑓1 𝑓4 𝑓3
𝑓3 𝑓3 𝑓4 𝑓1 𝑓2
𝑓4 𝑓4 𝑓3 𝑓2 𝑓1
° p1 p2 p3 p4 p5 p6
p1 p1 p2 p3 p4 p5 p6
p2 p2 p1 p4 p3 P6 p5
p3 p3 p4 p1 p2 P4 p1
p4 p4 p3 p2 p1 p3 p2
p5 p5 p6 p4 p3 p1 p4
p6 p6 p5 p1 p2 p4 p1
• From the above table, for any two or three elements we can prove closure and
associative property.
• The identity element is 𝑝1 and the inverse of any element is the element itself.
Problems on Groups
4. Let a ≠ 0 be a fixed real number and G = {𝒂𝒏: 𝒏 ∈ 𝒁}, 𝐏𝐫𝐨𝐯𝐞 𝐭𝐡𝐚𝐭 𝐆 is an abelian group under
multiplication .
Proof :
• Closure : if 𝑎𝑛1 , 𝑎𝑛2 ∈ G then 𝑎𝑛1 ∗ 𝑎𝑛2 = 𝑎𝑛1 +𝑛2 ∈ G as 𝑛1 + 𝑛2 ∈ Z
• Associativity : For 𝑎 𝑛1 , 𝑎 𝑛2 , 𝑎 𝑛3 ∈ G
𝑎 𝑛1 ∗ 𝑎 𝑛2 ∗ 𝑎 𝑛3 = 𝑎 𝑛1 ∗ 𝑎 𝑛2 + 𝑛3 = 𝑎 𝑛1 + 𝑛2 + 𝑛3
(𝑎 𝑛1 ∗ 𝑎 𝑛2 ) ∗ 𝑎 𝑛3
= 𝑎 𝑛1 + 𝑛2 ∗ 𝑎 𝑛3 = 𝑎 𝑛1 + 𝑛2 + 𝑛3
• Identity element - 𝑎𝑛 ∗ 𝑎𝑒 = 𝑎𝑛
𝑎𝑛+𝑒 = 𝑎𝑛 implies 𝑒=0 and 𝑎𝑒 = 𝑎0 = 1 is the identity element
• Inverse element – for 𝑎 ∈ 𝑅, 𝑎𝑛 ∗ 𝑎𝑛1 = 𝑎0 => 𝑛 + 𝑛1 = 0 => 𝑛1 = −𝑛
𝑎𝑛1 = 𝑎−𝑛 is the inverse of 𝑎𝑛
5. For any group (G, *) if 𝒂𝟐 = 𝐞 with a ≠ e, then prove that G is abelian
[Or, if every element of a group (G, *) is its own inverse, then G is abelian]
Proof:
Let a2 = e .
Tℎ𝑒𝑛 a2 ∗ 𝑎−1 = 𝑎 ∗ 𝑎 ∗ 𝑎−1 = 𝑒 ∗ 𝑎−1 = 𝑎−1
a2∗ 𝑎−1 = 𝑎 ∗ (𝑎 ∗ 𝑎−1) = 𝑎 ∗ 𝑒 = 𝑎
implies 𝑎 = 𝑎−1
Then for any 𝑎, 𝑏 ∈ 𝐺, 𝑎 ∗ 𝑏 −1 =𝑎∗𝑏
𝑏−1 ∗ 𝑎−1 = 𝑎 ∗ 𝑏
𝑏 ∗ 𝑎 = 𝑎 ∗ 𝑏 , G is abelian.
6. Let (𝑮,∗) be a group. Prove that G is abelian if and only if 𝒂 ∗ 𝒃 𝟐 = 𝒂𝟐 ∗ 𝒃𝟐
Proof:
Let G be abelian,
Consider 𝑎 ∗ 𝑏 2 = 𝑎 ∗ 𝑏 ∗ 𝑎 ∗ 𝑏
= 𝑎 ∗ (𝑏 ∗ 𝑎 ∗ 𝑏 ) [Associativity]
= 𝑎 ∗ ((𝑏 ∗ 𝑎) ∗ 𝑏)
= 𝑎 ∗ (𝑎 ∗ 𝑏) ∗ 𝑏 [ commutativity]
= (𝑎 ∗ 𝑎) ∗ 𝑏 ∗ 𝑏 = 𝑎2 ∗ 𝑏2
Now , suppose 𝑎 ∗ 𝑏 2 = 𝑎2 ∗ 𝑏2
𝑎 ∗ 𝑏 ∗ 𝑎 ∗ 𝑏 = (𝑎 ∗ 𝑎) ∗ 𝑏 ∗ 𝑏
𝑎 ∗ (𝑏 ∗ 𝑎 ∗ 𝑏 ) = 𝑎 ∗ (𝑎 ∗ 𝑏 ∗ 𝑏 )
𝑏∗ 𝑎∗𝑏 = 𝑎∗ 𝑏∗𝑏
(𝑏 ∗ 𝑎) ∗ 𝑏 = (𝑎 ∗ 𝑏) ∗ 𝑏 [Associativity]
𝑏 ∗ 𝑎 = 𝑎 ∗ 𝑏 ----commutative.
Thus G is abelian.
• Exercises :
2. The set {0,1,2,3,4} is a finite abelian group of order 5 under addition modulo 5.
• SUBGROUPS
• PROBLEMS ON SUBGROUPS
SUBGROUPS
If {G, ∗} is a group and H ⊆ G is a non-empty subset of G, called subgroup of G , if H
itself forms a group .
Theorem:
The necessary and sufficient condition for a non empty subset H of a group {G, ∗} to be a
Proof:
Let 𝐻1 𝑎𝑛𝑑 𝐻2 be any two subgroups of G. 𝐻1 ∩ 𝐻2 is a non-empty set, since, at least the
identity element e is common to both 𝐻1 𝑎𝑛𝑑 𝐻2
Let 𝑎 ∈ 𝐻1 ∩ 𝐻2, 𝑡ℎ𝑒𝑛 𝑎 ∈ 𝐻1 𝑎𝑛𝑑 𝑎 ∈ 𝐻2
Let 𝑏 ∈ 𝐻1 ∩ 𝐻2, 𝑡ℎ𝑒𝑛 𝑏 ∈ 𝐻1 𝑎𝑛𝑑 𝑏 ∈ 𝐻2
𝐻1 is a subgroup of G, 𝑎 ∗ 𝑏−1 ∈ 𝐻1 𝑎 𝑎𝑛𝑑 𝑏 ∈ 𝐻
𝐻2 is a subgroup of G, 𝑎 ∗ 𝑏−1 ∈ 𝐻2 𝑎 𝑎𝑛𝑑 𝑏 ∈ 𝐻
∴ 𝑎 ∗ 𝑏−1 ∈ 𝐻1 ∩ 𝐻2 implies 𝐻1 ∩ 𝐻2 is a subgroup of G.
2.Show that the set 𝒂 + 𝒃𝒊 ∈ 𝑪|𝒂𝟐 + 𝒃𝟐 = 𝟏 is a subgroup f (C, •) where • is
the multiplication operator.
Proof:
Let H = 𝑎 + 𝑏𝑖 ∈ 𝐶|𝑎2 + 𝑏2 = 1 , consider two elements 𝑥 + 𝑖𝑦, 𝑝 + 𝑖𝑞 ∈ 𝐻 𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡
𝑥2 + 𝑦2 = 1, 𝑝2 + 𝑞2 = 1 and the identity element of C is 1+0i
Consider (𝑥 + 𝑖𝑦) 𝑝 + 𝑖𝑞 −1 = 𝑥 + 𝑖𝑦 𝑝 − 𝑖𝑞 = 𝑥𝑝 + 𝑦𝑞 + 𝑖(𝑦𝑝 − 𝑥𝑞)
Now 𝑥𝑝 + 𝑦𝑞 2 + 𝑦𝑝 − 𝑥𝑞 2 = 𝑥 2 𝑝2 + 𝑦2 𝑞2 + 2𝑥𝑝𝑦𝑞 + 𝑦2𝑝2 + 𝑥 2 𝑞2 − 2𝑦𝑝𝑥𝑞
= 𝑥2 𝑝2 + 𝑞2 + 𝑦2 𝑝2 + 𝑞2 = 1
∴ 𝑥 + 𝑖𝑦 𝑝 + 𝑖𝑞 −1 ∈ 𝐻, H is a subgroup.
3. Let G be an abelian group with identity e, prove that all elements x of G satisfying
the equation 𝒙𝟐= 𝒆 form a subgroup H of G
Proof:
𝐻 = {𝑥 |𝑥2 = 𝑒}
𝑒2 = 𝑒 ∴ the identity element e of G ∈ 𝐻
𝑥2 = 𝑒
𝑥−1. 𝑥2 = 𝑥−1. 𝑒 => 𝑥 = 𝑥−1
Hence, 𝑖𝑓 𝑥 ∈ 𝐻, 𝑥−1 ∈ 𝐻 [inverse exists]
Let 𝑥, 𝑦 ∈ 𝐻, since G is abelian, 𝑥𝑦 = 𝑦𝑥 = 𝑦−1𝑥−1 = 𝑥𝑦 −1
∴ 𝑥𝑦 2 = 𝑒. i.e 𝑥𝑦 ∈ 𝐻
Thus, if 𝑥, 𝑦 ∈ 𝐻, 𝑤𝑒 ℎ𝑎𝑣𝑒 𝑥𝑦 ∈ 𝐻 [closed]
Thus H is a subgroup.
• Cyclic groups
• Examples
• Properties
• Problems
Cyclic group
A group (G, ∗) is said to be a cyclic group if there exists an element a∈ 𝐺 such that every element 𝑥 of G
can be expressed as 𝑥 = 𝑎 𝑛 for some integer 𝑛, a is called generatorof G.
We write G=(a)
Examples :
1. Let G={1,-1, i, -i} and G is a group under multiplication. It is cyclic with the generator i
(i.e.) G=(i) or G=(-i)
2. Let G={1, 𝜔, 𝜔2} is a cyclic group under multiplication generated by 𝜔 . 𝜔2 is also a generator.
• DEFINITION OF HOMOMORPHISM
• EXAMPLES OF HOMOMORPHISM
• PROPERTIES OF HOMOMORPHISM
DEFINITION OF HOMOMORPHISM
• Given two groups, (G, ∗) and (H, ·), a group homomorphism (morphism) from (G, ∗) to
(H, ·) is a function h : G → H such that for all u and v in G it holds that
ℎ(𝑢 ∗ 𝑣) = ℎ(𝑢) ⋅ ℎ(𝑣) for all u, v ϵ G
• Isomorphism: A group homomorphism that is bijective; i.e., injective and surjective.
Its inverse is also a group homomorphism.
• In this case, the groups G and H are called isomorphic; they differ only in the notation of
their elements and are identical for all practical purposes.
• (G, ∗) and (H, ·) are isomorphic – there is an isomorphism between (G, ∗) and (H, ·)and
it is denoted by (G, ∗) ≅ (H, ·)
EXAMPLES OF HOMOMORPHISM
1. Every isomorphism is a homomorphism with Kernal = {e}.
is a homomorphism.
PROPERTIES OF HOMOMORPHISM
If 𝒇: 𝑮 → 𝑮 ′ is a group homomorphism from (G,∗) 𝒕𝒐 (𝑮′,∙)
(i) f(e) =e' where e and e' are the identity elements of G and G'respectively
Example: The ring (ℤ 4,+4,∙4) does not satisfy the cancellation laws for
multiplication, since 2 ⋅4 2 = 2 ⋅4 0 but 2 ≠ 0.
A ring R is without zero divisors if and only if R satisfies the cancellation
laws for multiplication.
Let R be a ring with identity which has no zero divisors. Then the only
solutions of the equation x 2 = x are x = 0 and x = 1.
Integral Domain
An integral domain is a commutative ring with identity which does not have zero
divisors.
Theorems:
If R is an integral domain, then:
(1) R satisfies the cancellation laws for multiplication.
(2) 0 and 1 are the only idempotent elements in R.
(3) if R is a ring without zero divisors, then every subring of R is without zero
divisors.
Examples:
𝑢 −𝑣̅
Let H = 𝑢, 𝑣 ∈ ℂ} with usual addition (+) and multiplication (∙) on
𝑣 𝑢ത
matrices. Then (H,+, ∙) is a non-commutative division ring.
1 0
Proof. It is clear that (H,+, ∙) is a subring of the ring (M2(ℂ),+, ∙) and is the
0 1
identity element of the ring (H,+, ∙) . The ring (H,+, ∙) is non-commutative, since if
0 1 𝑖 0 0 1 𝑖 0 0 −𝑖 0 𝑖
A= and 𝐵= , then 𝐴 ⋅ 𝐵 = = ≠𝐵⋅𝐴=
−1 0 0 −𝑖 −1 0 0 −𝑖 −𝑖 0 𝑖 0
The non-zero elements of H are invertible.
𝑢̅ 𝑣̅
𝑢 −𝑣 0 0 . Let B = 𝑢+𝑣𝑣̅ 𝑢𝑢+̅ ̅
Let A= ∈ H with A≠ −𝑣 𝑢
𝑣𝑣
. Since B ∈ H
𝑣 ̅ 0 0
𝑢𝑢̅+𝑣𝑣̅ 𝑢𝑢̅+𝑣𝑣
𝑢̅ 𝑣
−1
1 0 we have A is invertible and 𝐴 = 𝑢𝑢̅+𝑣𝑣̅ 𝑢𝑢+̅ 𝑣𝑣̅
.
and A⋅B = B⋅A= = −𝑣 𝑢
0 1 𝑢𝑢̅+𝑣𝑣̅ 𝑢𝑢̅+𝑣𝑣
Example:
−𝑣
1. Let H = { 𝑢 | 𝑢, 𝑣 ∈ ℂ} with usual addition (+) and multiplication (∙)
𝑣 𝑢
on matrices. Then (H,+,∙) is a non-commutative division ring
(Hamilton’s quaternions ring) and hence it is not a field.
(⇐) Suppose that n is a prime number. By Theorem (The ring (ℤ p,+p,∙𝑝) has no zero
divisor if and only if p is a prime integer number), the ring (ℤ n,+n,∙𝑛) has no zero
divisor. Since (ℤ n,+n,∙𝑛) is a commutative ring with identity, we have (ℤ n,+n,∙𝑛) is
an integral domain. Since the ring (ℤ n,+n,∙𝑛) is finite, we have from Theorem
(Every finite integral domain is a field ) that (ℤ n,+n,∙𝑛) is a field.
CODING THEORY– ENCODERSAND
DECODERS-HAMMINGCODES
Encoder: It is a device or process which converts(transforms) data(messages) in such a
way that the presence of noise in the transformed messages is detectable.
Decoder: It is a device or process which converts(transforms) the encoded
data(messages) into their original form that can be understood by the receiver.
block code that is capable of detecting up to two simultaneous bit errors and
correcting single-bit errors.
Error detection using single parity check involves the following steps:-
At sender side,
The newly formed code word (Original data + parity bit) is transmitted to the
receiver
Error detection using single parity check involves the following steps:-
At receiver side,
Receiver receives the transmitted code word.
The total number of 1’s in the received code word is counted.
If total number of 1’s is even and even parity is used, then receiver assumes that
no error occurred.
If total number of 1’s is even and odd parity is used, then receiver assumes that
error occurred.
If total number of 1’s is odd and odd parity is used, then receiver assumes that
no error occurred.
If total number of 1’s is odd and even parity is used, then receiver assumes that
error occurred
Parity Check Example:-
ASCII(AMERICAN STANDARD CODE INFORMATION
INTERCHANGE
Hamming Codes:
If the original message is a binary string of length m, the Hamming encoded
message is string of length n (n>m).
m digits represent the information part of the message and the remaining (n-
m) digits are for the detection and correction of errors in the message
received.
In Hamming’s single error detecting code of length n, the first (n-1) digits
contain the information part of the message and the last digit is made either 0
or 1.
Even Parity Check:-
The extra digit introduced in the last position of the encoded word of length
n, gives an even number of 1’s
Odd Parity Check
The extra digit introduced in the last position of the encoded word of length n,
gives an odd number of 1’s
Weight of the Binary string:-
The number of 1’s in the binary string 𝑥 ∈ 𝐵2. It is denoted by |x|.
Hamming Distance:-
If 𝑥 and 𝑦 represent the binary strings 𝑥1 𝑥2 ⋯ 𝑥𝑛 and 𝑦1 𝑦2 ⋯ 𝑦𝑛 , the
number of positions in the strings for which 𝑥𝑖 ≠ 𝑦𝑖 is called the
Hamming Distance between 𝑥 and 𝑦 and denoted by H(x,y)
H(x,y) = weight of 𝑥 ⊕ 𝑦 = σ𝑛𝑖=1(𝑥𝑖 +2 𝑦𝑖 )
For example, if 𝑖 = 11010 and 𝑦 = 10101, then 𝐻 𝑥, 𝑦 = 𝑥 ⊕ 𝑦 =
01111 = 4.
Example of Hamming Distance:-
Clearly 𝐶 = 𝑒 𝐵2 ⊆ 𝐵5 .
Problems:
1 0 0 1 1 0
1. Given the generator matrix 𝐺 = 0 1 0 0 1 1 corresponding to the
0 0 1 1 0 1
encoding function 𝑒: 𝐵3 → 𝐵6,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?
(i) 110101 (ii) 001111 (iii) 110001 (iv) 111111
Solution: If we assume the G = [I3|A], I3 is the 3 x 3 unit matrix, then
1 0 0 1 0 0
H= [AT| I3] = 1 1 0 0 1 0
0 1 1 0 0 1
Compute the syndrome of each of the received word by using H∙ [𝑟] 𝑇
1
1
1 0 0 1 0 0 0
0
(i) H∙ [𝑟] 𝑇= H∙ [𝑒(𝑤)] 𝑇= 1 1 0 0 1 0 = 0 , Received word is the
1
0 1 1 0 0 1 0
0
transmitted word itself and the original message1is 110
0
0
1 0 0 1 0 0 0
1
(ii) H∙ [𝑟] 𝑇 = H∙ [𝑒(𝑤)] 𝑇= 1 1 0 0 1 0 = 1 , Received word is the fifth
1
0 1 1 0 0 1 0
1
1
column of H, the element in the fifth position of r is changed, Therefore, the
decoded word is 001101 and the original message is 001.
1
1
1 0 0 1 0 0 1
0
(iii) H∙ [𝑟] 𝑇= H∙ [𝑒(𝑤)] 𝑇= 1 1 0 0 1 0 = 0 , Received word is the
0
0 1 1 0 0 1 0
0
fourth column of H, the element in the fourt1h position of r is changed,
Therefore, the decoded word is 110101 and the original message is 110
1
1
1 0 0 1 0 0 1
1
(iv) H∙ [𝑟] 𝑇 = H∙ [𝑒(𝑤)] 𝑇= 1 1 0 0 1 0 = 1 , Received word is not
1
0 1 1 0 0 1 1
1
identical with any column of H, the received1word cannot be decoded
uniquely.
2. Find the code words generated by the encoding function 𝑒: 𝐵 2 → 𝐵 5 with respect
to the parity check matrix
0 1 1
0 1 1
𝐻= 1 0 0
0 1 0
0 0 1
Solution: Rewriting the given matrix as per our notation, we have
00 100
𝐻 = 11 ቮ0 1 0 =[𝐴 𝑇 |𝐼𝑛−𝑚 ], Here 𝑛 = 5 and 𝑚 = 2.
11 001
Hence the generator matrix 𝐺 is given by
1 00 1 1
𝐺 = 𝐼𝑚 𝐴 =
0 10 1 1
Now 𝐵 2 = 0 0, 0 1, 1 0, 1 1 and 𝑒 𝑤 = 𝑤𝐺
1 0 0 1 1
𝑒 00 = 0 0 =0 0 0 0 0
0 1 0 1 1
1 0 0 1 1
𝑒(0 1) = 0 1 =0 1 0 1 1
0 1 0 1 1
1 0 0 1 1
𝑒 10 = 1 0 =1 0 0 1 1
0 1 0 1 1
1 0 0 1 1
𝑒(1 1) = 1 1 =1 1 0 0 0
0 1 0 1 1
Hence, the code words generated by 𝐻 are 0 0 0 0 0,
0 1 0 1 1 , 1 0 0 1 1 , and 1 1 0 0 0.
3. Find the code words generated by the parity check matrix
1 1 1
1 0 1
𝐻 = 0 1 1 when the encoding function is 𝑒: 𝐵 3 → 𝐵 6 .
1 0 0
0 1 0
0 0 1
Solution: Taking
1 1 01 0 0
𝐻 = 1 0 1 0 1 0 = [𝐴 𝑇 |𝐼𝑛−𝑚 ], Here 𝑛 = 6 and 𝑚 = 3.
1 1 10 0 1
Hence the generator matrix 𝐺 is given by
1 0 01 1 1
𝐺 = 𝐼𝑚 𝐴 = 0 1 0 1 0 1
0 0 10 1 1
Now 𝐵 3 = 0 0 0, 0 0 1, 0 1 0, 1 0 0, 0 1 1, 1 0 1, 1 1 0, 1 1 1 and
𝑒 𝑤 = 𝑤𝐺
𝑒 000 = 0 0 0 ⋅𝐺 = 0 0 0 0 0 0
𝑒 001 = 0 0 1 ⋅𝐺 = 0 0 1 0 1 1
𝑒 010 = 0 1 0 ⋅𝐺 = 0 1 0 1 0 1
𝑒 100 = 1 0 0 ⋅𝐺 = 1 0 0 1 1 1
𝑒 011 = 0 1 1 ⋅𝐺 = 0 1 1 1 1 0
𝑒 101 = 1 0 1 ⋅𝐺 = 1 0 1 1 0 0
𝑒 110 = 1 1 0 ⋅𝐺 = 1 1 0 0 1 0
𝑒 111 = 1 1 1 ⋅𝐺 = 1 1 1 0 0 1
Thus, the code words generated by 𝐻 are
0 0 0 0 0 0, 0 0 1 0 1 1,0 1 0 1 0 1,
1 0 0 1 1 1, 0 1 1 1 1 0,1 0 1 1 0 0,
1 1 0 0 1 0 , and 1 1 1 0 0 1.
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) = 111001, assuming that no error
or signal error has occurred:
0 1 1 1 1 0,1 1 0 1 1 0, 1 1 0 0 0 0,
1 1 1 0 0 0, 0 1 1 1 1 1.
We note that the minimum distance between the code words is 3
and hence, atmost 1 error can be corrected that might have
occurred in the received words.
i. The word 0 1 1 1 1 0 is identical with 𝑒(0 1 1). Hence, no error has occurred in this
word and the original message is 0 1 1.
ii. The word 1 1 0 1 1 1 differs from 𝑒(1 0 0) = 1 0 0 1 1 1 in the second position
only. Correcting this single error, the transmitted word is 1 0 0 1 1 1 and the original
message is 1 0 0.
iii. The word 1 1 0 0 0 0 differs from 𝑒(1 1 0) = 1 1 0 0 1 0 in the fifth position only.
Correcting this error, the transmitted word is 1 1 0 0 1 0 and the original message is
110.
iv. The word 1 1 1 0 0 0 differs from 𝑒(1 1 1) = 1 1 1 0 0 1 in the sixth position only.
Correcting this error, the transmitted word is 1 1 1 0 0 1 and the original message is
111.
v. The word 0 1 1 1 1 1 differs from 𝑒(0 1 1) = 0 1 1 1 1 0 in the sixth position only.
Correcting this error, the transmitted word is 0 1 1 1 1 0 and the original message is
011.