Discrete Mathematics - Jan 2003 (PAST PAPER)
Discrete Mathematics - Jan 2003 (PAST PAPER)
Two hours
UNIVERSITY OF MANCHESTER
Discrete Mathematics
January 2003
[PTO]
2 CS1021
(p ( (q r ) p ) )
Find formulae in DNF and CNF that are equivalent to A, simplifying your answers where
possible. Is A a tautology? Is A satisfiable? (8 marks)
b) Let T (x, y) denote the predicate “x is as tall as y” and CS (x) denote “x is a Computer
Science student”, where the universe of interest is the set of all people in the world. Use
quantifiers to express each of the following statements:-
vi) x y T (y,x)
vii) x y T (y,x)
viii) xCS(x) (T (John,x) y (T (John,y) n ) CS(y) (x y)))
(12 marks)
2. a) Let B be a set of books, and let C(b) and P(b) denote the cost and number of pages of b,
respectively. For each of the following relations on B, say whether the relation is
reflexive, whether it is symmetric, whether it is transitive, whether it is an equivalence
relation and whether it is a partial order relation.
Justify your answers. For those relations that are equivalence relations, describe the
equivalence classes. (12 marks)
a R b iff a is a parent of b
a S b iff a is a sibling (brother or sister) of b
A B +
A B *
A B
A B /
xyz*yz+*
[PTO]
4 CS1021
In a group of 250 students, 187 have taken a course in Java, 99 have taken a course in
C and 35 have taken a course in SML. 88 have taken course in both Java and C, 23
have taken courses in both C and SML and 29 in both Java and SML. If 19 students
have taken courses in all 3 languages, use the inclusion- exclusion principle to find out
how many students have not taken a course in any of these languages. (6 marks)
b) In each of the following cases, find the probability that a randomly generated bit string
of length 10 does not contain a 0 if bits are independent and
i) a 0 bit and a 1 bit are equally likely
ii) the probability that a bit is a 1 is 0.6
iii) the probability that the i th bit is a 1 is 1/2i, for i = 1,2,3…..10 (6 marks)
n
is the number of subsets of a set of size n which have m elements
m
n n
and
m n m
n n 1 n 1
= + (6 marks)
m m 1 m