Docsity

Homework 5 Solution - Information Theory | ECE 6605, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
Solutions to Homework # 5
ECE 6605 Information Theory 10/27/03
Prof. Steven W McLaughlin
1. a) Following are the tables, the numbers labeling the tables refer to how many codewords have
been encoded when this table is obtained:
Table 0
X C
X
α
1
β
2
Table 1
X C
X
α
1
β
2
αα
3
Table 2
X C
X
α
1
β
2
αα
3
ααα
4
Table 3
X C
X
α
1
β
2
αα
3
ααα
4
αβ
5
Table 4
X C
X
α
1
β
2
αα
3
αα α
4
αβ
5
ββ
6
Table 5
X C
X
α
1
β
2
αα
3
ααα
4
αβ
5
ββ
6
βα
7
Table 6
X C
X
α
1
β
2
αα
3
ααα
4
αβ
5
ββ
6
βα
7
αβ β
8
Table 7
X C
X
α
1
β
2
αα
3
ααα
4
αβ
5
ββ
6
βα
7
αβ β
8
ββα
9
Table 8
X C
X
α
1
β
2
αα
3
ααα
4
αβ
5
ββ
6
βα
7
αβ β
8
ββα
9
αααβ
10
Table 9
X C
X
α
1
β
2
αα
3
αα α
4
αβ
5
ββ
6
βα
7
αβ β
8
ββα
9
αα αβ
10
βαα
11
The encoding then is as follows
α

1
αα

3
α

1
β

2
β

2
αβ

5
ββ

6
ααα

4
βα

7
αα α

4
b) Once again we will give the tables as they are built and then go into the decoded word and the
correct encoding.
Table 0
X C
X
c 1
d 2
Table 1
X C
X
c 1
d 2
cd 3
Table 2
X C
X
c 1
d 2
cd 3
dc 4
Table 3
X C
X
c 1
d 2
cd 3
dc 4
cc 5
Table 4
X C
X
c 1
d 2
cd 3
dc 4
cc 5
cdd 6
pf3
pf4

Partial preview of the text

Download Homework 5 Solution - Information Theory | ECE 6605 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Solutions to Homework # 5

ECE 6605 Information Theory 10/27/ Prof. Steven W McLaughlin

  1. a) Following are the tables, the numbers labeling the tables refer to how many codewords have been encoded when this table is obtained: Table 0 X C

X 

α 1 β 2

Table 1 X C

X 

α 1 β 2 αα 3

Table 2 X C

X 

α 1 β 2 αα 3 ααα 4

Table 3 X C

X 

α 1 β 2 αα 3 ααα 4 αβ 5

Table 4 X C

X 

α 1 β 2 αα 3 ααα 4 αβ 5 β β 6

Table 5 X C

X 

α 1 β 2 αα 3 ααα 4 αβ 5 β β 6 β α 7

Table 6 X C

X 

α 1 β 2 αα 3 ααα 4 αβ 5 β β 6 β α 7 αβ β 8

Table 7 X C

X 

α 1 β 2 αα 3 ααα 4 αβ 5 β β 6 β α 7 αβ β 8 β β α 9

Table 8 X C

X 

α 1 β 2 αα 3 ααα 4 αβ 5 β β 6 β α 7 αβ β 8 β β α 9 αααβ 10

Table 9 X C

X 

α 1 β 2 αα 3 ααα 4 αβ 5 β β 6 β α 7 αβ β 8 β β α 9 αααβ 10 β αα 11

The encoding then is as follows

^ α

1

^ αα

3

^ α

1

^ β

2

^ β

2

^ αβ

5

^ β β

6

4

^ β α

7

4

b) Once again we will give the tables as they are built and then go into the decoded word and the correct encoding. Table 0 X C^

X 

c 1 d 2

Table 1 X C

X 

c 1 d 2 cd 3

Table 2 X C

X 

c 1 d 2 cd 3 dc 4

Table 3 X C

X 

c 1 d 2 cd 3 dc 4 cc 5

Table 4 X C

X 

c 1 d 2 cd 3 dc 4 cc 5 cdd 6

Table 5 X C

X 

c 1 d 2 cd 3 dc 4 cc 5 cdd 6 dcc 7

Table 6 X C

X 

c 1 d 2 cd 3 dc 4 cc 5 cdd 6 dcc 7 ccc 8

Table 7 X C

X 

c 1 d 2 cd 3 dc 4 cc 5 cdd 6 dcc 7 ccc 8 dccc 9

Table 7 (corr) X C

X 

c 1 d 2 cd 3 dc 4 cc 5 cdd 6 dcc 7 ccc 8 cdc 9

Table 8 (corr) X C

X 

c 1 d 2 cd 3 dc 4 cc 5 cdd 6 dcc 7 ccc 8 cdc 9 cccd 10

Therefore the decoded message will be

^ c

1

^ d

2

^ c

1

^ cd

3

^ dc

4

^ cc

5

^ c

1

^ dcc

7

^ cd

3

However the correct encoding (obtained using table 7 & 8 in their corrected versions) should have been

 c

1

 d

2

 c

1

 cd

3

 dc

4

 cc

5

 cd

3

 ccc

8

 d

2

2. To obtain the codeword for the source output, we start with the interval  0 1 and divide it, select

the interval of the first source output, expand it and then divide it again as shown in figure 1. We then use the midpoint of the last segment, which is 0.012471805, find its binary representation

and truncate it to log 2 p   1 where p   0  01250461 0 012439 bits, this gives us 15 bits and

therefore the codeword is 000000110011000 The entropy of a symbol is H

0  1   0 469 bits/symbol, therefore the entropy of the encoded

sequence is 8

0  469   3 752 bits, however we are using 15 bits.

Using Ln ^1 n H

X 1  Xn  2 n we get that the average codeword length for eight symbols is

Ln  0  469 ^28  0 719 bits. For this particular codeword we have 158  1 875 bits/symbol

3. We need to find C  max p  x  I

X ; Y ^ H

Y ^ H

Y  X . We first calculate H

Y  X  using the data

from the transition matrix, let Pr

X  0   π and Pr

X  1  1 π, we have:

H

Y  X  ∑

X  0 1

p

x  ∑

Y  0 1

p

y  x  log 2 1! p

y  x 

X  0 1

p

x  H

Y  x 

 π 1 log 2 1  0 log 2 0 "

log 2

Now we also know that Pr

Y  0   Pr

Y  0  X  0  Pr

X  0  # Pr

Y  0  X  1  Pr

X  1  $ π ^12

1 π^ ^

2 and

This is reasonable, since Pr

X  1 $ p is the probability of the noisy input to the channel

(remember, 0 is received perfectly). Then we can calculate capacity in bits as H

  1. In this problem we have to consider special cases of the value a.

a  0 In this case the channel reduces to a BSC with crossover probability p  0, therefore C  1.

a -, 1 In both of these cases the channel has 3 outputs, either. 0 1 2 / if a  1 or. 0 1 0 1 / if

a ^1 1. In both cases the channel becomes a Binary Erasure Channel, which was discussed

in class, and C  1 α. In our particular case α  1! 2 and therefore C  1 !2.

a 2 435 6. 0 , 1 / In this case if we know Y we know which X was sent and therefore H

X  Y  0. This means

that max p  x  I

X ; Y  becomes max p  x  H

X  which is clearly equal to one and therefore C  1

5. Assume that the Xi are chosen i.i.d. with p  1! 2 then

n

I

X 1 X 2  Xn ; Y 1 Y 2 7 Yn 

n

H

X 1 X 2  Xn  H

X 1 X 2 7 Xn  Y 1 Y 2 7 Yn  8

n

H

X 1 X 2  Xn  H

Z 1 Z 2  Zn  Y 1 Y 2 8 Yn  8

n

H

X 1 X 2 7 Xn  H

Z 1 Z 2 7 Zn  8

n

H

X 1 

n

i : 1

n

i : 1

H

Zi  8

1 H

p 

where we used for the second equality the equation Yi  Xi ; Zi which tells us those entropies are

the same and for the first inequality the fact that conditioning reduces entropy. For the second inequality we used H

X 1 X 2 7 Xn 

n

i : 1 H^

Xi  with equality iff the Xi are independent.

Now we know that

max

p  X 1 X 2 =<><><? Xn 

I

X 1 X 2 8 Xn ; Y 1 Y 2 7 Yn 

I^

X 1 X 2  Xn ; Y 1 Y 2 8 Yn  p  x

1 x 2 =<><><?^ xn^^ @:^ Bern^ 

1

and since C ^1 n max p  X

1 X 2 ><=<><^ Xn^^ 

I

X 1 X 2 8 Xn ; Y 1 Y 2  Yn  we have C

1 H

p  thus channels

with memory have higher capacity. Intuitively we can explain it by observing that the memory implies that there will be correlation between the noise samples, we could then use a detector that extracts the information from the past samples to combat the present noise, thereby increasing capacity.