36
Solutions to problems from Chapter 3 Manjunatha. P [email protected] Professor Dept. of ECE J.N.N. College of Engineering, Shimoga October 13, 2012

Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

  • Upload
    phamdan

  • View
    245

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3

Manjunatha. [email protected]

ProfessorDept. of ECE

J.N.N. College of Engineering, Shimoga

October 13, 2012

Page 2: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Consider a systematic (8, 4) code whose parity-check equations are

v0 = u1 + u2 + u3v1 = u0 + u1 + u2v2 = u0 + u1 + u3v3 = u0 + u2 + u3

where u0, u1, u2, u3 are message digits and v0 v1 v2 v3 are paritycheck digits. Find the generator and parity check matrices for thiscode. Show analytically that the minimum distance of this code is 4.Solution:

The information sequences u = [u0 u1 u2 u3] are encoded intocodewords v of length n = 8, using a systematic encoder. If weassume that the systematic positions in a codeword are the last k = 4positions, then codewords have the formv = [v0 v1 v2 v3 u0 u1 u2 u3]

and the systematic encoding is specified byv = uG ;G = [P | I ] :

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 2 / 10

Page 3: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Consider a systematic (8, 4) code whose parity-check equations are

v0 = u1 + u2 + u3v1 = u0 + u1 + u2v2 = u0 + u1 + u3v3 = u0 + u2 + u3

where u0, u1, u2, u3 are message digits and v0 v1 v2 v3 are paritycheck digits. Find the generator and parity check matrices for thiscode. Show analytically that the minimum distance of this code is 4.Solution:

The information sequences u = [u0 u1 u2 u3] are encoded intocodewords v of length n = 8, using a systematic encoder. If weassume that the systematic positions in a codeword are the last k = 4positions, then codewords have the formv = [v0 v1 v2 v3 u0 u1 u2 u3]

and the systematic encoding is specified byv = uG ;G = [P | I ] :

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 2 / 10

Page 4: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Consider a systematic (8, 4) code whose parity-check equations are

v0 = u1 + u2 + u3v1 = u0 + u1 + u2v2 = u0 + u1 + u3v3 = u0 + u2 + u3

where u0, u1, u2, u3 are message digits and v0 v1 v2 v3 are paritycheck digits. Find the generator and parity check matrices for thiscode. Show analytically that the minimum distance of this code is 4.

Solution:

The information sequences u = [u0 u1 u2 u3] are encoded intocodewords v of length n = 8, using a systematic encoder. If weassume that the systematic positions in a codeword are the last k = 4positions, then codewords have the formv = [v0 v1 v2 v3 u0 u1 u2 u3]

and the systematic encoding is specified byv = uG ;G = [P | I ] :

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 2 / 10

Page 5: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Consider a systematic (8, 4) code whose parity-check equations are

v0 = u1 + u2 + u3v1 = u0 + u1 + u2v2 = u0 + u1 + u3v3 = u0 + u2 + u3

where u0, u1, u2, u3 are message digits and v0 v1 v2 v3 are paritycheck digits. Find the generator and parity check matrices for thiscode. Show analytically that the minimum distance of this code is 4.Solution:

The information sequences u = [u0 u1 u2 u3] are encoded intocodewords v of length n = 8, using a systematic encoder. If weassume that the systematic positions in a codeword are the last k = 4positions, then codewords have the form

v = [v0 v1 v2 v3 u0 u1 u2 u3]

and the systematic encoding is specified byv = uG ;G = [P | I ] :

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 2 / 10

Page 6: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Consider a systematic (8, 4) code whose parity-check equations are

v0 = u1 + u2 + u3v1 = u0 + u1 + u2v2 = u0 + u1 + u3v3 = u0 + u2 + u3

where u0, u1, u2, u3 are message digits and v0 v1 v2 v3 are paritycheck digits. Find the generator and parity check matrices for thiscode. Show analytically that the minimum distance of this code is 4.Solution:

The information sequences u = [u0 u1 u2 u3] are encoded intocodewords v of length n = 8, using a systematic encoder. If weassume that the systematic positions in a codeword are the last k = 4positions, then codewords have the formv = [v0 v1 v2 v3 u0 u1 u2 u3]

and the systematic encoding is specified byv = uG ;G = [P | I ] :

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 2 / 10

Page 7: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Consider a systematic (8, 4) code whose parity-check equations are

v0 = u1 + u2 + u3v1 = u0 + u1 + u2v2 = u0 + u1 + u3v3 = u0 + u2 + u3

where u0, u1, u2, u3 are message digits and v0 v1 v2 v3 are paritycheck digits. Find the generator and parity check matrices for thiscode. Show analytically that the minimum distance of this code is 4.Solution:

The information sequences u = [u0 u1 u2 u3] are encoded intocodewords v of length n = 8, using a systematic encoder. If weassume that the systematic positions in a codeword are the last k = 4positions, then codewords have the formv = [v0 v1 v2 v3 u0 u1 u2 u3]

and the systematic encoding is specified byv = uG ;G = [P | I ] :

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 2 / 10

Page 8: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

From the given set of parity-check equations we immediately obtainthe generator and the parity check matrices.

We can start with the parity check matrix H and recall that every rowin H represents one parity check equation, and it has ones in thepositions of PT corresponding to the symbols involved in thatequation. Thus, we have

H =

1 0 0 0| 0 1 1 10 1 0 0| 1 1 1 00 0 1 0| 1 1 0 10 0 0 1| 1 0 1 1

G =

0 1 1 1| 1 0 0 01 1 1 0| 0 1 0 01 1 0 1| 0 0 1 01 0 1 1| 0 0 0 1

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 3 / 10

Page 9: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

From the given set of parity-check equations we immediately obtainthe generator and the parity check matrices.

We can start with the parity check matrix H and recall that every rowin H represents one parity check equation, and it has ones in thepositions of PT corresponding to the symbols involved in thatequation. Thus, we have

H =

1 0 0 0| 0 1 1 10 1 0 0| 1 1 1 00 0 1 0| 1 1 0 10 0 0 1| 1 0 1 1

G =

0 1 1 1| 1 0 0 01 1 1 0| 0 1 0 01 1 0 1| 0 0 1 01 0 1 1| 0 0 0 1

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 3 / 10

Page 10: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

From the given set of parity-check equations we immediately obtainthe generator and the parity check matrices.

We can start with the parity check matrix H and recall that every rowin H represents one parity check equation, and it has ones in thepositions of PT corresponding to the symbols involved in thatequation. Thus, we have

H =

1 0 0 0| 0 1 1 10 1 0 0| 1 1 1 00 0 1 0| 1 1 0 10 0 0 1| 1 0 1 1

G =

0 1 1 1| 1 0 0 01 1 1 0| 0 1 0 01 1 0 1| 0 0 1 01 0 1 1| 0 0 0 1

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 3 / 10

Page 11: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

From the given set of parity-check equations we immediately obtainthe generator and the parity check matrices.

We can start with the parity check matrix H and recall that every rowin H represents one parity check equation, and it has ones in thepositions of PT corresponding to the symbols involved in thatequation. Thus, we have

H =

1 0 0 0| 0 1 1 10 1 0 0| 1 1 1 00 0 1 0| 1 1 0 10 0 0 1| 1 0 1 1

G =

0 1 1 1| 1 0 0 01 1 1 0| 0 1 0 01 1 0 1| 0 0 1 01 0 1 1| 0 0 0 1

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 3 / 10

Page 12: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

To find the minimum distance analytically, we use the property thatthe minimum distance of a binary linear code is equal to the smallestnumber of columns of the parity-check matrix H that sum up to zero.Hence, we find that:

there are no two identical columns in H dmin > 2

there are no groups of 3 columns that sum up to 0 dmin > 3

there exists a group of 4 columns (for example, columns 1,2,3,6) thatsum up to 0 dmin = 42.

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 4 / 10

Page 13: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

To find the minimum distance analytically, we use the property thatthe minimum distance of a binary linear code is equal to the smallestnumber of columns of the parity-check matrix H that sum up to zero.Hence, we find that:

there are no two identical columns in H dmin > 2

there are no groups of 3 columns that sum up to 0 dmin > 3

there exists a group of 4 columns (for example, columns 1,2,3,6) thatsum up to 0 dmin = 42.

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 4 / 10

Page 14: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

To find the minimum distance analytically, we use the property thatthe minimum distance of a binary linear code is equal to the smallestnumber of columns of the parity-check matrix H that sum up to zero.Hence, we find that:

there are no two identical columns in H dmin > 2

there are no groups of 3 columns that sum up to 0 dmin > 3

there exists a group of 4 columns (for example, columns 1,2,3,6) thatsum up to 0 dmin = 42.

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 4 / 10

Page 15: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

To find the minimum distance analytically, we use the property thatthe minimum distance of a binary linear code is equal to the smallestnumber of columns of the parity-check matrix H that sum up to zero.Hence, we find that:

there are no two identical columns in H dmin > 2

there are no groups of 3 columns that sum up to 0 dmin > 3

there exists a group of 4 columns (for example, columns 1,2,3,6) thatsum up to 0 dmin = 42.

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 4 / 10

Page 16: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

3.2 Construct an encoder for the code given in Problem 3.1

Solution:Based on the parity check equations from the previous problem, thesystematic encoder for the (8; 4) code has the structure as shown inFigure 1.

v0 = u1 + u2 + u3 v1 = u0 + u1 + u2v2 = u0 + u1 + u3 v3 = u0 + u2 + u3

U0 U2U1

Input UMessage register

To Channel

U3

Parity register

vov1 v2

+ + ++v3

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 5 / 10

Page 17: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

3.2 Construct an encoder for the code given in Problem 3.1Solution:Based on the parity check equations from the previous problem, thesystematic encoder for the (8; 4) code has the structure as shown inFigure 1.

v0 = u1 + u2 + u3 v1 = u0 + u1 + u2v2 = u0 + u1 + u3 v3 = u0 + u2 + u3

U0 U2U1

Input UMessage register

To Channel

U3

Parity register

vov1 v2

+ + ++v3

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 5 / 10

Page 18: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

3.2 Construct an encoder for the code given in Problem 3.1Solution:Based on the parity check equations from the previous problem, thesystematic encoder for the (8; 4) code has the structure as shown inFigure 1.

v0 = u1 + u2 + u3 v1 = u0 + u1 + u2v2 = u0 + u1 + u3 v3 = u0 + u2 + u3

U0 U2U1

Input UMessage register

To Channel

U3

Parity register

vov1 v2

+ + ++v3

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 5 / 10

Page 19: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

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

Solution:Syndrome vector is obtained from the received sequencer = [r0 r1 . . . r7] using the parity check matrix of the code:

s = [s0 s1 s2 s3] = rHT :

= (r0, r1, r2, r3, r4, r5, r6, r7)

1 0 0 00 1 0 00 0 1 00 0 0 10 1 1 11 1 1 01 1 0 11 0 1 1

By parity check matrix the syndrome digits are:

s0 = r0 + r5 + r6 + r7 s1 = r1 + r4 + r5 + r6s2 = r2 + r4 + r5 + r7 s3 = r3 + r4 + r6 + r7

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 6 / 10

Page 20: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

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.1Solution:Syndrome vector is obtained from the received sequencer = [r0 r1 . . . r7] using the parity check matrix of the code:

s = [s0 s1 s2 s3] = rHT :

= (r0, r1, r2, r3, r4, r5, r6, r7)

1 0 0 00 1 0 00 0 1 00 0 0 10 1 1 11 1 1 01 1 0 11 0 1 1

By parity check matrix the syndrome digits are:

s0 = r0 + r5 + r6 + r7 s1 = r1 + r4 + r5 + r6s2 = r2 + r4 + r5 + r7 s3 = r3 + r4 + r6 + r7

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 6 / 10

Page 21: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

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.1Solution:Syndrome vector is obtained from the received sequencer = [r0 r1 . . . r7] using the parity check matrix of the code:

s = [s0 s1 s2 s3] = rHT :

= (r0, r1, r2, r3, r4, r5, r6, r7)

1 0 0 00 1 0 00 0 1 00 0 0 10 1 1 11 1 1 01 1 0 11 0 1 1

By parity check matrix the syndrome digits are:

s0 = r0 + r5 + r6 + r7 s1 = r1 + r4 + r5 + r6s2 = r2 + r4 + r5 + r7 s3 = r3 + r4 + r6 + r7

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 6 / 10

Page 22: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

s0 = r0 + r5 + r6 + r7 s1 = r1 + r4 + r5 + r6s2 = r2 + r4 + r5 + r7 s3 = r3 + r4 + r6 + r7 :

r0 r2r1 r6r5r4r3

rr7

s2s1s3

+ ++ +

s0

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 7 / 10

Page 23: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

3.3 Determine the weight distribution of the (8,4) linear code given inProblem 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) codeC. Then the numbers A0,A1, . . .An are called the weight distributionof the code. For any linear code A0 = 1 (every linear code mustcontain the all-zero codeword). The first next non-zero element of theweight distribution of a linear code is Admin

, corresponding to thenumber of minimal-weight codewords.

For the (8; 4) code with the minimum distance dmin = 4, all thecodewords except the all-zero and the all-one codeword haveminimum weight, that is, the weight distribution isA0 = 1,A4 = 14,A8 = 1,

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 8 / 10

Page 24: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

3.3 Determine the weight distribution of the (8,4) linear code given inProblem 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) codeC. Then the numbers A0,A1, . . .An are called the weight distributionof the code. For any linear code A0 = 1 (every linear code mustcontain the all-zero codeword). The first next non-zero element of theweight distribution of a linear code is Admin

, corresponding to thenumber of minimal-weight codewords.

For the (8; 4) code with the minimum distance dmin = 4, all thecodewords except the all-zero and the all-one codeword haveminimum weight, that is, the weight distribution isA0 = 1,A4 = 14,A8 = 1,

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 8 / 10

Page 25: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

3.3 Determine the weight distribution of the (8,4) linear code given inProblem 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) codeC. Then the numbers A0,A1, . . .An are called the weight distributionof the code. For any linear code A0 = 1 (every linear code mustcontain the all-zero codeword). The first next non-zero element of theweight distribution of a linear code is Admin

, corresponding to thenumber of minimal-weight codewords.

For the (8; 4) code with the minimum distance dmin = 4, all thecodewords except the all-zero and the all-one codeword haveminimum weight, that is, the weight distribution isA0 = 1,A4 = 14,A8 = 1,

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 8 / 10

Page 26: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

A0 = 1,A4 = 14,A8 = 1,

The probability of an undetected error is

Pu(E ) =n∑

i=1

Aipi (1− p)n−i

Pu(E ) = A4p4(1− p)4 + A8p

8 = 14p4(1− p4) + p8

If p = 10−2 then Pu(E ) = 1.3448x10−7.

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 9 / 10

Page 27: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

A0 = 1,A4 = 14,A8 = 1,

The probability of an undetected error is

Pu(E ) =n∑

i=1

Aipi (1− p)n−i

Pu(E ) = A4p4(1− p)4 + A8p

8 = 14p4(1− p4) + p8

If p = 10−2 then Pu(E ) = 1.3448x10−7.

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 9 / 10

Page 28: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

A0 = 1,A4 = 14,A8 = 1,

The probability of an undetected error is

Pu(E ) =n∑

i=1

Aipi (1− p)n−i

Pu(E ) = A4p4(1− p)4 + A8p

8 = 14p4(1− p4) + p8

If p = 10−2 then Pu(E ) = 1.3448x10−7.

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 9 / 10

Page 29: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

A0 = 1,A4 = 14,A8 = 1,

The probability of an undetected error is

Pu(E ) =n∑

i=1

Aipi (1− p)n−i

Pu(E ) = A4p4(1− p)4 + A8p

8 = 14p4(1− p4) + p8

If p = 10−2 then Pu(E ) = 1.3448x10−7.

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 9 / 10

Page 30: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

A0 = 1,A4 = 14,A8 = 1,

The probability of an undetected error is

Pu(E ) =n∑

i=1

Aipi (1− p)n−i

Pu(E ) = A4p4(1− p)4 + A8p

8 = 14p4(1− p4) + p8

If p = 10−2 then Pu(E ) = 1.3448x10−7.

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 9 / 10

Page 31: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Form the generator matrix of the first-order RM code RM(1,3) oflength 8. What is the minimum distance of the code? Determine itsparity check sums and devise majority-logic decoder for the code.Decode the received vector r=(0 1 0 0 0 1 0 1).Solution:

Consider the code R(1,3) with generator matrix:

Code length: n = 2m = 23 = 8

k(r ,m) = 1 +

(31

)= 1 + 3.2.1

(2.1).1 = 4

Minimum distance: dmin = 2m−r = 23−1 = 4

GRM(1, 3) =

1 1 1 1 1 1 1 11 1 1 1 0 0 0 01 1 0 0 1 1 0 01 0 1 0 1 0 1 0

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 10 / 10

Page 32: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Form the generator matrix of the first-order RM code RM(1,3) oflength 8. What is the minimum distance of the code? Determine itsparity check sums and devise majority-logic decoder for the code.Decode the received vector r=(0 1 0 0 0 1 0 1).Solution:

Consider the code R(1,3) with generator matrix:

Code length: n = 2m = 23 = 8

k(r ,m) = 1 +

(31

)= 1 + 3.2.1

(2.1).1 = 4

Minimum distance: dmin = 2m−r = 23−1 = 4

GRM(1, 3) =

1 1 1 1 1 1 1 11 1 1 1 0 0 0 01 1 0 0 1 1 0 01 0 1 0 1 0 1 0

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 10 / 10

Page 33: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Form the generator matrix of the first-order RM code RM(1,3) oflength 8. What is the minimum distance of the code? Determine itsparity check sums and devise majority-logic decoder for the code.Decode the received vector r=(0 1 0 0 0 1 0 1).Solution:

Consider the code R(1,3) with generator matrix:

Code length: n = 2m = 23 = 8

k(r ,m) = 1 +

(31

)= 1 + 3.2.1

(2.1).1 = 4

Minimum distance: dmin = 2m−r = 23−1 = 4

GRM(1, 3) =

1 1 1 1 1 1 1 11 1 1 1 0 0 0 01 1 0 0 1 1 0 01 0 1 0 1 0 1 0

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 10 / 10

Page 34: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Form the generator matrix of the first-order RM code RM(1,3) oflength 8. What is the minimum distance of the code? Determine itsparity check sums and devise majority-logic decoder for the code.Decode the received vector r=(0 1 0 0 0 1 0 1).Solution:

Consider the code R(1,3) with generator matrix:

Code length: n = 2m = 23 = 8

k(r ,m) = 1 +

(31

)= 1 + 3.2.1

(2.1).1 = 4

Minimum distance: dmin = 2m−r = 23−1 = 4

GRM(1, 3) =

1 1 1 1 1 1 1 11 1 1 1 0 0 0 01 1 0 0 1 1 0 01 0 1 0 1 0 1 0

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 10 / 10

Page 35: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Form the generator matrix of the first-order RM code RM(1,3) oflength 8. What is the minimum distance of the code? Determine itsparity check sums and devise majority-logic decoder for the code.Decode the received vector r=(0 1 0 0 0 1 0 1).Solution:

Consider the code R(1,3) with generator matrix:

Code length: n = 2m = 23 = 8

k(r ,m) = 1 +

(31

)= 1 + 3.2.1

(2.1).1 = 4

Minimum distance: dmin = 2m−r = 23−1 = 4

GRM(1, 3) =

1 1 1 1 1 1 1 11 1 1 1 0 0 0 01 1 0 0 1 1 0 01 0 1 0 1 0 1 0

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 10 / 10

Page 36: Solutions to problems from Chapter 3 - JNNCE ECE …jnnce-ece-manjunath.weebly.com/uploads/1/9/2/0/19204775/solutions… · Solutions to problems from Chapter 3 Solutions to problems

Solutions to problems from Chapter 3 Solutions to problems from Chapter 3

Form the generator matrix of the first-order RM code RM(1,3) oflength 8. What is the minimum distance of the code? Determine itsparity check sums and devise majority-logic decoder for the code.Decode the received vector r=(0 1 0 0 0 1 0 1).Solution:

Consider the code R(1,3) with generator matrix:

Code length: n = 2m = 23 = 8

k(r ,m) = 1 +

(31

)= 1 + 3.2.1

(2.1).1 = 4

Minimum distance: dmin = 2m−r = 23−1 = 4

GRM(1, 3) =

1 1 1 1 1 1 1 11 1 1 1 0 0 0 01 1 0 0 1 1 0 01 0 1 0 1 0 1 0

Manjunatha. P (JNNCE) Solutions to problems from Chapter 3 October 13, 2012 10 / 10