某模型机共有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  9

问题 某模型机共有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。
计算平均编码长度。

选项

答案平均码长=5×(0.01+0.03)+4×0.07+3×(0.12+0.08+0.13)+1×0.56=0.2+0.28+0.99+0.56=2.03

解析
转载请注明原文地址:https://kaotiyun.com/show/f7jx777K
0

最新回复(0)