A remote color sensor observes a color manufacturing process and transmits observations to a control center. The observed colors occur with the following probabilities:

P (Red) = 3/4
P (Green) = 1/8
P (Blue) = 1/16
P (Yellow) = 1/16
A computer at the sensor encodes the color observations according to the following code:
Red ? 00
Green ? 01
Blue ? 10
Yellow ? 11
These codewords are then sent to the control center (leftmost bit first).
a. What is the average length of the code?
b. The sequence (0000000100000011000000000000 0100) was received at the control center with the leftmost bit received first. What is the observed sequence of colors?
c. Notice that the observed sequence from part b is highly redundant. To reduce this redundancy, devise a code that has an average length less than two. What is the average length of your code?
d. Encode the following sequence of color observations (leftmost observed first) with your code from part c: {Red, Red, Red, Green, Red, Red, Red, Yellow, Red, Red, Red, Red, Red, Red, Green, Red}. Do you see an improvement?


Analysis:





Trades & Technology

You might also like to view...

What are the costs associated with worker’s injury on the job?

What will be an ideal response?

Trades & Technology

The force needed to push or pull an electron out of its orbit is called ____________________.

Fill in the blank(s) with the appropriate word(s).

Trades & Technology

A solid right cylinder 3' 6" high contains 32 cubic feet of material. What is the cylinder cross-sectional area in square feet rounded to 2 decimal places?

Fill in the blank(s) with the appropriate word(s).

Trades & Technology

A 50 ohm load and a 100 ohm load are connected in series to a 120 volt supply. A voltmeter would read ____________________ volts if connected across the 50 ohm load, and ____________________ volts if connected across the 100 ohm load.

Fill in the blank(s) with the appropriate word(s).

Trades & Technology