Docsity

Coding Theory Homework: Hamming Distance, Bounds, and MacWilliams Matrix - Prof. Faramarz , Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
GEORGIA INSTITUTE OF TECHNOLOGY
School of Electrical and Computer Engineering
ECE 6606
Coding Theory
HWK #2, Due: Friday June 5
Problem 1-4: Solve the questions 2,11,12,21 from Chapter 4 of the textbook.
Problem 5: Prove that the Hamming distance dH(x, y) satisfies the triangle inequality,
i.e., for any three vectors x,y, and z, we have:
dH(x, y)≤dH(x, z) + dH(z , y)
Problem 6: Hamming bound states that for a binary code {c1,...,cM}of length n, which
is capable of correcting terrors, we have
M≤2n
V2(n, t)
where V2(n, t) denotes the discrete ā€œVolumeā€ of an n-dimensional Hamming sphere of
radius t.
(a) Compute the Hamming bound on Mfor the following pairs of (n, t):(3,1), (5,2),
(7,3), (9,4), ....
(b) Do you see a pattern? If so, state the generalization and prove that it is true.
Problem 7: Let PS,PE, and PFbe the ā€œprobability of decoder successā€, ā€œprobability
of decoder errorā€, and ā€œprobability of decoder failureā€, respectively. In this problem
you are asked to actually compute these three probabilities, as a function of p, for the
following two codes on a binary symmetric channel with crossover probability p.
(a) The (7,4) Hamming code, whose decoder is designed to correct all error patterns
of weight 0 and 1, and no others.
(b) The expurgated (7,3) Hamming code, whose decoder is designed to correct all
error patterns of weight 0 and 1, and no others. Note that the parity-check
matrix for this code is:
H=





0111100
1011010
1101001
1111111





1
pf2

Partial preview of the text

Download Coding Theory Homework: Hamming Distance, Bounds, and MacWilliams Matrix - Prof. Faramarz and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

GEORGIA INSTITUTE OF TECHNOLOGY

School of Electrical and Computer Engineering

ECE 6606

Coding Theory

HWK #2, Due: Friday June 5

Problem 1-4: Solve the questions 2,11,12,21 from Chapter 4 of the textbook.

Problem 5: Prove that the Hamming distance dH (x, y) satisfies the triangle inequality, i.e., for any three vectors x, y, and z, we have: dH (x, y) ≤ dH (x, z) + dH (z, y)

Problem 6: Hamming bound states that for a binary code {c 1 ,... , cM } of length n, which is capable of correcting t errors, we have

M ≤ 2 n V 2 (n, t) where V 2 (n, t) denotes the discrete ā€œVolumeā€ of an n-dimensional Hamming sphere of radius t. (a) Compute the Hamming bound on M for the following pairs of (n, t):(3,1), (5,2), (7,3), (9,4), .... (b) Do you see a pattern? If so, state the generalization and prove that it is true.

Problem 7: Let PS , PE , and PF be the ā€œprobability of decoder successā€, ā€œprobability of decoder errorā€, and ā€œprobability of decoder failureā€, respectively. In this problem you are asked to actually compute these three probabilities, as a function of p, for the following two codes on a binary symmetric channel with crossover probability p. (a) The (7,4) Hamming code, whose decoder is designed to correct all error patterns of weight 0 and 1, and no others. (b) The expurgated (7,3) Hamming code, whose decoder is designed to correct all error patterns of weight 0 and 1, and no others. Note that the parity-check matrix for this code is:

H =

  

  

Problem 8: This problem concern with the (n + 1) Ɨ (n + 1) MacWilliams matrix M (n).

(a) Explicitly compute the MacWilliams matrices M (3)^ and M (4). (b) Find the row sums of the matrix M (3)^ and the row sums of the matrix M (4). Make a conjecture as to what the row sums for M (n)^ will be in general. (c) Prove the conjecture you made in part (b).

Problem 9: Consider the general (2m^ āˆ’ 1 , 2 m^ āˆ’ 1 āˆ’ m) Hamming code. Assume that in the dual code, which is a (2m^ āˆ’ 1 , m) code, all nonzero codewords have weight 2māˆ’^1. Use MacWilliams identities to find a general formula for the number of the codewords of weight three in the original Hamming code. So I can check your work, please use your formula to compute this number for m = 3, 4 and 5.