Solutions To Problems From Chapter 3: Manjunatha. P
Solutions To Problems From Chapter 3: Manjunatha. P
Manjunatha. P
[email protected]
Professor
Dept. of ECE
0 0 0 1| 1 0 1 1
0 0 0 1| 1 0 1 1
0 1 1 1| 1 0 0 0
1 1 1 0| 0 1 0 0
G = 1 1 0 1| 0 0 1 0
1 0 1 1| 0 0 0 1
Message register
Input U
U0 U1 U2 U3
To Channel
+ + + +
vo v1 v2 v3
Parity register
Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 5 / 10
Solutions to problems from Chapter 3 Solutions to problems from Chapter 3
3.3 Construct a syndrome circuit for the code given in Problem 3.1
3.3 Construct a syndrome circuit for the code given in Problem 3.1
Solution:
Syndrome vector is obtained from the received sequence
r = [r0 r1 . . . r7 ] using the parity check matrix of the code:
s = [s0 s1 s2 s3 ] = rH T :
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
= (r0 , r1 , r2 , r3 , r4 , r5 , r6 , r7 )
0
1 1 1
1 1 1 0
1 1 0 1
1 0 1 1
3.3 Construct a syndrome circuit for the code given in Problem 3.1
Solution:
Syndrome vector is obtained from the received sequence
r = [r0 r1 . . . r7 ] using the parity check matrix of the code:
s = [s0 s1 s2 s3 ] = rH T :
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
= (r0 , r1 , r2 , r3 , r4 , r5 , r6 , r7 )
0
1 1 1
1 1 1 0
1 1 0 1
1 0 1 1
s0 = r0 + r5 + r6 + r7 s1 = r1 + r4 + r5 + r6
s2 = r2 + r4 + r5 + r7 s3 = r3 + r4 + r6 + r7 :
r
r0 r1 r2 r3 r4 r5 r6 r7
+ + + +
s0 s1 s2 s3
3.3 Determine the weight distribution of the (8,4) linear code given in
Problem 3.1. Let the transition probability of a BSC be ρ = 10−2 .
Compute the probability of an undetected error of this code.
3.3 Determine the weight distribution of the (8,4) linear code given in
Problem 3.1. Let the transition probability of a BSC be ρ = 10−2 .
Compute the probability of an undetected error of this code.
Solution:
Let Ai denote the number of codewords of weight i in an (n; k) code
C. Then the numbers A0 , A1 , . . . An are called the weight distribution
of the code. For any linear code A0 = 1 (every linear code must
contain the all-zero codeword). The first next non-zero element of the
weight distribution of a linear code is Admin , corresponding to the
number of minimal-weight codewords.
For the (8; 4) code with the minimum distance dmin = 4, all the
codewords except the all-zero and the all-one codeword have
minimum weight, that is, the weight distribution is
A0 = 1, A4 = 14, A8 = 1,
3.3 Determine the weight distribution of the (8,4) linear code given in
Problem 3.1. Let the transition probability of a BSC be ρ = 10−2 .
Compute the probability of an undetected error of this code.
Solution:
Let Ai denote the number of codewords of weight i in an (n; k) code
C. Then the numbers A0 , A1 , . . . An are called the weight distribution
of the code. For any linear code A0 = 1 (every linear code must
contain the all-zero codeword). The first next non-zero element of the
weight distribution of a linear code is Admin , corresponding to the
number of minimal-weight codewords.
For the (8; 4) code with the minimum distance dmin = 4, all the
codewords except the all-zero and the all-one codeword have
minimum weight, that is, the weight distribution is
A0 = 1, A4 = 14, A8 = 1,
A0 = 1, A4 = 14, A8 = 1,
A0 = 1, A4 = 14, A8 = 1,
The probability of an undetected error is
A0 = 1, A4 = 14, A8 = 1,
The probability of an undetected error is
n
X
Pu (E ) = Ai p i (1 − p)n−i
i=1
A0 = 1, A4 = 14, A8 = 1,
The probability of an undetected error is
n
X
Pu (E ) = Ai p i (1 − p)n−i
i=1
Pu (E ) = A4 p 4 (1 − p)4 + A8 p 8 = 14p 4 (1 − p 4 ) + p 8
A0 = 1, A4 = 14, A8 = 1,
The probability of an undetected error is
n
X
Pu (E ) = Ai p i (1 − p)n−i
i=1
Pu (E ) = A4 p 4 (1 − p)4 + A8 p 8 = 14p 4 (1 − p 4 ) + p 8