Question 7132 – NVS PGT CS 2019 Part-A
November 23, 2023
Question 5149 – Data-Structures
November 23, 2023
Question 7132 – NVS PGT CS 2019 Part-A
November 23, 2023
Question 5149 – Data-Structures
November 23, 2023

Question 5001 – Data-Structures

A text is made up of the characters α,β,γ,δ and σ with the probability 0.12, 0.40, 0.15, 0.08 and 0.25 respectively. The optimal coding technique will have the average length of

Correct Answer: B

Question 452 Explanation: 
Step-1: Sort in descending order according to their probabilities.

Step-2: Perform optimal merge pattern

0.40, 0.25, 0.15, 0.12, 0.08


Step-4: Multiply with length of the code
= (0.40*1) + (0.25*2) + (0.15*3) + (0.12*4) + (0.08*4)
= 2.15

A
1.7
B
2.15
C
3.4
D
3.8
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!