Hamming code sample problem 5 solution

Solution: consider all pairs of 2 codes from the set:

(a)00001111000
(b)00110011001
(a^b)00111100001

Hamming distance = 5

(a)00001111000
(c)01010101010
(a^c)01011010010

Hamming distance = 5

b00110011001
c01010101010
(b^c)01100110011

Hamming distance = 6

The Hamming distance for a set of codes is the smallest distance for any pair of its members. In this case, the Hamming distance for the set is 5.