Suppose that m is a positive integer withm= 2. An m-ary Huffman code for a set ofNsymbols can be constructed analogously to the construction of a binary Huffman code. At the initial step, ((N— 1) 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 m-ary tree.
35.Givenn + 1symbolsx1,x2, ..., xx-1appearing 1,fl,f2, ...,ftimes in a symbol string, respectively, wherefjis the jth Fibonacci number, what is the maximum number of bits used to encode a symbol when all possible tie-breaking selections are considered at each stage of the Huffman coding algorithm?
Want to see the full answer?
Check out a sample textbook solutionChapter 11 Solutions
DISCRETE MATHEMATICS+ITS APPL. (LL)-W/A
- Write out the addition and multiplication tables for 5.arrow_forwardSuppose that the check digit is computed as described in Example . Prove that transposition errors of adjacent digits will not be detected unless one of the digits is the check digit. Example Using Check Digits Many companies use check digits for security purposes or for error detection. For example, an the digit may be appended to a -bit identification number to obtain the -digit invoice number of the form where the th bit, , is the check digit, computed as . If congruence modulo is used, then the check digit for an identification number . Thus the complete correct invoice number would appear as . If the invoice number were used instead and checked, an error would be detected, since .arrow_forwardLet r0=b0. With the notation used in the description of the Euclidean Algorithm, use the result in Exercise 14 to prove that (a,b)=rn, the last nonzero remainder. If b0 and a=bq+r, prove that (a,b)=(b,r).arrow_forward
- How would I use the Extended Euclidean Algorithm to express this gcd as a linear combination? I found the gcd of (14,203) is 7. gcd(14, 203)arrow_forwardSomeone used the Euclidean Algorithm to compute gcd(44,140) and found the following. Use this to write the gcd as a linear combination of 44 and 140. Show work. 140 = 3(44) + 8 44 = 5(8) + 4 8 = 2(4) + 0arrow_forward1. Use the Euclidean algorithm to find integers x and y such that 2640x + 2110y = 10.arrow_forward
- Leta=75andb=27.(a) Use the Euclidean Algorithm (or the modified Euclidean Algorithm) to find gcd(a, b). (b) Use the method of back substitution to find integers m and n such that gcd(a, b) = ma+nb.arrow_forward2. Use the Euclidean Algorithm to obtain integers x and y satisfying the following (a) gcd(56,72) = 56x +72y. (b) gcd(24, 138) = 24x + 138y.arrow_forward
- Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage LearningElements Of Modern AlgebraAlgebraISBN:9781285463230Author:Gilbert, Linda, JimmiePublisher:Cengage Learning,