某模型机共有7条指令,使用频度分别为:0.07,0.12,0.01,0.13,0.03,0.08,0.56,0.12,0.01,0.08,0.13,0.03,0.56。 进行哈夫曼编码。

admin2016-12-19  13

问题 某模型机共有7条指令,使用频度分别为:0.07,0.12,0.01,0.13,0.03,0.08,0.56,0.12,0.01,0.08,0.13,0.03,0.56。
进行哈夫曼编码。

选项

答案哈夫曼编码(不唯一)为 频度 编码 0.01 11011 0.12 101 0.07 1100 0.08 111 0.13 100 0.03 11010 0.56 0

解析
转载请注明原文地址:https://jikaoti.com/ti/cFWaFFFM
0

最新回复(0)