

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


COMP202 Class Exam 2 Complexity of Algorithms 29 April 2009
NB: Maximum possible marks = 50. Duration: 50 minutes. NB: Exam contributes 10% to overall course mark.
Answer all questions!
(a) find d = gcd(306, 264) [5 marks] (b) find integers j and k such that d = j · 306 + k · 264. [5 marks]
(a) Describe the procedure you would use to encode the message M = 100 using the RSA encryption procedure. (You need not actually compute this number, just tell me how you would do it.) [5 marks] (b) What is the decryption key d for the given values of p, q, and e? [ marks]
i
i
i
i
Hj
Hj
s
u
w
t
(b) Suppose that x is some integer, and you want to compute x^37. You can obviously do this using 36 multiplication operations. How can you find x^37 using fewer than 36 multiplications? Find the smallest number of multiplications necessary to do this. (You may assume you can store as many intermediate values as you like during your computations.) [5 marks]