” 辅导CSCI 3162程序、 写作Matlab编程Dalhousie UniversityFaculty of Computer ScienceCSCI 3162: Digital Media Assignment 2Winter Term 2021due Friday, February 12, 23:59 AST1. Matlab / Lossless Compression: The main purpose of this exercise is for you to gain some experienceprogramming in Matlab. On Brightspace you will find code implementing Huffman trees forlossless Compression. Be sure to read the README.1. Adapt the code to also generate Shannon-Fano trees.2. Test your Shannon-Fano code on the simple example included with the code. Draw the ShannonFanotree generated by your code.3. Compute both a Huffman tree and a Shannon-Fano tree for the larger example included with thecode. Compute and compare the compression rates achieved by the two algorithms.For this assignment, do not use any code you find on the web. In all of your code, avoid loops asmuch as possible. Please submit your code as well as other information as requested. Marks will bebased on the quality of your code and correctness of your findings as well as on the presentation ofyour results.2. Complex Numbers: For discrete-time signals x(n) as given below, computeX(k) =NX1n=0x(n) ej2kn/Nfor k = 0, . . . , N 1. Simplify the Resulting expressions as much as possible.1. x(n) = (n)2. x(n) = (n n0)3. x(n) = an4. x(n) = (1 if 0 n N/2 10 otherwise5. x(n) = e j2k0n/N6. x(n) = cos(2k0n/N)Note: Identify geometric series wherever possible. The Dirac delta function is defined as(n) = (1 if n = 00 otherwise.Assume a R and n0, k0 {0, 1, . . . , N 1}.Please submit a scan of your Detailed calculations with intermediate steps.1Submission instructions: Please submit your solutions on Brightspace. Submit a single archive file(e.g., .zip or .tar) with one folder per problem. Remember that: All work you submit Must be your own. Any questions you may have should be brought up during class time or posted on the Brightspacediscussion board. You must not share Your calculations or code with anyone. You must not make use of any code you find on the web.如有需要,请加QQ:99515681 或WX:codehelp
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。