A text is made up of the characters a, b, c, d, e each occurring with the probability 0.11, 0.40, 0.16, 0.09 and 0.24 respectively. The optimal Huffman coding technique will have the average length of :

This question was previously asked in
UGC NET Computer Science (Paper 3) Nov 2017 Official Paper
View all UGC NET Papers >
  1. 2.40
  2. 2.16
  3. 2.26
  4. 2.15

Answer (Detailed Solution Below)

Option 2 : 2.16
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
50 Qs. 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

The correct answer is option 2.

Key Points

Concept:

Huffman coding is a data compression technique. It constructs a tree by selecting the minimum frequency of available nodes. And assign the weights 1 for the left child and 0 for the right child or 0 for the left child and 1 for the right-left.

Add all the internal nodes of the tree

Average length =1 + 0.6 + 0.36 + 0.20 = 2.16

OR

Length of A = 1111 = 4 × 0.11 = 0.44
Length of B = 0 = 1 × 0.4 = 0.4
Length of C = 110 = 3 × 0.16 = 0.48
Length of D = 1110 = 4 × 0.09 = 0.36
Length of E = 10 = 2 × 0.24 = 0.48
Average length = 0.36 + 0.4 + 0.72 + 0.6 + 0.24
= 2.16
∴ Hence the correct answer is 2.16.

Latest UGC NET Updates

Last updated on Jul 7, 2025

-> The UGC NET Answer Key 2025 June was released on the official website ugcnet.nta.ac.in on 06th July 2025.

-> The UGC NET June 2025 exam will be conducted from 25th to 29th June 2025.

-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.

-> The exam is conducted bi-annually - in June and December cycles.

-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions. 

-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.

More Greedy Algorithms Questions

More Algorithm Design Techniques Questions

Hot Links: teen patti online game real teen patti teen patti plus