
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 solution
Chapter 11 Solutions
Discrete Mathematics and Its Applications ( 8th International Edition ) ISBN:9781260091991
- 17. Suppose we know that the graph below is the graph of a solution to dy/dt = f(t). (a) How much of the slope field can you sketch from this information? [Hint: Note that the differential equation depends only on t.] (b) What can you say about the solu- tion with y(0) = 2? (For example, can you sketch the graph of this so- lution?) y(0) = 1 y ANarrow_forwardWrite out and explain your steps to each of these problems.arrow_forwardCalculate the area and perimeterarrow_forward
- 65% of all violent felons in the prison system are repeat offenders. If 43 violent felons are randomly selected, find the probability that a. Exactly 28 of them are repeat offenders. b. At most 28 of them are repeat offenders. c. At least 28 of them are repeat offenders. d. Between 22 and 26 (including 22 and 26) of them are repeat offenders.arrow_forward(b) Find the (instantaneous) rate of change of y at x = 5. In the previous part, we found the average rate of change for several intervals of decreasing size starting at x = 5. The instantaneous rate of change of fat x = 5 is the limit of the average rate of change over the interval [x, x + h] as h approaches 0. This is given by the derivative in the following limit. lim h→0 - f(x + h) − f(x) h The first step to find this limit is to compute f(x + h). Recall that this means replacing the input variable x with the expression x + h in the rule defining f. f(x + h) = (x + h)² - 5(x+ h) = 2xh+h2_ x² + 2xh + h² 5✔ - 5 )x - 5h Step 4 - The second step for finding the derivative of fat x is to find the difference f(x + h) − f(x). - f(x + h) f(x) = = (x² x² + 2xh + h² - ])- = 2x + h² - 5h ])x-5h) - (x² - 5x) = ]) (2x + h - 5) Macbook Proarrow_forwardEvaluate the integral using integration by parts. Sx² cos (9x) dxarrow_forward
- Let f be defined as follows. y = f(x) = x² - 5x (a) Find the average rate of change of y with respect to x in the following intervals. from x = 4 to x = 5 from x = 4 to x = 4.5 from x = 4 to x = 4.1 (b) Find the (instantaneous) rate of change of y at x = 4. Need Help? Read It Master Itarrow_forwardDetermine whether the inverse of f(x)=x^4+2 is a function. Then, find the inverse.arrow_forwardVelocity of a Ball Thrown into the Air The position function of an object moving along a straight line is given by s = f(t). The average velocity of the object over the time interval [a, b] is the average rate of change of f over [a, b]; its (instantaneous) velocity at t = a is the rate of change of f at a. A ball is thrown straight up with an initial velocity of 128 ft/sec, so that its height (in feet) after t sec is given by s = f(t) = 128t - 16t². (a) What is the average velocity of the ball over the following time intervals? [3,4] [3, 3.5] [3, 3.1] ft/sec ft/sec ft/sec (b) What is the instantaneous velocity at time t = 3? ft/sec (c) What is the instantaneous velocity at time t = 7? ft/sec Is the ball rising or falling at this time? O rising falling (d) When will the ball hit the ground? t = sec Need Help? Read It Watch Itarrow_forward
- Elements Of Modern AlgebraAlgebraISBN:9781285463230Author:Gilbert, Linda, JimmiePublisher:Cengage Learning,Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning

