Computers and Technology, 12.11.2019 07:31, Shu11
Given an alphabet with n characters. let the characters be numbered from 1 to n, and let the frequency of character i be fi = for i=1, – 1, with the last character n having frequency fn = ns. for example, if n=6, then the frequencies of the first five characters are 1/2, 1/4, 1/8, 1/16, 1/32, respectively, and the frequency of the last character is 1/32. answer the following questions: a) (5 points) show that the frequencies of all characters sum to 1 (as they should) for any n. b) (5 points) show what the huffman encoding is for each character. in building the encoding tree, the larger frequency child should be on the left, and if there are two groups of characters with the same frequency, the one with the smaller index should be on the left. c) (5 points) what is the expected number of bits per character? let the encoding length of character i be denoted as li, then the expected or average number of bits for the encoding is computed as e-li · fi. use this formula to derive an closed form expression (for any n).
Answers: 2
Mathematics, 25.06.2019 01:10, williamwavyy
Answers: 3
History, 16.07.2019 22:30, willveloz4
Answers: 1
Engineering, 26.10.2019 05:43, Rubxx2006
Answers: 1
Given an alphabet with n characters. let the characters be numbered from 1 to n, and let the frequen...
Chemistry, 29.01.2021 20:20
Mathematics, 29.01.2021 20:20
English, 29.01.2021 20:20
Mathematics, 29.01.2021 20:20
Chemistry, 29.01.2021 20:20
Mathematics, 29.01.2021 20:20
Mathematics, 29.01.2021 20:20