explain what is asking because it's too long and too many examples of it. Need help with
Fantastic news! We've Found the answer you've been seeking!
Question:
explain what is asking because it's too long and too many examples of it. Need help with it. (java) Hopefully the reuploaded pictures are better.
Transcribed Image Text:
HUFFMAN ENCODING LAB "In computer science and information theory, a Huffman code is a particular type of optimal prefix code that is commonly used for lossless data compression. The process of finding and/or using such a code proceeds by means of Huffman coding, an algorithm developed by David A. Huffman while he was a Sc.D. student at MIT, and published in the 1952 paper "A Method for the Construction of Minimum-Redundancy Codes",[1]" https://en.wikipedia.org/wiki/Huffman_coding Given an example of text "orange county community college" The transmitted bits would look like this: 01101111 01110010 01100001 01101110 01100111 01100101 00100000 01100011 01101111 01110101 01101110 01110100 01111001 00100000 01100011 01101111 01101101 01101101 01110101 01101110 01101001 01110100 01111001 00100000 01100011 01101111 01101100 01101100 01100101 01100111 01100101 However, we can encode it so that only the smallest amount of bits is needed to send the message. 011 10110 0100 1111 1001 001 1110 000 011 1101 1111 1000 1010 1110 000 011 1100 1100 1101 1111 10111 1000 1010 1110 000 011 0101 0101 001 1001 001 Steps needed to compress the data: 1) we need to find the frequency at each letter is occurring. Seq.no. 1 5 10 4 6 7 11 12 13 0 2 3 8 9 Chars 'a' K 'T' 'g' T ' 'm' 'u' 'y' 'c' 'e' 'n' 'o' ASCII 97 105 114 103 108 109 116 117 121 32 99 101 110 111 Frequency 1 1 1 2 2 2 2 2 2 3 3 3 3 4 Huffman 00100 00101 0011 0100 1100 0101 1101 1010 1011 000 1000 1001 011 111 ASCII 1100001 1101001 1110010 1100111 1101100 1101101 1110100 1110101 1111001 100000 1100011 1100101 1101110 1101111 2) sort the frequency as above from highest to lowest. This can be done using a priority queue or a min heap. HUFFMAN ENCODING LAB "In computer science and information theory, a Huffman code is a particular type of optimal prefix code that is commonly used for lossless data compression. The process of finding and/or using such a code proceeds by means of Huffman coding, an algorithm developed by David A. Huffman while he was a Sc.D. student at MIT, and published in the 1952 paper "A Method for the Construction of Minimum-Redundancy Codes",[1]" https://en.wikipedia.org/wiki/Huffman_coding Given an example of text "orange county community college" The transmitted bits would look like this: 01101111 01110010 01100001 01101110 01100111 01100101 00100000 01100011 01101111 01110101 01101110 01110100 01111001 00100000 01100011 01101111 01101101 01101101 01110101 01101110 01101001 01110100 01111001 00100000 01100011 01101111 01101100 01101100 01100101 01100111 01100101 However, we can encode it so that only the smallest amount of bits is needed to send the message. 011 10110 0100 1111 1001 001 1110 000 011 1101 1111 1000 1010 1110 000 011 1100 1100 1101 1111 10111 1000 1010 1110 000 011 0101 0101 001 1001 001 Steps needed to compress the data: 1) we need to find the frequency at each letter is occurring. Seq.no. 1 5 10 4 6 7 11 12 13 0 2 3 8 9 Chars 'a' K 'T' 'g' T ' 'm' 'u' 'y' 'c' 'e' 'n' 'o' ASCII 97 105 114 103 108 109 116 117 121 32 99 101 110 111 Frequency 1 1 1 2 2 2 2 2 2 3 3 3 3 4 Huffman 00100 00101 0011 0100 1100 0101 1101 1010 1011 000 1000 1001 011 111 ASCII 1100001 1101001 1110010 1100111 1101100 1101101 1110100 1110101 1111001 100000 1100011 1100101 1101110 1101111 2) sort the frequency as above from highest to lowest. This can be done using a priority queue or a min heap.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these algorithms questions
-
1. Use the ASCII table and convert the following binary numbers to text. Then find the decimal and hexadecimal equivalent of the text that you have found. #1 01001000 01100101 01101100 01101100...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Someone once commented that advertising is Americas greatest export. Discuss.
-
What are the seven objectives of the ONDCP? What is the National Southwest Border Counternarcotics Strategy? What are its objectives? Describe the Obama Administration's National Northern Border...
-
The compressive strength of concrete is normally distributed with = 2500 psi and = 50 psi. Find the probability that a random sample of n = 5 specimens will have a sample mean diameter that falls in...
-
Daniel lives in a rural town located in the Commonwealth of Massachusetts on 200 acres of land that includes a house, a greenhouse, and a large garden. The greenhouse is located about 15 feet from...
-
The following information relates to the operating performance of two divisions of World Electronics, Inc., for last year. a. Compute the return on investment (ROI) of each division, using total...
-
* Installing integrated software needs more memory than installing many .standalone applications True O False
-
Read the case study Holding the (Price) Line on Luxury Goods What other pricing promotions could a luxury retailer offer to build sales? Should a retailer use different strategies when targeting...
-
How can we delete any specific node from the singly linear linked list?
-
Write a function which deletes first node from the singly circular linked list?
-
Implement C code for linear queue using linked list with a suitable example.
-
Show that along the optimal trajectory the quantity is a constant. Deduce from this that along the trajectory the quantity f (t) = y/x is a constant K, and express its value in terms of C, g, and . A...
-
What behaviors do you see the most from new leaders? Hands off, hero, or best friend?
-
6-6 A substance has the properties that (au/dv)T the equation of state must be T APv where A is a constant. (b) What additional infor- mation is necessary to specify the entropy of the substance? = 0...
-
Velshi Printers has contracts to complete weekly supplements required by fortysix customers. For the year 2018, manufacturing overhead cost estimates total $600,000 for an annual production capacity...
-
What conclusions do you draw about (a) yourself as a consumer, and (b) the performance of each of the businesses in Exercise 1? Assess whether any of these businesses managed to develop a sustainable...
-
How can a service firm build a strong culture that emphasizes service excellence and productivity?
-
Which issues do you see as most likely to create boundary-spanning problems for employees in a customer-contact center at a major cable service provider? Select four issues and indicate how you would...
-
Figure 5 shows a scatterplot for the variables number of farms and mean farm size in the United States. Each dot represents data from a single year between 1950 and 2000; on this diagram, the earlier...
-
The scatterplots in Figure 6 show two weeks of data comparing the actual high temperature for the day with the same-day forecast (part a) and the three-day forecast (part b). Estimate the correlation...
-
Youve conducted a study to determine how the number of calories a person consumes in a day correlates with time spent in vigorous bicycling. Your sample consisted of ten women cyclists, all of...
Study smarter with the SolutionInn App