程序代写 MATH3411 Semester 2, 2012

Name: …………………. Student Id: ……………. Tutor/tutorial…………….
MATH3411 Semester 2, 2012
• Time Allowed: 45 minutes
School of Mathematics and Statistics

Copyright By PowCoder代写 加微信 powcoder

Information Codes and Ciphers
TEST 2 VERSION A
For the multiple choice questions, circle the correct answer; each multiple choice question is worth 2 marks.
For the true/false and written answer questions, use extra paper.
Staple everything together at the end.
1. A source S = {s1, s2} has probabilities P (s1) = 75 , P (s2) = 72 . The second most likely codewords in the binary Shannon-Fano code for the third extension S3 have length
(a) 1 (b) 2 (c) 3 (d) 4 (e) 5
2. If a channel has input entropy H(A) = 0.57, output entropy H(B) = 0.29 and joint entropy H(A, B) = .73 (all in bits), the mutual information I(A, B) in bits is approximately
(a) 0.16 (b) 0.86 (c) 0.44 (d) 1.01 (e) 0.13
3. Let H(x) = −xlog2x−(1−x)log2(1−x), so that H′(x) = log2(x−1 −1). An asymmetric binary channel with input A = {a1,a2} and output B = {b1,b2} has noise entropy H(B | A) = 0.5p + 0.7 in bits, output entropy H(B) = H(0.2 + 0.7p) in bits and p = P(a1) The channel capacity is achieved when p has the value approximately
(a) 0.47 (b) 0.26 (c) 0.41 (d) 0.38 (e) 0.31
4. Using Euler’s Theorem or otherwise, calculate 32011 (mod 2012). The answer is
(a) 1 (b) 3 (c) 9 (d) 27 (e) 81
5. Use Fermat factorisation to factor n = 3569 as a product n = ab where 2 ≤ a < b. Then b − a equals (a) 34 (b) 36 (c) 38 (d) 40 (e) 42 6. [10 marks] For each of the following, say whether the statement is true or false giving a brief reason or showing your working. You will get one mark for a correct true/false answer, and if your true/false answer is correct then you will get one mark for a good reason. Begin each answer with the word “true” or “false”. i) If the message abaabbaaa is encoded using the LZ78 algorithm, the last entry in the message after compression is (3, a). ii) For a 2-symbol source S = {s1,s2} with probabilities p1 = 4/5, p2 = 1/5 it is possible to find a binary encoding of some extension Sn with average word length per original source symbol less than 0.75. iii) The inverse of 22 in Z175 does not exist. iv) Given that 5 is a primitive element of Z17, then 6 is also a primitive element. v) The composite number 25 is a pseudoprime to base 7. 7. [10 marks] Let F = Z3(α) where α is a root of the polynomial x2 +2x+2 ∈ Z3[x]. (i) Express all nonzero elements of F as a power of α and as a linear combination over Z3 of 1, α. (ii) Solve the set of linear equations 􏰀α4 α5􏰁􏰀x􏰁 􏰀 2 􏰁 α2 α7 y = α3 (iii) Find the minimal polynomial of α7. Show your working. Name: ...................... Student Id: ................ Tutor/tutorial................ MATH3411 Semester 2, 2012 • Time Allowed: 45 minutes School of Mathematics and Statistics Information Codes and Ciphers TEST 2 VERSION B For the multiple choice questions, circle the correct answer; each multiple choice question is worth 2 marks. For the true/false and written answer questions, use extra paper. Staple everything together at the end. 1. A source S = {s1, s2} has probabilities P (s1) = 76 , P (s2) = 71 . The second least likely codewords in the binary Shannon-Fano code for the third extension S3 have length (a) 5 (b) 6 (c) 7 (d) 8 (e) 9 2. If a channel has input entropy H(A) = 0.93, output entropy H(B) = 0.76 and mutual information I(A,B) = 0.56 (all in bits), the joint entropy H(A,B) in bits is approximately (a) 1.69 (b) 0.20 (c) 1.13 (d) 0.73 (e) 0.37 3. Let H(x) = −xlog2x−(1−x)log2(1−x), so that H′(x) = log2(x−1 −1). An asymmetric binary channel with input A = {a1,a2} and output B = {b1,b2} has noise entropy H(B | A) = 0.5p + 0.9 in bits, output entropyH(B) = H(0.3 + 0.6p) in bits and p = P(a1). The channel capacity is achieved when p has the value approximately (a) 0.32 (b) 0.35 (c) 0.19 (d) 0.26 (e) 0.10 4. Using Euler’s Theorem or otherwise, calculate 52011 (mod 2012). The answer is (a) 1 (b) 5 (c) 25 (d) 125 (d) 625 5. Use Fermat factorisation to factor n = 5141 as a product n = ab where 2 ≤ a < b. Then b − a equals (a) 44 (b) 46 (c) 48 (d) 50 (e) 52 6. [10 marks] For each of the following, say whether the statement is true or false giving a brief reason or showing your working. You will get one mark for a correct true/false answer, and if your true/false answer is correct then you will get one mark for a good reason. Begin each answer with the word “true” or “false”. i) If the message abbababbb is encoded using the LZ78 algorithm, the last entry in the message after compression (3, b). ii) For a 2-symbol source S = {s1,s2} with probabilities p1 = 7/9, p2 = 2/9 it is possible to find a binary encoding of some extension Sn with average word length per original source symbol less than 0.8. iii) The inverse of 21 in Z175 does not exist. iv) Given that 3 is a primitive element of Z17, then 13 is also a primitive element. v) The composite number 21 is a pseudoprime to base 8. 7. [10 marks] Let F = Z3(α) where α is a root of the polynomial x2 +x+2 ∈ Z3[x]. (i) Express all nonzero elements of F as a power of α and as a linear combination over Z3 of 1, α. (ii) Solve the set of linear equations 􏰀α2 α4􏰁􏰀x􏰁 􏰀 1 􏰁 α α5 y = α2 (iii) Find the minimal polynomial of α7. Show your working. 程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com