[SOLVED] EE5390 Homework1

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon HW1-swaxe0.zip (155.3 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
Rate this product

The following videos might be useful for problem 1: https://www.youtube.com/watch?v=ew_CbNkxzYg and https://www.youtube.com/watch?v=ywduYSla88k.

Exercise 1.1 (Jointly typical sets). Let pXY be any joint distribution on X Λ†Y. For any 0 and positive integer n, define the jointly typical set q β€œ !

where Β΅xnynpa,bq is the number of locations i P t1,2,…,nu for which xi β€œ a and yi β€œ b.

Let Xn,Y n be jointly distributed such that Xi,Yi β€ž pXY for all i whereas pXi,Yiq is independent of all other pXj,Yjq for all j ‰ i.

  1. Prove that limnΓ‘8 Prrpqs β€œ 0
  2. Show that for all g : X Λ† Y Γ‘ R and all pxn,yn T pnq pXY q,

q

  1. Use the above to obtain upper and lower bounds on |.

Exercise 1.2 (Implementing compression). The shared folder contains files with characters randomly drawn from the set ta,b,c,d,eu. You must write a program to compress and decompress this file.

  1. Write a program to compute the empirical type of the file, i.e., the fraction of occurrence of various symbols in the file. Also compute the entropy.
  2. Using the above type, design the Shannon, Huffman and Shannon-Fano-Elias codes for this file. You can compute these on paper. Show all the steps.
  3. Use the designed codes to compress the attached file.

 

  1. Decode the compressed file, and verify that you get back the original file
  2. Find the length of the compressed sequence, and compare this with the entropy.

Exercise 1.3. Repeat the same as in Problem 2 for the corresponding file in the folder for problem 3.

  • HW1-swaxe0.zip