next up previous
Next: Summary of codes' performances Up: Error correcting codes for Previous: Decoding

Summary of Hamming code properties

There are eight distinct syndromes. These can be divided into seven non-zero syndromes -- that's one for each of the one-bit error patterns -- and the all-zero syndrome, corresponding to the zero-noise case.

The optimal decoder takes no action if the syndrome is zero, otherwise it uses this mapping of non-zero syndromes onto one-bit error patterns to unflip the suspect bit.

There is a decoding error if the four decoded bits tex2html_wrap_inline3380 do not all match the source bits tex2html_wrap_inline3382. The probability of block error tex2html_wrap_inline3384 is the probability that one or more of the decoded bits in one block fail to match the corresponding source bits,
equation2144
The probability of bit error tex2html_wrap_inline3165 is the average probability per decoded bit that a decoded bit fails to match the corresponding source bit,
equation2148

In the case of the Hamming code, a decoding error will occur whenever the noise has flipped more than one bit in a block of seven. The probability of block error is thus the probability of two or more bits' being flipped in a block. This probability goes as tex2html_wrap_inline3388, like the probability of error for R3. But notice that the Hamming code communicates at a greater rate, R=4/7.

Figure 1.11 shows a binary image transmitted over a binary symmetric channel using the (7,4) Hamming code. About 7% of the decoded bits are in error. Notice that the errors are correlated with each other: often two or three successive bits are flipped.

Decode the received strings:

  1. tex2html_wrap_inline3392
  2. tex2html_wrap_inline3394
  3. tex2html_wrap_inline3396
  4. tex2html_wrap_inline3398.
  1. Calculate the probability of block error tex2html_wrap_inline3400 of the Hamming (7,4) code as a function of the noise level f and show that to leading order it goes as tex2html_wrap_inline3404.
  2. Show that to leading order the probability of bit error tex2html_wrap_inline3171 goes as tex2html_wrap_inline3408.
Hamming (7,4) code. Find some noise vectors which give the all-zero syndrome (that is, noise vectors which leave all the parity checks unviolated). How many such noise vectors are there? Hamming (7,4) code. It was asserted above that a block decoding error will result whenever two or more bits are flipped in a single block. Show that this is indeed so. [In principle, there might be error patterns which, after decoding, led only to the corruption of the parity bits, without the source bits' being incorrectly decoded.] Consider the encoder for the repetition code tex2html_wrap_inline3410. Another way of viewing this code is as a concatenation of tex2html_wrap_inline3412 with tex2html_wrap_inline3412. That is, we encode the source stream with tex2html_wrap_inline3412, then encode its output with tex2html_wrap_inline3412. We could call this code `tex2html_wrap_inline3420' This motivates an alternative decoding algorithm, in which we decode the bits three at a time using the decoder for tex2html_wrap_inline3412; then decode the decoded bits from that first decoder using the decoder for tex2html_wrap_inline3412.

Evaluate the probability of error of this decoder and compare it with the probability of error of the optimal decoder for tex2html_wrap_inline3410.

Does the concatenated encoder and decoder tex2html_wrap_inline3420 have any advantages over that of tex2html_wrap_inline3410?


next up previous
Next: Summary of codes' performances Up: Error correcting codes for Previous: Decoding

David J.C. MacKay
Sat May 10 23:05:10 BST 1997