Unit6 - Algebraic Structure & Coding Theory - NMR
Unit6 - Algebraic Structure & Coding Theory - NMR
Unit-6
a
b
a+b
Commutative
a * b = b*a
Associative
a * (b*c) = (a* b)*c
Idempotent
a*a = a
Is * Commutative ?
• The following table of binary operation *
is commutative ?
* a b c
a b c a
b c b a
c a b c
* is not Commutative
Example 2
* is Commutative ?, associative ?
* a b c d
a a c b d
b d a b c
c c d a a
d d b a c
Monoid
Group
Semigroup
A, is a semigroup if the following conditions
are satisfied:
1. is a closed operation i.e. if a A
b G then a b A
2. is associative
Left Identity
e * X=X
Right Identity
X * e =X
Identity Ement
e * X=X *e =X
Identity Element
* a b c
a a a a
b a b c
c c c c
+ 0 2 4 6
0 0 2 4 6
2 2 4 6 8
4 4 6 8 10
6 6 8 10 12
(Z,+)
(E,+)
Example 1:
Find the submonoid of (Z,+)
generated by set {-4,6}
i) 0,6,-4 ϵ B
ii) If x,y ϵ B then x+y ϵ B
iii) <B> contains only the elements
obtained from i and ii
<B>={0,6,-4,2,8,-2,10,----}
i) 0,-3,5 ϵ B
ii) If x,y ϵ B then x+y ϵ B
iii) <B> contains only the elements
obtained from i and ii
<B>={0,-3,5,2,-1,7,-4,4,----}
Associative Law
Unique Identity
Element
Unique Inverse
Example
* a b c d
a a b c d
b b a a b
c c b a a
d d a a a
Inverse
a a
b b
c c,d
d d, c
(d*b)*c = a*c = c
d*(b*c) = d*a = d
Example:
Prove that A={1,5,7,11} under
multiplication modulo 12 is a
group.
* 1 5 7 11
1 1 5 7 11
5 5 1 11 7
7 7 11 1 5
11 11 7 5 1
• Identity element =1
Inverse
1 1
5 5
7 7
11 11
Abelian Groups
If G, is a group and is also commutative
then G, is referred to as an Abelian group
(the name is taken from the 19’th century
mathematician N.H. Abel)
is commutative means that
a,b G, a b = b a
properties
Semigroup monoid group Abelian Group
SubGroup
Let H be subset of Group G,
Then H is called subgroup of G if
H is a group under the operation
of G.
A set H is subgroup of G if
1. The identity element is in H
2. H is closed under the operation
3. H is closed under the inverses.
Example:
Prove that (E,+) is subgroup of
(Z,+) under modulo 8
Identity element : 0
Inverse:
0- 0 2- 6 4- 4 6- 2
+ 0 2 4 6
0 0 2 4 6
2 2 4 6 0
4 4 6 0 2
6 6 0 2 4
Normal Subgroups
Let H, be a subgroup of G, . Then H,
is a normal subgroup if, for any a G , the left
coset a H is equal to the right coset H a
4. Is G Cyclic ?
* 1 2 3 4 5 6
1 1 2 3 4 5 6
2 2 4 6 1 3 5
3 3 6 2 5 1 4
4 4 1 5 2 6 3
5 5 3 1 6 4 2
6 6 5 4 3 2 1
• G is cyclic. Generator of G is 3.
Homomorphisms
Let A, and B, be two algebraic systems
then a homomorphism from A, to B,
is a functional mapping f : A B
such that
f x y f x f y
* a b c . 1 w w2
a a b c 1 1 w w2
b b c a w w w2 1
c c a b w2 w2 1 w
f( a) = 1 f( b) = w f( c) = w2
f( a* b) = f(a).f(b)
f(b) 1.w
w w
f( b* c) = f(b).f(c)
f(a) w. w2
1 1
Isomorphic
• Let (G1,*) and (G2,.) be two
algebric system where * and .
Are binary operation. If the
system is homomorphic and in
addition f is one-to-one and
onto then f is called
isomorphic.
a 1
b w
c w2
Automorphism
• An isomorphism of a
semigroup onto itself is
called Automorphism.
(R,*) is semigroup
Distribution Law
a*(b+c)= a*b + a*c
(b+c)*a=b*a+c*a
Example:
1. Let Z7 = {0,1,2,…….,6}
+ 0 1 2 3 4 5 6
0 0 1 2 3 4 5 6
1 1 2 3 4 5 6 0
2 2 3 4 5 6 0 1
3 3 4 5 6 0 1 2
4 4 5 6 0 1 2 3
5 5 6 0 1 2 3 4
6 6 0 1 2 3 4 5
R+ is an abelian Group
(R,*) under modulo 7
* 0 1 2 3 4 5 6
0 0 0 0 0 0 0 0
1 0 1 2 3 4 5 6
2 0 2 4 6 1 3 5
3 0 3 6 2 5 1 4
4 0 4 1 5 2 6 3
5 0 5 3 1 6 4 2
6 0 6 5 4 3 2 1
R * is a semigroup
* is distributive over +
* is also commutative so commutative Ring
Zero Divisors
* 0 1 2 3
0 0 0 0 0
1 0 1 2 3
2 0 2 0 2
3 0 3 2 1
Z* under modulo 7
* 0 1 2 3 4 5 6
0 0 0 0 0 0 0 0
1 0 1 2 3 4 5 6
2 0 2 4 6 1 3 5
3 0 3 6 2 5 1 4
4 0 4 1 5 2 6 3
5 0 5 3 1 6 4 2
6 0 6 5 4 3 2 1
(Z,+) under modulo 7
+ 0 1 2 3 4 5 6
0 0 1 2 3 4 5 6
1 1 2 3 4 5 6 0
2 2 3 4 5 6 0 1
3 3 4 5 6 0 1 2
4 4 5 6 0 1 2 3
5 5 6 0 1 2 3 4
6 6 0 1 2 3 4 5
• Z7 is an integral domain
• All nonzero element has multiplicative
inverse
• So (Z7,+,*) is a field
Coding Theory
In transmitting the data, noises from the external sources may introduce
errors and change the original data. So it is important to detect and
correct the data transmitted over the communication channels
Encoded
Message
Message
Channel
Received Message
Decoded Message
Hamming weight
Example :
w(11001001)=4
w(10110101) = 5
w(0001010)= 2
Hamming Distance
Properties:
i) d(x,y) ≥ 0
ii) d(x,y) =0 ⇔ x = y
iii) d(x,y) = d(y,x)
iv) d(x, z) ≤ d(x,y) + d(y,z)
Parity checks
Parity digits are the redundant digits introduced
to hamming code for encoding purpose
00000
01010
10111
01111
Encoding function
The encoding function e: Bm⇒ Bm+1 is called the parity
(m,m+1) check code .
Suppose, b= b1 b2 b3…….bm ∈ Bm , we define the
encoding e(b) as
e(b) = b1 b2 b3…….bm bm+1
Where bm+1 = 0 if | b | is even
= 1 if | b | is odd
Example 1:
Consider the (3,4) parity check code. For each of the
following words determine whether an error will be
detected or not?
i) 0100
| b | = 1 , since odd number of 1 so 1 should be at last
position but here is 0 so error detected
ii) 1100
| b | = 2, since even number of 1 so 0 should be at last
position and here is 0 so no error detected
Example 2:
Generation of encoding function for m=3 ie parity check
code (3,4)
e(000) = 0000
e(001) = 0011
e(010) = 0101
e(011) = 0110
e(100) = 1001
e(101) = 1010
e(110) = 1100
e(111)= 1111
Thank You !!!