阿摩線上測驗 登入

申論題資訊

試卷:102年 - 102 國立中山大學_碩士班招生考試_資工系(甲組):作業系統與資料結構#105882
科目:中山◆資工◆作業系統與資料結構
年份:102年
排序:4

題組內容

4. Huffman tree : Huffimnan algorithm is a variable-length encoding method, in which a Huffiman tree is constructed. Suppose seven symbols A, B, C, D, E, F, G with frequencies 8, 15, 1, 6, 15, 3, 7, respectively, are given. You have to obey the following rules for constructing the Hufiman tree:

申論題內容

(2) When two nodes are merged, always set the node of label with less lexical order as the left child, and the other as the right child.