Minimum Hamming Distance for Parity Check Matrix

  • Context: Engineering 
  • Thread starter Thread starter nao113
  • Start date Start date
  • Tags Tags
    Matrix Minimum Parity
Click For Summary
SUMMARY

The minimum Hamming distance for the given parity-check matrix H is 4 bits, determined by analyzing all 120 possible pairs of codewords derived from the matrix. The process involves converting the parity-check matrix to a systematic form, creating a generator matrix G, and calculating the Hamming distance between the encoded values. The encoded values range from hex 00 to hex ff, allowing for the detection and correction of single-bit errors and detection of double-bit errors.

PREREQUISITES
  • Understanding of Hamming distance and its significance in error detection and correction.
  • Familiarity with parity-check matrices and their role in coding theory.
  • Knowledge of systematic forms of matrices and how to convert between different matrix representations.
  • Ability to perform XOR operations on binary matrices.
NEXT STEPS
  • Study the process of converting a parity-check matrix to a systematic form.
  • Learn how to create and utilize generator matrices in coding theory.
  • Explore the calculation of Hamming distances between codewords in error correction codes.
  • Investigate the implications of minimum Hamming distance on error detection and correction capabilities.
USEFUL FOR

Students and professionals in computer science, particularly those focused on coding theory, error detection, and correction methodologies. This discussion is beneficial for anyone working with data transmission and integrity in communication systems.

nao113
Messages
68
Reaction score
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
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.
 
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:

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
5
Views
7K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 5 ·
Replies
5
Views
5K