01.08.2013 Views

Information Theory, Inference, and Learning ... - MAELabs UCSD

Information Theory, Inference, and Learning ... - MAELabs UCSD

Information Theory, Inference, and Learning ... - MAELabs UCSD

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Copyright Cambridge University Press 2003. On-screen viewing permitted. Printing not permitted. http://www.cambridge.org/0521642981<br />

You can buy this book for 30 pounds or $50. See http://www.inference.phy.cam.ac.uk/mackay/itila/ for links.<br />

208 13 — Binary Codes<br />

13.3 Perfect codes<br />

1 2<br />

A t-sphere (or a sphere of radius t) in Hamming space, centred on a point x,<br />

is the set of points whose Hamming distance from x is less than or equal to t.<br />

The (7, 4) Hamming code has the beautiful property that if we place 1spheres<br />

about each of its 16 codewords, those spheres perfectly fill Hamming<br />

space without overlapping. As we saw in Chapter 1, every binary vector of<br />

length 7 is within a distance of t = 1 of exactly one codeword of the Hamming<br />

code.<br />

A code is a perfect t-error-correcting code if the set of t-spheres centred<br />

on the codewords of the code fill the Hamming space without overlapping.<br />

(See figure 13.4.)<br />

Let’s recap our cast of characters. The number of codewords is S = 2 K .<br />

The number of points in the entire Hamming space is 2 N . The number of<br />

points in a Hamming sphere of radius t is<br />

t<br />

w=0<br />

t<br />

. . .<br />

t<br />

t<br />

<br />

N<br />

. (13.1)<br />

w<br />

For a code to be perfect with these parameters, we require S times the number<br />

of points in the t-sphere to equal 2 N :<br />

for a perfect code, 2 K<br />

or, equivalently,<br />

t<br />

<br />

N<br />

w<br />

t<br />

<br />

N<br />

w<br />

w=0<br />

w=0<br />

= 2 N<br />

(13.2)<br />

= 2 N−K . (13.3)<br />

For a perfect code, the number of noise vectors in one sphere must equal<br />

the number of possible syndromes. The (7, 4) Hamming code satisfies this<br />

numerological condition because<br />

1 +<br />

<br />

7<br />

= 2<br />

1<br />

3 . (13.4)<br />

Figure 13.4. Schematic picture of<br />

part of Hamming space perfectly<br />

filled by t-spheres centred on the<br />

codewords of a perfect code.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!