計算機概論 huffman 編碼問題 - 考試
By Zora
at 2014-07-26T11:51
at 2014-07-26T11:51
Table of Contents
請教一下各位題目如下
在一個以英文字母 A、B、C、D、E 組成的檔案裡,各字母出現的次數分別為:A=250 次,
B=1000 次,C=200 次,D=250 次,E=500 次。如利用 Huffman 編碼(Huffman encoding),
則記錄此檔案 (不計算記錄對應之 Huffman 樹本身)共需要使用多少個位元(bits)?
答案4550
像這種題目他不是問我編出來是多少,而是問總共要多少bits要如何計算啊?
如果遇到2個頻率是一樣的時候該怎麼處理阿?
謝謝
--
Tags:
考試
All Comments
By Barb Cronin
at 2014-07-29T08:32
at 2014-07-29T08:32
By Zanna
at 2014-08-02T14:08
at 2014-08-02T14:08
By Selena
at 2014-08-06T09:07
at 2014-08-06T09:07
By Andrew
at 2014-08-06T20:11
at 2014-08-06T20:11
By Susan
at 2014-08-10T01:25
at 2014-08-10T01:25
Related Posts
邊當監所職代邊準備考試...
By Emily
at 2014-07-26T11:49
at 2014-07-26T11:49
一年上榜生三元各科用書
By Olive
at 2014-07-26T11:12
at 2014-07-26T11:12
大家準備國考聽過最酸溜溜的話是什麼?
By Odelette
at 2014-07-26T10:25
at 2014-07-26T10:25
人身保險證照,國x
By Callum
at 2014-07-26T10:10
at 2014-07-26T10:10
收到情書?!
By Oscar
at 2014-07-26T10:06
at 2014-07-26T10:06