- #1
annie122
- 51
- 0
Is there a relationship between the distance and weight of a binary code?
I want to find the weight and distance of the code consisting of the codewords:
0000 0000
0010 1110
0101 1100
1011 1010
1110 0101
1100 1011
0111 0011
1001 0111
(spaces inserted for readability)
The weight can be checked easily by hand, but I don't want to check 21 distances.
Is there a quicker way?
One idea I had is [tex]d(C) \leq min(w(ci) + w(cj))[/tex], from the triangle inequality.
I want to find the weight and distance of the code consisting of the codewords:
0000 0000
0010 1110
0101 1100
1011 1010
1110 0101
1100 1011
0111 0011
1001 0111
(spaces inserted for readability)
The weight can be checked easily by hand, but I don't want to check 21 distances.
Is there a quicker way?
One idea I had is [tex]d(C) \leq min(w(ci) + w(cj))[/tex], from the triangle inequality.