已知字符集{a,b,c,d,e}中各字符出现的频次分别为2,3,6,8,10,对字符集进行哈夫曼编码,字符a的编码是000,字符e的编码是11,则其余3个字符的编码分别是什么?
字符b的编码是001,字符c的编码是01,字符d的编码是10。【说明】按照算法及题目条件构造的哈夫曼树结果如下图所示。
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/431521.html
上一篇:带薪缺勤
下一篇:Not many years ago, some farmers were worried because hawks were taking many of their chicken. The farmers didn‟t know what to do. Finally they went to the country officials and asked for help. “Kill the hawks,” the officials said, “We will even pay