Source coding is the process of conversion of the output of the DMS into a sequence of the binary symbol (BCD). It helps in the data compression of naturally redundant messages for efficient storage or transmission.
Shannon Fano Coding:
Symbol probabilities step-1 step-2 step-3 code
Xi P( Xi )
X1 0.5 0 0
X2 0.25 1 0 10
X3 0.125 1 1 0 110
X4 0.125 1 1 1 111
Here,
H(x) =
= – (-0.5-0.5-0.375-0.375)
=1.75
and,
L=
=1*0.5+2*0.25+3*0.125+3*0.125
=1.75
Then,
η(sf) = H(x)/L= 1.75/1.75*100%
η(sf) = 100%……………….(1)
Now, for BCD coding :
in BCD coding length of the codeword is 4 digits
so, L= 4*(0.5+0.25+0.125+0.125)
=4
η(BCD)= H/L*100%
= 1.75/4*100
η(BCD)= 43.75 …………………………(2)
From equation (1) and equation (2), it is clear that the efficiency of Shannon fano coding is greater than that of BCD coding.
I love it when people come together and share ideas. Great site, continue the good work! Lurline Regan Ankney
Thank you for your support.
This is my first time pay a quick visit at here and i am truly impressed to read everthing at one place.| Jodi Skippy Slack
Thank you and keep supporting us.
Major thanks for the article post. Much thanks again. Really Great. Gertie Benn Partan
Thank you and Keep Supporting us.
There is definately a lot to know about this topic. I love all of the points you have made. Trude Shae Ballman
Thank you and keep supporting us.
Thank you
effective articles sir! Thank you and continue your work sir.
Thank you so much daju 💚