BTETPE405B-Data-compression-and-Encryption
BTETPE405B-Data-compression-and-Encryption
Symbol O S !
Probability 0.4 0.5 0.1
3. Write down the steps of Shannon-Fano coding and Find the Code words and
Efficiency occurring in the probability {1/2, 1/4, 1/8, 1/8} for the symbols P, Q, R and
S.
4. Write a Short note on LZ- 78 and encode the following sequence using Lempel-Ziv-
78 approach.
Sequence: ABCDABCABCDAABCABCE
5. Explain what is Coding Redundancy?
6. Wright short note on Variable Size code, also give its example.
7. Wright short note on prefix code, also give its example.
8. Write down the steps of Shannon-Fano coding.
9. Write down the steps of Huffman coding.
10. What is string compression?
11. Find the Shannon- fano code word by occurring in the probabilities {1/2, ¼, 1/8, 1/8}
for the symbols P, Q, R, S and find efficiency.
12. Find the Shannon- fano code word occurring in the probabilities {1/4, 1/4, 1/8, 1/8,
1/16, 1/16, 1/16, 1/16} for the symbols P, Q, R, S, T, U, V, W and find efficiency and
redundancy.
13. Apply Shannon-fano coding for following message [x]= [X1, X2, X3, X4, X5, X6] and
probabilities are {P}= {0.30, 0.25, 0.15, 0.12, 0.08, 0.10} also find its efficiency and
redundancy.
14. Alphabet with Probabilities {0.4, 0.2, 0.2, 0.1, 0.1} for {a,b,c,d,e} find the following
1) Adaptive Huffman codes 2)Efficiency 3)Variance
15. Image size is 10 × 10 (5 bit image) and frequencies are X1 = 10, X2=40, X3=6, X4=10,
X5=4, X6=10 find its Entropy and Average length of code word?
16. Solve using Arithmetic encoding: consider the transmission of message “went.”
Compressing a string of characters with probability ‘e’= 0.3, ‘n’=0.3, ‘t’=0.2,
‘w’=0.1, ‘.’ =0.1.
17. Write a short note on LZ77.
18. For the sequence of alphabets given below demonstrate the encoding process using
LZ77 approach : c a b r a c a d a b r a r r a r r a d
19. For the sequence of alphabets given below demonstrate the encoding process using
LZW. Construct the dictionary & obtain the encoded output sequence.
Sequence: w a b b a b w a b b a b w a b b a b w a b b a b w
20. Decode the following sequence using LZW
Sequence: “3, 1, 4, 6, 8, 4, 2, 1, 2, 5, 10, 6, 11, 13, 6”
Initial dictionary:
Index Entry
1 a
2 b
3 r
4 t