0% found this document useful (0 votes)
138 views4 pages

Comp0147a4ud - 2021 2

This document contains an exam for the module COMP0147 - Discrete Mathematics for Computer Scientists at University College London for the 2021/22 academic year. The exam contains 5 questions testing concepts in discrete mathematics, including sets, functions, permutations, greatest common divisors, Euler's totient function, and systems of linear equations. Students have 2 hours to complete the exam on May 11th, 2022 at 2:30 PM and must upload their work to AssessmentUCL by the deadline. Calculators are not permitted during the exam. The exam is worth a total of 100 marks and all questions are equally weighted.

Uploaded by

Zink Kobayashi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
138 views4 pages

Comp0147a4ud - 2021 2

This document contains an exam for the module COMP0147 - Discrete Mathematics for Computer Scientists at University College London for the 2021/22 academic year. The exam contains 5 questions testing concepts in discrete mathematics, including sets, functions, permutations, greatest common divisors, Euler's totient function, and systems of linear equations. Students have 2 hours to complete the exam on May 11th, 2022 at 2:30 PM and must upload their work to AssessmentUCL by the deadline. Calculators are not permitted during the exam. The exam is worth a total of 100 marks and all questions are equally weighted.

Uploaded by

Zink Kobayashi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

UNIVERSITY COLLEGE LONDON

EXAMINATION FOR INTERNAL STUDENTS

MODULE CODE : COMP0147

ASSESSMENT : COMP0147A4UD
PATTERN

MODULE NAME : COMP0147 - Discrete Mathematics for Computer


Scientists

LEVEL: : Undergraduate

DATE : 11-May-2022

TIME : 14:30

Controlled Condition Exam: 2 Hours exam

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

Special instructions N/A

Exam paper word N/A


count

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.

1. Which of the following statements is correct for any sets A and B ?


If “yes”, give a proof; if “no”, show a counter-example:

a. ((A \ B) ∪ (A ∩ B)) = A
[10 marks]

b. (A ∪ B) ⊆ (A ∩ B)
[10 marks]

2. a. Define the terms injection, surjection, bijection.

[5 marks]

b. Let X = R and Y = R and the function f : X → Y be given by:

f (x) = x2 + 1, (1)

Is f injective ? If so, give a proof. If not, explain why.


[7 marks]

c. Is the above f surjective, bijective ? If so, give a proof. If not, explain why.
[8 marks]

[Question 3 cont. over page]

COMP0147 (MSP) 1 TURN OVER


3. Consider the following permutations from S4 .
   
1 2 3 4 1 2 3 4
σ1 =   σ2 =  
3 1 2 4 3 4 1 2

a. Compute α = σ1 ; σ2 and β = σ2 ; σ1 . (Provide steps of their computation)


[6 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]

c. Find the order of σ1 and σ2 . (Provide steps of their computation)


[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]

b. Find the totient Euler function ϕ(n), for n = 215.


[5 marks]

c. Compute 3171 (mod 215).

[5 marks]

[Question 5 cont. on next page]

COMP0147 (MSP) 2 CONTINUED


5. Consider the system of linear equations (a and b are real parameters):

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]

COMP0147 (MSP) 3 END OF PAPER

You might also like