Docsity

Code Weight and Free Distance Analysis: Solutions to Problem Set 9, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
University of Illinois Fall 2004
ECE 556/CS 577/MATH 579: Solutions to Problem Set 9
1. For any information polynomial u(x), the weight of the codeword C(x) = [u(x), u(x)g(x)]
is wt(u(x)) + wt(u(x)g(x)). Now, if g(x) = 1 or xor x2, then wt(C(x)) = 2 ·wt(u(x))
and thus, choosing u(x) = 1, we see that there exist codewords of weight 2. The same
choice of u(x) gives codewords of weight 3 if g(x) is 1 + x, or 1 + x2or x+x2. Finally,
if g(x) = 1 + x+x2, the codeword has weight 4. Hence, the best free distance available
for systematic codes is 4. In contrast, the ad nauseam code has free distance 5 for the
same memory order. This is true more generally as well: for any specified memory
order, the best nonsystematic codes have higher free distance than the best systematic
codes.
2. There is a typographical error in the problem statement: the rate of the code is not
3/4 but 2/3. The original code has generator matrix Gas shown below. The boldface
entries are the ones that get deleted in the puncturing, resulting in the new generator
matrix ˆ
Gshown below.
G=
11 01 11 00 00 00· · ·
00 11 01 11 00 00· · ·
00 00 11 01 11 00· · ·
00 00 00 11 01 11· · ·
· · · · · · · · · · · ·
⇒ˆ
G=
111 110 000 000 · · ·
001 011 000 000 · · ·
000 111 110 000 · · ·
000 001 011 000 · · ·
000 000 111 110 · · ·
000 000 001 011 · · ·
· · · · · · · · ·
where the block-structured form is
ˆ
G=
ˆ
G0ˆ
G10 0 0 · · ·
0ˆ
G0ˆ
G10 0 · · ·
0 0 ˆ
G0ˆ
G10· · ·
000 ˆ
G0ˆ
G1· · ·
with ˆ
G0=·111
001¸and ˆ
G1=·110
011¸.
(a) We readily find the column distances as
•d0= 1 (second row of ˆ
G0),
•d1= 2 (second row of ˆ
G0:ˆ
G1+ either row of 0:ˆ
G0),
•d2= 3 (second row of ˆ
G0:ˆ
G1:0),
and clearly we cannot improve on this. The free distance of this code is 3.
(b) The polynomial form of the generator matrix is easily seen to be
ˆ
G(x) = ·1 + x1 + x1
0x1 + x¸.
Compare this to the code matrix of Problem 3 where we will also discover that
the free distance is 3.
pf3
pf4

Partial preview of the text

Download Code Weight and Free Distance Analysis: Solutions to Problem Set 9 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

University of Illinois Fall 2004

ECE 556/CS 577/MATH 579: Solutions to Problem Set 9

  1. For any information polynomial u(x), the weight of the codeword C(x) = [u(x), u(x)g(x)] is wt(u(x)) + wt(u(x)g(x)). Now, if g(x) = 1 or x or x^2 , then wt(C(x)) = 2 · wt(u(x)) and thus, choosing u(x) = 1, we see that there exist codewords of weight 2. The same choice of u(x) gives codewords of weight 3 if g(x) is 1 + x, or 1 + x^2 or x + x^2. Finally, if g(x) = 1 + x + x^2 , the codeword has weight 4. Hence, the best free distance available for systematic codes is 4. In contrast, the ad nauseam code has free distance 5 for the same memory order. This is true more generally as well: for any specified memory order, the best nonsystematic codes have higher free distance than the best systematic codes.
  2. There is a typographical error in the problem statement: the rate of the code is not 3 /4 but 2/3. The original code has generator matrix G as shown below. The boldface entries are the ones that get deleted in the puncturing, resulting in the new generator matrix Gˆ shown below.

G =

⇒ Gˆ =

where the block-structured form is

Gˆ =

G^ ˆ 0 Gˆ 1 0 0 0 · · ·

0 Gˆ 0 Gˆ 1 0 0 · · ·

0 0 Gˆ 0 Gˆ 1 0 · · ·

0 0 0 Gˆ 0 Gˆ 1 · · ·

with Gˆ 0 =

[

]

and Gˆ 1 =

[

]

(a) We readily find the column distances as

  • d 0 = 1 (second row of Gˆ 0 ),
  • d 1 = 2 (second row of Gˆ 0 : Gˆ 1 + either row of 0 : Gˆ 0 ),
  • d 2 = 3 (second row of Gˆ 0 : Gˆ 1 : 0 ), and clearly we cannot improve on this. The free distance of this code is 3. (b) The polynomial form of the generator matrix is easily seen to be

Gˆ(x) =

[

1 + x 1 + x 1 0 x 1 + x

]

Compare this to the code matrix of Problem 3 where we will also discover that the free distance is 3.

It is easy to see that the 2 × 2 determinants are x^2 + x, x^2 , and 1 + x + x^2 which are relatively prime polynomials. Hence, the encoding is noncatastrophic, and feedforward inverses exist. The original code had one input data stream u(x) whereas the punctured code has two input data streams u(0)(x) and u(1)(x) consisting of the even-numbered bits and the odd-numbered bits respectively of u(x). That is, u(0)(x) =

i u^2 ix

i (^) and u(1)(x) = ∑ j u^2 j+1x

j (^) while u(x) = u(0)(x (^2) )+

x·u(1)(x^2 ) We can recover the two data streams u(0)(x) and u(1)(x) with unit delay by noting that C(0)(x) + C(1)(x) = x · u(1)(x)

and that the sum of all three code streams is u(0)(x) + u(1)(x), from which we get that (1 + x) · C(0)(x) + (1 + x) · C(1)(x) + x · C(2)(x) = x · u(0)(x). It is also easy to construct delay-free inverses as

u(0)(x) = x · C(0)(x) + (1 + x) · C(1)(x) + x · C(2)(x) u(1)(x) = x^2 · C(0)(x) + (1 + x + x^2 ) · C(1)(x) + (1 + x^2 ) · C(2)(x)

  1. (a) The encoder is shown on the last page.

(b) The state transition diagram for the encoder is also shown on the last page. Let A 00 (x), A 01 (x), A 10 (x), and A 11 (x) denote the weight enumerators of the paths that start at state 00 and end in states 00, 01, 10, and 11 respectively. No path may pass through 00, but any path ending in a nonzero state might have passed through that state multiple times. The state transition diagram now implies that

A 00 (x) = x^2 A 01 (x) + x^2 A 10 (x) + x^2 A 11 (x) A 01 (x) = xA 01 (x) + x^3 A 10 (x) + xA 11 (x) + x A 10 (x) = xA 01 (x) + xA 10 (x) + xA 11 (x) + x^3 A 11 (x) = x^2 A 01 (x) + A 10 (x) + x^2 A 11 (x) + x^2

Solving for A(x) = A 00 (x), we get

A(x) =

x^3 (1 + x + 2x^2 − x^3 − x^4 + x^5 ) 1 − 3 x + x^3 − x^4

= x^3 + 4x^4 + · · ·

The free distance is d∞ = 3.

  1. (a) There are 2m+1^ − 1 nonzero binary polynomials of degree ≤ m, and E(m) = 2m of these have degree exactly m while 2m^ − 1 have degrees smaller than m. Note that E(0) = 1. (b) There would be (2m+1^ − 1)n^ choices for the n g(i)(x)’s if it weren’t for the need to have at least one polynomial of degree exactly m. Since all n polynomials have degree < m for (2m^ − 1)n^ of these choices, it follows that

L(m) = (2m+1^ − 1)n^ − (2m^ − 1)n.

If the n polynomials have a gcd h(x) of degree m − i, then [ g(0)(x) h(x)

g(1)(x) h(x)

g(n−1)(x) h(x)

]

011

001

Shift register encoder for (3,2) code

110

000

100

11

00

01 10

000

111 001

(^111100)

010 010

101

110

The state transition diagram for the encoder is as shown on the left. For clarity, the encoder inputs (which happen to be just the next state), are not shown.

State Transition diagram for the Encoder

011

101

u

u

(0)

(1)

C

C

C

(0)

(2)

(1)