in Probability recategorized by
2,952 views
1 vote
1 vote

A text is made up of the characters A, B, C, D, E each occurring with the probability 0.08, 0.40, 0.25, 0.15 and 0.12 respectively. The optimal coding will have the average length of

  1. 2.4
  2. 1.87
  3. 3.0
  4. 2.15
in Probability recategorized by
3.0k views

1 Answer

3 votes
3 votes

$A - 1110$

$B - 0$

$C - 10$

$D - 110$

$E - 1111$

Avg length = $ 4 * (0.08) + 1*(0.4) + 2*(0.25) + 3*(0.15) + 4*(0.12)$ = 2.15

edited by

3 Comments

Bro your concept is right...but u have done wrong calculation PLEASE CHECK

ANSWER IS 2.15 i.e OPTION 4
0
0
Corrected. Thanks
0
0
Any other technique to solve this problem?
1
1

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true