Docsity

Encoding and Decoding Arithmetic Information Theory - Assignment 5 | ECE 6605, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 6605
Information Theory
HW #5: Assigned October 17 2003, due October 27,2003.
1) Lempel Ziv problem This problem concerns the Lempel-Ziv (LZ) data compression
algorithm. Answer parts a) and b) below. The sources and codes in parts a) and b) are
unrelated.
a) Encoding. Given that the LZ encoder starts with the following table, construct the
table and indicate the transmitted codewords for the source output X. You may assume
that the source outputs either a or b. (You can number the codewords 1,2,3... )
X
C(X)
a
b
1
2
Source output: X= a a a a b b a b b b a a a b a a a a
b) Decoder. In this part you will be the decoder. Given the following sequence of
codewords, decode it, and construct the table as you go along. You will start with the
same table the encoder starts with and assume the source outputs two letters c and d.
XC(X)
1
2
c
d
Codeword sequence to be decoded: 1 2 1 3 4 5 1 7 3 (decode this message and
indicate whether this is a valid encoding. If it is not, give the correct codeword for the
source output).
2) Arithmetic coding problem
Consider a binary source that outputs a’s and b’s independently with probabilities
P(a) = 0.1 and P(b) = 0.9
Using arithmetic coding, find the codeword for the following source output and
compare it with the source entropy:
a b a b b b a a
pf3

Partial preview of the text

Download Encoding and Decoding Arithmetic Information Theory - Assignment 5 | ECE 6605 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 6605

Information Theory HW #5: Assigned October 17 2003, due October 27,2003. 1) Lempel Ziv problem This problem concerns the Lempel-Ziv (LZ) data compression algorithm. Answer parts a) and b) below. The sources and codes in parts a) and b) are unrelated. a) Encoding. Given that the LZ encoder starts with the following table, construct the table and indicate the transmitted codewords for the source output X. You may assume that the source outputs either a or b. (You can number the codewords 1,2,3... ) X (^) C(X) a b

Source output: X= a a a a b b a b b b a a a b a a a a b) Decoder. In this part you will be the decoder. Given the following sequence of codewords, decode it, and construct the table as you go along. You will start with the same table the encoder starts with and assume the source outputs two letters c and d. X (^) C(X) 1 2 c d Codeword sequence to be decoded: 1 2 1 3 4 5 1 7 3 (decode this message and indicate whether this is a valid encoding. If it is not, give the correct codeword for the source output). 2) Arithmetic coding problem Consider a binary source that outputs a’s and b’s independently with probabilities P(a) = 0.1 and P(b) = 0. Using arithmetic coding, find the codeword for the following source output and compare it with the source entropy: a b a b b b a a

  1. Capacity of the Z-channel – (sometimes this channel is a model for a single-photon optica communication channel). The Z-channel has binary input and output alphabets and transition probabilities p(y|x) given by the following matrix:

Q =

È

Î

Í

Find the capacity of the Z-channel and the maximizing input probability distribution. 4)___ ___ Find the channel capacity of the following discrete memoryless channel: _ _ X Y

Z

where Pr [Z = 0] =0.5 and Pr [Z = a]=0.5 and ‘+’ is standard (real) addition. The alphabet for X is {0,1}. Assume that Z is independent of X. Observe that the channel capacity depends on the value of a.

  1. Channels with memory have higher capacity Consider a binary symmetric channel with

Yi = Xi ⊕ Zi where

⊕ is XOR mod 2

addition, and

Xi , Zi Œ { 0 , 1 }. Suppose that the sequence

Z 1 , Z 2 ,..., Zn , has constant

marginal probabilities

P { Zi = 1 } = p = 1 - P { Zi = 0 }, but that

Z 1 , Z 2 ,..., Zn ,are not

necessarily independent. Let

C = 1 - H ( p , 1 - p ), Show that the maximum mutual

information per channel use exceeds C namely, show that

max

p ( X 1 , X (^) 2 ,..., X (^) n )

n

I ( X 1 ,..., Xn ; Y 1 ,..., Yn ) ≥ C