DM Midterm Assessment Coursework (2019)
DM Midterm Assessment Coursework (2019)
UNIVERSITY OF LONDON
COMPUTER SCIENCE
Discrete Mathematics
This paper consists of five questions. You should answer all five questions.
Full marks will be awarded for complete answers to a total of Five questions.
The marks for each part of a question are indicated at the end of the part in [.]
brackets.
[2]
ii. Rewrite the following set using the set builder method:
[2]
(b) Given two sets A and B, Use the membership table to show that (A−B)∪
(B − A) = (A ∪ B) − (A ∩ B) [6]
(c) Let ? be a new operator on sets is defined as follows: Given two sets A
and B, A ? B = A ∩ B.
ii. By using the laws of the algebra of sets show that the following is true:
• (A ? A) ? (B ? B) = A ∪ B [2]
• (A ? B) ? (A ? B) = A ∩ B [2]
(d) Given three sets A, B and C, use the laws of the algebra on sets to show
that (A ∪ B ∪ C) ∩ (A ∪ B ∪ C) ∩ (A ∪ C) = ∅ [4]
(a) Let f (x) = x mod 3, where f (x) is the remainder when x is divided by 3,
and f : N → {0, 1, 2}.
x
(b) Let B = {x : x ∈ R and x 6= 1} and g : B → B is defined by g(x) = x−1
.
(d) Let A and B be two finite sets with |A| = |B| and f be a function from A
to B. show that if f is an injective (one-to-one) function then it is also a
surjective function. [4]
Draw up the appropriate truth table and find the truth set for each of the
propositions p ⊕ ¬q and ¬(p → q). [6]
(b) Let p and q be two propositions defined as follows: p means ’The home
football team wins’ whereas q means ’it’s raining’
[4]
ii. What are the contrapositive, the converse and the inverse of the impli-
cation
‘The home football team wins only if it’s raining’ [2]
i. ”If Samir comes to the party and Callum does not come to the party,
then Jay will come to the party .
ii. ”If Jay comes to the party, then, if Callum doesnt come then both Samir
and Ruby come.
[4]
H1: P ∧Q,
H2: P → Q ∧ S,
H3: R→S,
H4: T ∧P →R
[9]
(c) The following proposition R is wrong :
(a) Which theorems, explained in the lecture, represents each one of the the
following Boolean statements :
P : (a + b) + c = a + (b + c)
Q: a+a=a
R : a + ab = a [6]
(b) Build the truth table of the Boolean function F (x, y, z) that equals 1 if and
only if x.y.z = 0 [2]
(c) Use the previous truth table to find the sum-of-products expansions of the
Boolean function F (x, y, z). [2]
(d) i. Give two reasons why circuit minimisation is beneficial in circuit design. [2]
ii. To produce a sum-of-product algebraic simplification , we usually use
theorems (laws). Give three examples of theorems we can use. [3]
iii. Fill in the following K-map for the Boolean function
END OF PAPER