| 
View
 

Scribe Notes 4(13 Feb)

This version was saved 17 years, 7 months ago View current version     Page history
Saved by MEI Yuchen
on February 14, 2009 at 3:25:52 pm
 

Some notations in symbol-by-symbol source coding

Formula: alphabet set

Formula     c(x): the codeword of x, or the bit sequence of x

                   l(x): length of the codeword of x, or the number of bits of the bit sequence

                   Formula: the maximum length among all codewords

                   L: the expected length of codewords. i.e. Formula

                       If there are m symbols in Formula, then Formula

 

Definitions of different classes of code:

1. nonsingular code

    Eevery element in Formula maps into a different codeword string.

    i.e. Formula     Formula

2. uniquely decodabl code

    Different sequences maps into different streams of codewords.

   i.e. Formula     Formula

     (If Formula, then Formula the codeword stream for Formula)

3. Prefix code (a.k.a prefix-free code, instantaneous code)

    No codeword is the prefix of any other code.

Relationship between these classes of code:

slide errorPlugin error: That plugin is not available.

 

Question in Problem Set 4

Q2

(b)

Formula 

                          Formula    //Formulacan be any sequence consisting of N symbols; Formulais the length of Formula

                          Formula

Compare the two expressions, we find that if i is Formula, then A(i) is the number of source sequences mapping into length-i codeword stream.

The size of length-i codeword stream is Formula(binary case).

By the definition of uniquely decodable code, at most one source sequence is mapped into one codeword stream.

Therefore, no more than Formula source sequences can be mapped into length-i codeword, i.e. Formula

Formula

Take Nth root at both side, we get Formula.

(c)

The inequality we derived in (b) holds for any N.

In order to find the upper bound for the LHS, we need to minimize the RHS.

By simple analysis, the minimum value of RHS, 1, is reached when n is infinity.

So, Formula. The Kraft Inequality holds in this specific case.

Follow the same procedure, we can prove that all uniquely decodable code satisfy the Kraft Inequality.

 

Q3 is basically skipped in class.

Some questions to think about:

Formula is H(X) is good lower bound for L? Is it possible to get an equality? The answers are affirmative.

(e.g. fair coin tossing)

 

Q4

(a)

Why is it hard to achieve the entropy bound?

Formula

l(i) is always an integer while log(1/p(i)) is usually not a rational number. They are not equal generally.

The easiest way to make it an integer is

 

Comments (0)

You don't have permission to comment on this page.