Starting from:

$25

CS70-DISC 6A Solved

Berlekamp-Welch Warm Up

(a)    When does ri = P(i)? When does ri not equal P(i)?

(b)   If you want to send a length-n message, what should the degree of P(x) be? Why?

(c)    If there are at most k erasure errors, how many packets should you send? If there are at most k general errors, how many packets should you send? (We will see the reason for this later.) Now we will only consider general errors.

(d)   What do the roots of the error polynomial E(x) tell you? Does the receiver know the roots of E(x)? If there are at most k errors, what is the maximum degree of E(x)? Using the information about the degree of P(x) and E(x), what is the degree of Q(x)= P(x)E(x)?

(e)    Why is the equation Q(i) = P(i)E(i) = riE(i) always true? (Consider what happens when P(i)= ri, and what happens when P(i) does not equal ri.)

(f)     In the polynomials Q(x) and E(x), how many total unknown coefficients are there? (These are the variables you must solve for. Think about the degree of the polynomials.) When you receive packets, how many equations do you have? Do you have enough equations to solve for all of the unknowns? (Think about the answer to the earlier question - does it make sense now why we send as many packets as we do?)

(g)    If you have Q(x) and E(x), how does one recover P(x)? If you know P(x), how can you recover the original message?

2       Berlekamp-Welch Algorithm

In this question we will send the message (m0,m1,m2)=(4,3,2) of length n = 3. We will use an error-correcting code for k = 1 general error, doing arithmetic over GF(5).

(a)    Construct a polynomial P(x) (mod 5) of degree at most 2, so that

                                                  P(0)= 4,                           P(1)= 3,                           P(2)= 2.

What is the message (c0,c1,c2,c3,c4) that is sent?

(b)   Suppose the message is corrupted by changing c0 to 0. Set up the system of linear equations in the Berlekamp-Welch algorithm to find Q(x) and E(x).

(c)    Assume that after solving the equations in part (b) we get Q(x)=−x2 +4x and E(x)=x. Show how to recover the original message from Q and E.

3      Bijections

Consider the function

 x,      if x ≥ 1; 

f(x)= x2, if −1 ≤ x < 1;  2x+3, if x < −1.

(a)    If the domain and range of f are N, is f injective (one-to-one), surjective (onto), bijective?

(b)   If the domain and range of f are Z, is f injective (one-to-one), surjective (onto), bijective?

(c)    If the domain and range of f are R, is f injective (one-to-one), surjective (onto), bijective?

4      Count It!

For each of the following collections, determine and briefly explain whether it is finite, countably infinite (like the natural numbers), or uncountably infinite (like the reals):

(a)    N, the set of all natural numbers.

(b)   Z, the set of all integers.

(c)    Q, the set of all rational numbers.

(d)   R, the set of all real numbers.

(e)    The integers which divide 8.

(f)     The integers which 8 divides.

(g)    The functions from N to N.

(h)   Computer programs that halt.

(i)     Numbers that are the roots of nonzero polynomials with integer coefficients.

More products