阿摩線上測驗 登入

申論題資訊

試卷:110年 - 110 國立臺灣大學_碩士班招生考試_工程科學及海洋工程學研究所丁組: 計算機概論(A)#100870
科目:研究所、轉學考(插大)、學士後-計算機概論
年份:110年
排序:0

題組內容

2.(20%) Hufiman coding

申論題內容

b.(10%) Given a string S which consist of space char and lower case letters (i.e.,', 'a', ...,'2), implement a function huffman_code (str) which can output the huffiman code table which is optimized to the input string S and convert the str into a bit pattem according to the generated hufiman code table.