对一个7符号信源做出Huffman编码 ,并求出在该编码下的平均码长.信源符号及概率如下
对一个7符号信源做出Huffman编码
,并求出在该编码下的平均码长.信
源符号及概率如下:
P7 P6 P5 P4 P3 P2 P1
0.01 0.10 0.19 0.17 0.18 0.15 0.20
人气:126 ℃ 时间:2020-04-24 21:51:48
解答
p7:1000
P6:1001
P5:00
P4:110
P3:111
P2:101
P1:01
平均码长:4*0.01+4*0.1+2*0.19+3*0.17+3*0.18+3*0.15+2*0.2=2.72
应该给分的.LZ
推荐
- 已知6个符号的信源A={a1,a2,……a6},若其概率分布为P={0.30,0.25,0.25,0.10}1、写出Huffman编码(要
- Huffman编码的步骤.如信源符号及其概率如下:
- 已知信源,求huffman编码
- 给定一组权值3,6,7,8,12,14,23,27 (1)画出huffman树(不用做)求huffman 平均编码长度(考虑概率)
- There were signs here and there,_____visitors to look out for ____rocks.
- China and India are d_____ countries
- the little girl looked h_____ at herself in the mirror
- 宋元时期重大科技成就的出现及表现
猜你喜欢