Comp0147a4ud - 2021 2
Comp0147a4ud - 2021 2
ASSESSMENT : COMP0147A4UD
PATTERN
LEVEL: : Undergraduate
DATE : 11-May-2022
TIME : 14:30
You cannot submit your work after the date and time shown on
AssessmentUCL – you must ensure to allow sufficient time to upload and
hand in your work
This paper is suitable for candidates who attended classes for this
module in the following academic year(s):
Year
2021/22
Additional material N/A
TURN OVER
Discrete Mathematics for Computer Scientists, COMP0147 (MSP), 2021/22
Answer ALL five questions.
All questions are equally marked. Total score is 100 marks.
Marks for each part of each question are indicated in square brackets.
Calculators are NOT permitted.
a. ((A \ B) ∪ (A ∩ B)) = A
[10 marks]
b. (A ∪ B) ⊆ (A ∩ B)
[10 marks]
[5 marks]
f (x) = x2 + 1, (1)
c. Is the above f surjective, bijective ? If so, give a proof. If not, explain why.
[8 marks]
b. Compute the sign of σ1 and the sign of σ2 . (Provide details of their computation)
Is it correct that sgn(α) = sgn(σ1 ) · sgn(σ2 ) ?
[7 marks]
4. a. Using the Euclidean algorithm, find the greatest common divisor, d, of 21 and 16
and find integers k1 and k2 such that
21k1 + 16k2 = d
[10 marks]
[5 marks]
4x + ay = b
ax + 4y = 8
a. Under which conditions on a and b does this system have a unique solution? Justify
your answer. Find the unique solution as a function of the parameters a and b.
[7 marks]
b. Under which conditions on a and b does this system have no solutions? Justify your
answer.
[6 marks]
c. Under which conditions on a and b does this system have infinitely many solutions?
Justify your answer.
[7 marks]