Hamming distance
Given a received codeword formula_6, minimum distance decoding picks a codeword formula_7 to minimise the Hamming distance: