6.02 Quiz #1 Review Problems


Problem 1.

Determine the output y[n] for a systems with the input x[n] and unit-sample response h[n] shown below. Assume h[n]=0 and x[n]=0 for any times n not shown.

y[n] = Σx[k]h[n-k] = x[0]h[n] + x[1]h[n-1] + x[2]h[n-2]
     = δ[n+1] + 4δ[n] + 8δ[n-1] + 8δ[n-2] + 3δ[n-3]


Problem 2. A discrete-time linear system produces output v when the input is the unit step u. What is the output h when the input is the unit-sample δ? Assume v[n]=0 for any times n not shown below.

v[n] = Σu[k]h[n-k] = h[n] + h[n-1] + h[n-2] + ...
h[n] = v[n] - h[n-1] - h[n-2] - ...

h[0] = v[0] - h[-1] - ... = v[0] = 1
h[1] = v[1] - h[0] - h[-1] - ... = v[1] - h[0] = 1 - 1 = 0
h[2] = v[2] - h[1] - h[0] = 1 - 1 - 0 = 0
h[3] = v[3] - h[2] - h[1] - h[0] = 0 - 0 - 0 - 1 = -1
h[4] = v[4] - h[3] - h[2] - h[1] - h[0] = 0 - (-1) - 0 - 0 - 1 = 0
h[n] = 0, n ≥ 4


Problem 3.

A signal is transmitted at 20 samples/bit and 8 bits/symbol.

  1. How many voltage samples are sent for each symbol?

  2. To convert the samples to bits, where should the receiver sample? The first half of the samples? Or the second half of the samples? Why?

  3. According to your response in part b), pick a sample number (out of the 20 samples/bit) at which to sample. A list of samples, representing exactly one 8-bit character, has been transmitted. Write a python procedure receive that converts the list of samples into an 8-bit list representation of the 8 bits. Try to do this without using a for loop. Hint: List comprehension.


Problem 4.

The following figure show plots of several received waveforms. The transmitter is sending sequences of binary symbols (i.e., either 0 or 1) at some fixed symbol rate, using 0V to represent 0 and 1V to represent 1.The horizontal grid spacing is 1 microsecond (1e-6 sec).

Answer the following questions for each plot:

  1. Find the slowest symbol rate that is consistent with the transitions in the waveform.

  2. Using your answer in question 1, what is the decoded bit string?


Problem 5.

Ben Bitdiddle is doing a 6.02 lab on understanding the effect of noise on data receptions, and is confused about the following questions. Please help him by answering them.

In these questions, assume that:

  1. The sender sends 0 Volts for a "0" bit and 1 Volt for a "1" bit
  2. P_ij = Probability that a bit transmitted as "i" was received as a "j" bit (for all four combinations of i and j, 00, 01, 10, 11)
  3. alpha = Probability that the sender sent bit 0
  4. beta = Probability that the sender sent bit 1
  5. and, obviously, alpha + beta = 1

The channel has non-zero random noise, but unless stated otherwise, assume that the noise has 0 mean and that it is a Gaussian with finite variance. The noise affects the received samples in an additive manner, as in the labs you've done.

  1. Which of these properties does the bit error rate of this channel depend on?
    1. The voltage levels used by the transmitter to send "0" and "1"
    2. The variance of the noise distribution
    3. The voltage threshold used to determine if a sample is a "0" or a "1"
    4. The number of samples per bit used by the sender and receiver

  2. Suppose Ben picks a voltage threshold that minimizes the bit error rate. For each choice below, determine whether it's true or false.
    1. P_01 + P_10 is minimized for all alpha and beta
    2. alpha * P_01 + beta * P_10 is minimized
    3. P_01 = P_10 for all alpha and beta
    4. if alpha > beta then P_10 > P_01
    5. The voltage threshold that minimizes BER depends on the noise variance if alpha = beta

  3. Suppose alpha = beta. If the noise variance doubles, what happens to the bit error rate?


Problem 6.

If a transmitter can generate signals between 0V and 5V, how many digital signaling levels can we have if the noise limit is ±.2V and the receiver requires a .1V forbidden zone for each thresholding operation that it needs to implement?


Problem 7.

In this problem, we will understand the impact of imperfect clocks and clock drift on clock recovery in communication systems. A transmitter and receiver are communicating using a perfect communication channel (that is, ignore the effects of ISI and noise for now). The transmitter transmits every bit using symbols of duration 10 samples each. The receiver also tries to sample the channel at the same frequency as the transmitter to obtain 10 samples for each symbol, and then digitizes the 10th sample of the symbol to recover the transmitted bit. However, the non-ideal clocks at the transmitter and receiver "drift away" from each other, as a result of which the receiver ends up sampling the channel 10 times in only 9 sample periods of the transmitter. To cope with this clock drift, the receiver resets its sample counter on transitions from 0 to 1 or vice versa. What is the maximum number of contiguous 0s or 1s that the data can have (i.e., the maximum number of bits without transitions in between) before one starts to see bit errors due to the clock drift?


Problem 8.

Consider the problem of synchronization to identify the start of a message between a transmitter and receiver. Suppose the designers of the communication system decide to use the sequence of bits '01111110' to signal the start of a message. What property should the designers enforce on the data to ensure correct synchronization?


Problem 9.

The output of a particular communication channel is given by

y[n] = αx[n] + βx[n-1] where α > β

  1. Is the channel linear? Is it time invariant?

  2. What is the channel's unit-sample response h?

  3. If the input is the following sequence of samples starting at time 0:

    x[n] = [1, 0, 0, 1, 1, 0, 1, 1], followed by all 1's.

    then what is the channel's output assuming α=.7 and β=.3?

    y[n] = [.7, .3, 0, .7, 1, .3, .7, 1], followed by all 1's.

  4. Again let α=.7 and β=.3. Derive a deconvolver for this channel and compute the input sequence that produced the following output:

    y[n] = [.7, 1, 1, .3, .7, 1, .3, 0], followed by all 0's.


Problem 10.

Suppose four different wires {I,II,III,IIII} have four different unit sample responses:

h1 = .25, .25, .25, .25, 0, ...

h2 = 0, .25, .5, .25, 0, ...

h3 = .11, .22, .33, .22, .11, 0, ...

h4 = .04, .08, .12, .16, .20, .12, .12, .12, .04, 0, ...

Each of the following eye diagrams is associated with transmitting bits using one of the four wires, where five samples were used per bit. That is, a one bit is five one-volt samples and a zero bit is five zero-volt samples. Please determine which wire was used in each case.


Problem 11.

Consider the second of the four eye diagrams in Problem 10. Determine the eight unique voltage values for sample number 8.

n           0    1     2     3     4     5     6     7     8     9
hstep[n] = 0.0, 0.04, 0.12, 0.24, 0.40, 0.60, 0.72, 0.84, 0.96, 1.00, ...

Now if we consider all possible values of the current bit and the previous two bits (listed earliest-to-latest in the table below) we can use superposition of hstep to compute the possible values at sample time 8, which is the same as asking for y[12]. Note that you have to think about how the sample numbers in the eye diagram align with the sample numbers of the bits -- the eye diagram is not necessary aligned with bit boundaries (e.g., it isn't in this case).

bitsdecomposed into unit stepscomputation for y[12]
1 1 1u[n]y[12] = hstep[12] = 1
1 1 0u[n] - u[n-10]y[12] = hstep[12] - hstep[2] = 1 - .12 = .88
1 0 1u[n] - u[n-5] + u[n-10]y[12] = 1 - .84 + .12 = .28
1 0 0u[n] - u[n-5]y[12] = 1 - .84 = .16
0 1 1u[n-5]y[12] = .84
0 1 0u[n-5] - u[n-10]y[12] = .84 - .12 = .72
0 0 1u[n-10]y[12] = .12
0 0 0 y[12] = 0

So the eight unique values for y[12] are 0, .12, .16, .28, .72, .84, .88 and 1.


Problem 12.

Messages are transmitted along a noisy channel using the following protocol: a "0" bit is transmitted as -0.5 Volt and a "1" bit as 0.5 Volt. The PDF of the total noise added by the channel, H, is shown below.

  1. Compute H(0), the maximum value of H.

  2. It is known that a "0" bits 3 times as likely to be transmitted as a "1" bit. The PDF of the message signal, M, is shown below. Fill in the values P and Q.

  3. If the digitization threshold voltage is 0V, what is the bit error rate?

  4. What digitization threshold voltage would minimize the bit error rate?