Minimum Hamming Distance for Parity Check Matrix

In summary, the solution made in that video is mostly guessing about which columns combination can be equals to zero and I found 1st, 2nd, and 3rd rows as well as 2nd, 3rd, 4th rows are equals to zero so the minimum hamming distance is 3.
  • #1
nao113
68
13
Homework Statement
Compute the minimum Hamming distance of
the code whose parity-check matrix is
Relevant Equations
the minimum Hamming distance is the smallest Hamming distance between all possible pairs of strings in that set.
Screenshot 2023-05-01 at 13.09.42.png

My answer:
Then, if I am not mistaken, the solution made in that video is mostly guessing about which columns combination can be equals to zero
and I found 1st, 2nd, and 3rd rows as well as 2nd, 3rd, 4th rows are equals to zero so the minimum hamming distance is 3 since my answer is mostly trial and error rather than calculating so I am not sure.
 
Physics news on Phys.org
  • #2
nao113 said:
Homework Statement: Compute the minimum Hamming distance of
the code whose parity-check matrix is
Relevant Equations: the minimum Hamming distance is the smallest Hamming distance between all possible pairs of strings in that set.

View attachment 325735
My answer:
Then, if I am not mistaken, the solution made in that video is mostly guessing about which columns combination can be equals to zero
What video?
What does "guessing about which columns combination can be equals to zero"
nao113 said:
and I found 1st, 2nd, and 3rd rows as well as 2nd, 3rd, 4th rows are equals to zero so the minimum hamming distance is 3 since my answer is mostly trial and error rather than calculating so I am not sure.
How are 1st, 2nd, and 3rd rows equal to zero? What operation are you doing. Same question for 2nd, 3rd, and 4th rows.
 
  • #3
That should be the minimum Hamming distance between all valid codewords, all 16 encoded strings.

H (parity check matrix):

1 0 1 1 1 0 0 0
1 1 0 1 0 1 0 0
0 1 1 1 0 0 1 0
1 1 1 1 1 1 1 1

Convert H to systematic:
xor first three rows to last row, creates identity matrix on right:

1 0 1 1 1 0 0 0
1 1 0 1 0 1 0 0
0 1 1 1 0 0 1 0
1 1 1 0 0 0 0 1

Transpose H

1 1 0 1
0 1 1 1
1 0 1 1
1 1 1 0
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1

Create generator matrix G from H
(last four columns = first four rows of transposed H):

1 0 0 0 1 1 0 1
0 1 0 0 0 1 1 1
0 0 1 0 1 0 1 1
0 0 0 1 1 1 1 0

All 16 codewords: encoded values for data = hex 0 to hex f:

00 1e 2b 35 47 59 6c 72 8d 93 a6 b8 ca d4 e1 ff


Minimum Hamming distance between all 120 possible pairs of codewords is 4 bits. This allows a single bit error to be detected and corrected, and also a double bit error to be detected (but not corrected). A single bit error will be equal to a column of systematic H or row of transposed H:

bit:check value (hex)
7:d
6:7
5:b
4:e
3:8
2:4
1:2
0:1
 
Last edited:

FAQ: Minimum Hamming Distance for Parity Check Matrix

What is the Minimum Hamming Distance in the context of a Parity Check Matrix?

The Minimum Hamming Distance in the context of a Parity Check Matrix is the smallest number of positions in which any two codewords differ. It is a crucial parameter as it determines the error-detecting and error-correcting capabilities of the code.

How is the Minimum Hamming Distance related to error detection and correction?

The Minimum Hamming Distance (d_min) directly affects the error detection and correction capabilities of a code. A code with a minimum Hamming distance of d_min can detect up to (d_min - 1) errors and can correct up to ⌊(d_min - 1) / 2⌋ errors.

How do you calculate the Minimum Hamming Distance from a Parity Check Matrix?

To calculate the Minimum Hamming Distance from a Parity Check Matrix, you need to find the smallest Hamming weight (number of non-zero elements) of any non-zero codeword in the code. This often involves examining the linear combinations of the rows of the Parity Check Matrix and identifying the smallest weight among them.

What role does the Parity Check Matrix play in determining the Minimum Hamming Distance?

The Parity Check Matrix (H) defines the set of valid codewords in a linear block code. By analyzing the linear dependencies among the rows of H, one can determine the Minimum Hamming Distance. The structure of H directly influences the minimum weight of the codewords, thereby determining the Minimum Hamming Distance.

Can the Minimum Hamming Distance be increased, and if so, how?

Yes, the Minimum Hamming Distance can be increased by designing codes with more redundancy or by choosing a Parity Check Matrix with specific properties that lead to higher minimum weights of codewords. Techniques such as adding more parity bits or using advanced coding schemes like Reed-Solomon or BCH codes can help achieve a higher Minimum Hamming Distance.

Similar threads

Replies
1
Views
1K
Replies
2
Views
1K
Replies
7
Views
2K
Replies
9
Views
4K
Replies
3
Views
1K
Replies
9
Views
3K
Replies
1
Views
1K
Back
Top