The block length is the length of each codeword, which is 6 here. The dimension is
\(\log_2(8)=3\) since there are 8 codewords and this is a binary code. The rate is the ratio of dimension to block length, which is
\(3/6=1/2\text{.}\) To find the minimum distance, we compute the Hamming distance between each pair of codewords. This is slightly tedious, but doing so systematically, we find that the minimum distance is 2. See the table below for the distances between each pair of codewords, ordered as in the list above.
|
| \(c_{1}\) |
0 |
4 |
4 |
4 |
6 |
2 |
2 |
2 |
| \(c_{2}\) |
4 |
0 |
4 |
4 |
2 |
4 |
2 |
2 |
| \(c_{3}\) |
4 |
4 |
0 |
4 |
2 |
2 |
4 |
2 |
| \(c_{4}\) |
4 |
4 |
4 |
0 |
2 |
2 |
2 |
4 |
| \(c_{5}\) |
6 |
2 |
2 |
2 |
0 |
4 |
4 |
4 |
| \(c_{6}\) |
2 |
4 |
2 |
2 |
4 |
0 |
4 |
4 |
| \(c_{7}\) |
2 |
2 |
4 |
2 |
4 |
4 |
0 |
4 |
| \(c_{8}\) |
2 |
2 |
2 |
4 |
4 |
4 |
4 |
0 |
A quicker way to see this is that each codeword has even length and an even number of ones, so the distance must be even. Since there are codewords that differ in only two positions (for example,
\(000000\) and
\(010001\)), the minimum distance is 2.