Question

In: Computer Science

Assume that the Lempel-Ziv (Dictionary) is applied to a source which emits {1,2,3}. The source output...

Assume that the Lempel-Ziv (Dictionary) is applied to a source which emits
{1,2,3}. The source output is given by


1233221233112233344.


(a) Please apply the Lempel-Ziv coding, show how you applied?
(b) Please write down the transmission sequence?
(c) Please explain how you decode the transmission sequence that you have in the previous part?

Solutions

Expert Solution

ANSWER:

(a) After applying the lempel-Ziv coding we get the following output:-

1, 2, 3, 32, 21 ,23, 31, 12, 233, 34 ,4

the transmission is done according to the 3 bits as in the question it emits {1, 2, 3} which signifies 3-bit operation.

So, whenever we traverse the output string i.e

(1233221233112233344) we check for the previous occurrences and if there are no previous occurrences then we write n the following output code. so the first value is 1 and there is no previous 1 so we write 1and separate it with a comma 1, and next, we have the value 2 so we write 1, 2 and similarly after the output 1,2,3 we can see that is present before in the output so we check for another value including the previous value so here we have 32 and in the output, it is not present therefore the new sequence of output will be

1,2,3,32

and similarly, this process goes on until the last bit.

b) The transmission sequence is

1, 2, 3, 32, 21 ,23, 31, 12, 233, 34 ,4

c)

dictionary location - content(or transmission sequence ) - decoding(code word)

001 - 1 - 0001

010 - 2 - 0002

011 - 3 - 0003

100 - 32 - 0112

101 - 21 - 0101

110 - 23 - 0103

111 - 31 - 0111

12 - 0012

233 - 1103

34 - 0114

4 - 0004

As you can see that in the dictionary location at 000 no content is stored so we have taken the location from 001 and write it accordingly.

so for the 1,2,3 content values, we have to write the digit and there is no prefix present so write 000 for that so for one of the decoded values is 0001 similarly for 2 and 3 and now for 32, the suffix is 2 and prefix 3 is present on 011 dictionary location so our final output is 0112.

So this is the way how decoding works.

i hope you will like my response, and please don't forget to give thumbs up!!

if you have any query, do share in comment box!!

If you do not get anything in this solution ,please put a comment and i will help you out.

Do not give a downvote instantly .It is a humble request.

If you like my answer ,please give an upvote....Thank you.


Related Solutions

2. Assume that the Lempel-Ziv (Dictionary) is applied to a source which emits {1,2,3}. The source...
2. Assume that the Lempel-Ziv (Dictionary) is applied to a source which emits {1,2,3}. The source output is given by 1233221233112233344. (a) Please apply the Lempel-Ziv coding, show how you applied? (b) Please write down the transmission sequence? (c) Please explain how you decode the transmission sequence that you have in the pre- vious part?
Suppose the observer remains at x = 0 and a source emits a frequency fs. If...
Suppose the observer remains at x = 0 and a source emits a frequency fs. If the source travels from x = −100 to x = 100 (passing “through” the observer) over the interval of time 0 ≤ t ≤ 10. 1. How fast is the source traveling? 2. What is x(t) that gives the position of the source? 3. If fs = 440 hz, what is fo at each time t? (Write as a piecewise function.) 4. Does your...
In a region where the speed of sound is 330 m/s, a source of sound emits...
In a region where the speed of sound is 330 m/s, a source of sound emits a frequency of 440Hz. Assuming the observer is not moving, at what speed would the source have to move for the observed frequency to be 330Hz? Are they moving towards or away? A. Torwards B. Away C. This situation is not possible D. The Observer is at rest Part 2: Use the setup above. Enter the speed of the source with the units of...
A nuclear medicine source made of 32P with half-life of 14.3 days emits beta particles at...
A nuclear medicine source made of 32P with half-life of 14.3 days emits beta particles at 0.70 MeV. Ten grams of 32P concentrate in a tiny tumor in the bladder after injection. The activity is initially 1.0 x 1010 Bq. Compute the dose (in units of Gy) delivered at the tumor two half-lives after injection. For a more accurate answer, you should integrate the dose rate over time as the source strength changes due to radioactive decay.
A monochromatic light source emits 164 W of average electromagnetic power uniformly in all directions. The...
A monochromatic light source emits 164 W of average electromagnetic power uniformly in all directions. The speed of light is 3 � 10^8 m/s. Calculate the average electric-field energy density 4 m from the source. Answer in units of J/m3 . (uE=1/2 E0E2) Calculate the average magnetic-field energy density at the same distance from the source. uE=1/2 E0(cB)2 Find the wave intensity at this location. What is the pressure exerted by the light on a mirror located at the same...
A light source emits a photon during a time interval of 4.87 multiply.gif 10-8 s. a)...
A light source emits a photon during a time interval of 4.87 multiply.gif 10-8 s. a) Find the minimum uncertainty in the photon's energy. b) Find the minimum frequency bandwidth of the light.
A light source emits a photon during a time interval of 2.89 10-8 s. (a) Find...
A light source emits a photon during a time interval of 2.89 10-8 s. (a) Find the minimum uncertainty in the photon's energy. (b) Find the minimum frequency bandwidth of the light
1,2,3) Assume the US market of sunflower oil was described by the following domestic supply and...
1,2,3) Assume the US market of sunflower oil was described by the following domestic supply and demand equations: QDUS = 8000 – 4 P QSUS = -2000 + 6 P where QDUS and QSUS represent the quantities demanded and supplied (in tons) and P is the price per ton of sunflower oil (in $). 4) Now add this information: In 2008, China entered into the World Trade Organization and became the largest importer of US sunflower oil. Assume the Chinese...
Assume there is a variable, nobel _peace _prizes, that is contains a dictionary that maps year's...
Assume there is a variable, nobel _peace _prizes, that is contains a dictionary that maps year's to winners of the Nobel Peace Prize 'f'or that year and assume it is up to date through the year 2005.Write a statement that adds an entry that maps the key 2006 to "Muhammad Yunus and Grameen Bank". In Python programming language
You have a diffraction grating with 3000 lines/cm. You also have a light source that emits...
You have a diffraction grating with 3000 lines/cm. You also have a light source that emits light at 2 different wavelengths, 428 nm and 707 nm, at the same time. The screen for your experiment is 1.5 meters from the diffraction grating. A. What is the line spacing for the grating? B. What is the difference in the angle of the 2nd bright fringe for each wavelength for this grating? C. Which wavelength is closer to the center of the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT