Question 47Asked in UGC NET Computer Science, June 2016 (Paper II & III, Selected Questions)

Consider a source with symbols A, B, C, D with probabilities 1/2, 1/4, 1/8, and 1/8 respectively. What is the average number of bits per symbol for the…

Consider a source with symbols A, B, C, D with probabilities 1/2, 1/4, 1/8, and 1/8 respectively. What is the average number of bits per symbol for the Huffman code generated from above information?
  1. A2 bits per symbol
  2. B1.75 bits per symbol
  3. C1.50 bits per symbol
  4. D1.25 bits per symbol
Show answerHide answer

Correct answer: (B) 1.75 bits per symbol

Explanation

Huffman code lengths: A (1/2) → 1 bit, B (1/4) → 2 bits, C (1/8) → 3 bits, D (1/8) → 3 bits. Average length = (1/2 × 1) + (1/4 × 2) + (1/8 × 3) + (1/8 × 3) = 14/8 = 1.75 bits per symbol.

From UGC NET Computer Science PYQ, June 2016 (Paper II & III, Selected Questions)

This is question 47 of UGC NET Computer Science PYQ, June 2016 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.