10.07.2015 Views

Information Theory, Inference, and Learning ... - Inference Group

Information Theory, Inference, and Learning ... - Inference Group

Information Theory, Inference, and Learning ... - Inference Group

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Copyright Cambridge University Press 2003. On-screen viewing permitted. Printing not permitted. http://www.cambridge.org/0521642981You can buy this book for 30 pounds or $50. See http://www.inference.phy.cam.ac.uk/mackay/itila/ for links.332 25 — Exact Marginalization in Trellises++=Figure 25.6. Trellises for foursubcodes of the (7, 4) Hammingcode (left column), <strong>and</strong> thesequence of trellises that are madewhen constructing the trellis forthe (7, 4) Hamming code (rightcolumn).Each edge in a trellis is labelledby a zero (shown by a square) ora one (shown by a cross).=+=The (7, 4) Hamming code generated by this matrix differs by a permutationof its bits from the code generated by the systematic matrix used in Chapter1 <strong>and</strong> above. The parity-check matrix corresponding to this permutation is:⎡H = ⎣1 0 1 0 1 0 10 1 1 0 0 1 10 0 0 1 1 1 1⎤⎦ . (25.20)The trellis obtained from the permuted matrix G given in equation (25.19) isshown in figure 25.7a. Notice that the number of nodes in this trellis is smallerthan the number of nodes in the previous trellis for the Hamming (7, 4) codein figure 25.1c. We thus observe that rearranging the order of the codewordbits can sometimes lead to smaller, simpler trellises.Trellises from parity-check matricesAnother way of viewing the trellis is in terms of the syndrome. The syndromeof a vector r is defined to be Hr, where H is the parity-check matrix. A vectoris only a codeword if its syndrome is zero. As we generate a codeword we c<strong>and</strong>escribe the current state by the partial syndrome, that is, the product ofH with the codeword bits thus far generated. Each state in the trellis is apartial syndrome at one time coordinate. The starting <strong>and</strong> ending states areboth constrained to be the zero syndrome. Each node in a state represents adifferent possible value for the partial syndrome. Since H is an M ×N matrix,where M = N − K, the syndrome is at most an M-bit vector. So we need atmost 2 M nodes in each state. We can construct the trellis of a code from itsparity-check matrix by walking from each end, generating two trees of possiblesyndrome sequences. The intersection of these two trees defines the trellis ofthe code.In the pictures we obtain from this construction, we can let the verticalcoordinate represent the syndrome. Then any horizontal edge is necessarilyassociated with a zero bit (since only a non-zero bit changes the syndrome)(a)(b)Figure 25.7. Trellises for thepermuted (7, 4) Hamming codegenerated from (a) the generatormatrix by the method offigure 25.6; (b) the parity-checkmatrix by the method on page332.Each edge in a trellis is labelledby a zero (shown by a square) ora one (shown by a cross).

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

Saved successfully!

Ooh no, something went wrong!