← 回題庫

卷別

資料結構與演算法

選擇

國立臺灣大學 2023 · 考試 · 第 3 題

考科演算法

(5 points) Please find the following table for the characters and their corresponding occurring probabilities. Please design a Huffman encoding tree and select the correct descriptions.

Symbol (XX)ABCDEFG
Prob (XX)0.150.060.240.210.090.210.03
  • (A)
    The codeword length for symbol C is 3
  • (B)
    The codeword length for symbol G is 5
  • (C)
    The codeword length for symbol E is 5
  • (D)
    The codeword length for symbol A is 4
  • (E)
    none of above is correct

標準解析

AI 已複查