字元頻率為 a:45, b:13, c:12, d:16, e:9, f:5,Huffman 編碼的總位元數為何?
參考答案與解析
依序合併得各碼長:a=1, b=3, c=3, d=3, e=4, f=4,總長 45+39+36+48+36+20 = 224。