Example 8.16.
Suppose that we have a code that consists of the following 7-tuples:
It is a straightforward though tedious task to verify that this code is also a subgroup of and, therefore, a group code. This code is a single error-detecting and single error-correcting code, but it is a long and tedious process to compute all of the distances between pairs of codewords to determine that It is much easier to see that the minimum weight of all the nonzero codewords is As we will soon see, this is no coincidence. However, the relationship between weights and distances in a particular code is heavily dependent on the fact that the code is a group.