【問題描述】
設計一個利用哈夫曼算法的編碼和譯碼系統,重復地顯示并處理以下項目,直到選擇退出為止。
【基本要求】
(1)初始化:鍵盤輸入字符集大小n、n個字符和n個權值,建立哈夫曼樹;
(2)編碼:利用建好的哈夫曼樹生成哈夫曼編碼;
(3)輸出編碼;
(4)設字符集及頻度如下表:
字符:A B C D E F
頻度:4 9 23 2 17 15
字符:G H I J K
頻度:1 2 3 3 4
Measuring Frequency Content in
Signals
I this section we will study some non parametric methods for spectrum estimation
of a stochastic process. These methods are described in the literature.
All methods are based on the Periodogram which is defined for a sequence x[n]
with length N according to