edited by
348 views
6 votes
6 votes

Which of the following is/are TRUE about Huffman Coding? (Mark all the appropriate choices)

  1. Huffman coding may become lossy in some cases
  2. Huffman Coding does not always have an exact solution
  3. In Huffman coding, no code is prefix of any other code
  4. There exists a greedy algorithm to do Huffman coding
edited by

1 Answer

Best answer
2 votes
2 votes
Huffman coding is a lossless coding and has an exact greedy algorithm. In this coding, the codes are represented by the binary paths from root to leaf and thus no code can be a prefix of another.
selected by
Answer:

Related questions

3 votes
3 votes
3 answers
1
gatecse asked Aug 18, 2020
323 views
Suppose the letters $a, b, c, d$ have probabilities $1/3, 1/6, 1/5, 3/10$ respectively. What is the average length of Huffman codes (correct to 1 decimal point)?