1. [14] From the encoding table as shown below: Table 1 Symbol Frequency Codeword A B...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. [14] From the encoding table as shown below: Table 1 Symbol Frequency Codeword A B C D E F G 0.29 0.25 0.13 0.15 0.08 0.07 0.03 ABCDEFG 0 100 101 a) Is this a valid prefix code? If yes, build the prefix tree according to the table above; if no, explain why not? b) Now, use Huffman code to assign new codewords to the symbols (A-G) above. Follow the convention that the group/symbol with higher probability is assigned a '0' and that with lower probability is assigned a '1'. List out all the codewords. 1100 1101 1110 1111 Symbol Frequency Codeword (Huffman) 0.29 0.25 0.13 0.15 0.08 0.07 0.03 c) What is the average codeword length of the original coding (Table 1)? d) What is the average codeword length using Huffman code in part b)? e) What is the minimum average number of bi need to encode each symbol? f) Using a fixed-length code, what will be the minimum average number of bits needed to encode each symbol? 1. [14] From the encoding table as shown below: Table 1 Symbol Frequency Codeword A B C D E F G 0.29 0.25 0.13 0.15 0.08 0.07 0.03 ABCDEFG 0 100 101 a) Is this a valid prefix code? If yes, build the prefix tree according to the table above; if no, explain why not? b) Now, use Huffman code to assign new codewords to the symbols (A-G) above. Follow the convention that the group/symbol with higher probability is assigned a '0' and that with lower probability is assigned a '1'. List out all the codewords. 1100 1101 1110 1111 Symbol Frequency Codeword (Huffman) 0.29 0.25 0.13 0.15 0.08 0.07 0.03 c) What is the average codeword length of the original coding (Table 1)? d) What is the average codeword length using Huffman code in part b)? e) What is the minimum average number of bi need to encode each symbol? f) Using a fixed-length code, what will be the minimum average number of bits needed to encode each symbol?
Expert Answer:
Related Book For
Posted Date:
Students also viewed these electrical engineering questions
-
From the encoding table as shown below: Table 1 Symbol Frequency Codeword A 0.29 0.25 100 0.13 101 D 0.15 1100 0.08 1101 0.07 1110 1111 G 0.03 a) Is this a valid prefix code? If yes, build the prefix...
-
Use Huffman coding to encode these symbols with given frequencies: a: 0.20, b: 0.10, c: 0.15, d: 0.25, e: 0.30. What is the average number of bits required to encode a character?
-
On January 1. Ruiz Company issued bonds as follows: Face Value: Number of Years: Stated Interest Rate: Interest payments per year 500,000 15 7% Required: 1) Calculate the bond selling price given the...
-
3. Show how accounts receivable will appear on the December 31, 2023, balance sheet. Assets Current assets: Partial Balance Sheet Accounts receivable Less: Allowance for doubtful accounts 22,525
-
Oakley Service Company sells for cash and on account. By selling on credit, Oakley cannot expect to collect 100% of its accounts receivable. At December 31, 20X6, and 20X5, respectively, Oakley...
-
Give the approximate minimum temperature at which it is possible to austenitize each of the following iron-carbon alloys during a normalizing heat treatment: (a) 0.15 wt% C (b) 0.50 wt% C (c) 1.10...
-
Jack DeCoster owned Quality Egg, LLC, an Iowa egg production company. Jacks son, Peter DeCoster, served as the companys chief operating officer. Jack also owned and operated several egg production...
-
Top Quality Appliance-Long Beach has just purchased a franchise from Top Quality Appliance (TQA). TQA is a manufacturer of kitchen appliances. TQA markets its products via retail stores that are...
-
Would you make any changes to the Federal tax policy related to this area of the IRC ? If so , what would you change and why? How would these changes help rectify the disparate outcomes by race?
-
Ben Derby is a highly paid scout for a professional baseball team. He attends at least five or six Major League Baseball games a week and watches as many recorded games as he can in order to evaluate...
-
Teleportation has long been a mode of transportation in science fiction movies. It is a way of moving people from one place to another almost instantly without them doing any physical movement. For...
-
Some people feel that they have good intuition about when others are lying, while others do not feel they have this ability. Are the more intuitive people better able to detect lies? Each of 100...
-
Refer to the preceding facts for Parsons acquisition of Solar common stock. Parson uses the simple equity method to account for its investment in Solar. During 2017, Solar sells $40,000 worth of...
-
Show that the total kinetic energy density of all species in a fluid can be written as the sum of the thermal energy density of the whole fluid plus the kinetic energy of the mass motion, that is...
-
Dave provides the following draft trial balance. He also provides six ledger accounts. Additional information Stock was valued at 10,140 on 30 April 20*8. Required a) Complete the trial balance at 30...
-
Did the courts resolve the dilemma posed in Example 19. 2 correctly in your opinion? Why or why not? Data from example 19. 2 Susceptible Populations in the Hazardous Workplace Some employees are...
-
You are given the following information concerning the trades made on a particular stock. Calculate the money flow for the stock based on these trades. Note: Leave no cells blank - be certain to...
-
Write out the formula for the total costs of carrying and ordering inventory, and then use the formula to derive the EOQ model. Andria Mullins, financial manager of Webster Electronics, has been...
-
a) Prove that for n N. b) Show that 2k+ 2.9253 < | ' e' dx < 2.9254.
-
For each of the following functions, prove that f-1 exists and is differentiable in some nonempty, open set containing (a, b), and compute D(f-1){a, b) a) f(u, v) = (3u - v, 2u + 5v) at any (a, b) ...
-
For each of the following, use definitions (rather than limit theorems) to prove that the limit exists. Identify the limit in each case. a) b) c) d) e) lim_ sin x lim-. x2 lim x21 3 im r-2x cos tan...
-
Meet with the person you interviewed in mini case 1 and present them with the design prototype you created. Get their feedback on the design. Do they like it? Could they navigate the pages? What...
-
So far, we've researched the viewpoints of leaders in the field of information presentation and human interface design for computer systems. What about experts in other areas? a. Find and interview...
-
On the human factors and human engineering issues in user interface design. The spirt of the discussion is that it is imperative that we understand the people who will be using the system and that we...
Study smarter with the SolutionInn App