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
- Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage LearningElements Of Modern AlgebraAlgebraISBN:9781285463230Author:Gilbert, Linda, JimmiePublisher:Cengage Learning,