a) d(x,y) = 0 iff x=y (Reflexivity) b) d(x,y) = d(y,x) (Symmetry) b) d(x,y) =< d(y,z) + d(x,z) (Triangle Inequality)Show that the Hamming distance is a metric function.
Hint.
[ 0 0 2 2 0 2 ] [ 2 2 0 2 1 2 ] [ 1 1 2 0 2 2 ] [ 1 1 0 1 2 1 ]
[ 101011 ] G = [ 011110 ] [ 000111 ]
Hint. Assume that GF(7) is a ring. Then use the addition and multiplication tables for GF(7) to prove that GF(7) is a commutative ring with identity. For example, multiplication is commutative because the multiplication table is symmetric about the diagonal. Next prove that each non-zero element of GF(7) has a multiplicative inverse either by inspecting the multiplication table for GF(7) or by listing the multiplicative inverses for all non-zero elements of GF(7).
Last Modified: October 3, 1999