• 2022-06-08
    假设用于通信的电文由字母{a,b,c,d,e,f,g}构成,概率分别为{0.17,0.09,0.12,0.06,0.32,0.03,0.21}假设用于通信的电文由7个字母组成{A,B,C,D,E,F,G},字母在电文中出现的频率分别为0.17、0.09、0.12、0.06、0.32、0.03、0.21.试为这7个字母设计哈夫曼编码,并计算其带权路径长度WPL.