Suppose that m is a positive integer with m>2 An m-ary Huffman code for a set of N symbols can be constructed analogously to the construction of a binary Huffman code. At the initial step, ((N - i) mod (m — 1)) + 1 trees consisting of a single vertex with least weights are combined into a rooted tree with these vertices as leaves. At each subsequent step, the m trees of least weight are combined into an mary tree.
30. Consider the three symbols A, B, and C with frequencies A: 0.80, B: 0.19, C: 0.01.
a) Construct a Huffman code for these three symbols.
b) Form a new set of nine symbols by grouping together blocks of two symbols, AA, AB, AC, BA, BB, BC, CA,
CB, and CC. Construct a Huffman code for these nine symbols, assuming that the occurrences of symbols in
the original text are independent.
c) Compare the average number of bits required to encode text using the Huffinan code for the three symbols
in part (a) and the Huffman code for the nine blocks of two symbols constructed in part (b). Which is more
efficient?
Want to see the full answer?
Check out a sample textbook solutionChapter 11 Solutions
DISCRETE MATHEMATICS LOOSELEAF W/CONNECT
- for the given rectangular coordinates, find two sets of polar coordinates for which 0≤θ<2π, one with r>0 and the other with r<0. (-2sqrt(3),9)arrow_forward3) Find the general solution to the following differential equation. d²x = +4x sin² (2t) dt²arrow_forwardI circled the correct answer, could you show me how to do it using divergence and polar coordinatesarrow_forward
- The correct answer is D Could you explain and show the steps pleasearrow_forwardAre the two statements A and B equivalent? (A) p~q (B) ~pq ☐ Statement A and B are equivalent. ☐ Statement A and B are not equivalent as their values in three rows are not identical. ☐ Statement A and B are not equivalent as their values in one row is not identical. ☐ Statement A and B are not equivalent as their values in two row are not identical.arrow_forwardLet p, q and r to be True, False and True statements, respectively. What are the values of the statements below. A: B: [(p→q)^~q]→r (pvq) → ~r O O A: False B: False A: True B: True A: False B: True A: True B: Falsearrow_forward
- Let's assume p and q are true statements. What are the values of the statements below. A: (p→ q) →~p B: (p v~q) → ~(p^q) A: True B: False A: True B: True ☐ A: A: False B: False ☐ A: False B: Truearrow_forwardThree statements A, B and C are given below. Which choice is correct? (A) ~(p^~q) (B) ~p^q (c) pv~q ☐ All statements are inequivalent. ☐ Only statements A and B are equivalent. ☐ Only statements C and B are equivalent. ☐ Only statements A and C are equivalent.arrow_forward6: 000 Which truth table is correct for the given compound statement? (pvq)^p]→q A: B: P P 9 [(pvq)^p]→ 9 T T F T T T T F T T F F F T T F T F F F T F F T C: P 9 [(pvq)^p]→9 D: P 9 [pvq)^p]→9 T T T T T T TF T T F F F T F F T T F F F F F T B A D Previous Page Next Page Page 3 of 11arrow_forward
- st One Which truth table is correct for the given compound statement? (p→q)^~p A: P q (p→q)^~p B: P q (p→q)^~p T T F T T F T F F T F T F T T F T T F F F F F T C: D: P q (p→ q)^~p P 9 (p→q)^~p T T F T T T T F F T F F F T T F T T F F T F F T A U Oarrow_forward2) Find the general solution to the following differential equation. d²x dt² - dx 6 +25x = 64e¯* dtarrow_forward1) Solve the following initial value problem. y' + xy = x y(0) = −1arrow_forward
- Elements Of Modern AlgebraAlgebraISBN:9781285463230Author:Gilbert, Linda, JimmiePublisher:Cengage Learning,Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning