You are on page 1of 3

Sep. – Oct.

2014 Final Examination CC103 Discrete Mathematics 1

Answer ALL questions

Question 1
(a) Which of these sentences are propositions? What are the truth values of those
that are propositions?
(i) 2+3=5 (2 marks)
(ii) Answer this question. (2 marks)
(iii) x + 4 = 11 (2 marks)
(iv) The sun is made of yellow butter. (3 marks)

(b) Write the converse and the contrapositive of the following implication:

“A necessary condition for Leah to get an A in discrete mathematics is to study


hard”
(i) Converse (3 marks)
(ii) Contrapositive (3 marks)

(c) Demonstrate the following using a truth table:


(i) logically equivalent : (p  r)  (q  r) and (p  q)  r (5 marks)
(ii) a tautology : p  (p  q) (5 marks)
[Total: 25 Marks]

Question 2
(a) Let p, q and r be the propositions

p : Grizzly bears have been seen in the area.


q : Hiking is safe on the trail.
r : Berries are ripe along the trail.

Write these propositions using p, q, and r and logical connectives.


(i) Berries are ripe along the trail, but grizzly bears have not been seen in
the area. (2 marks)
(ii) Grizzly bears have not been seen in the area and hiking on the trail is
safe, but berries are ripe along the trail. (2 marks)
(iii) If berries are ripe along the trail, hiking is safe if and only if grizzly
bears have not been seen in the area. (2 marks)
(iv) Hiking is not safe on the trail whenever grizzly bears have been seen in
the area and berries are ripe along the trail. (2 marks)

(b) Translate each of these statements into logical expressions using predicates,
quantifiers and logical connectives.

Let P(x) be “x is beautiful” ; let F(x) be “x is your friend” ; and let the universe
of discourse be all people.

1 of 3
Sep. – Oct. 2014 Final Examination CC103 Discrete Mathematics 1

(i) No one is beautiful. (2 marks)


(ii) Everyone is your friend and is beautiful. (2 marks)
(iii) Not everybody is your friend or someone is not beautiful. (2 marks)

(c) Express this statement using quantifiers:

“Every student in this class has taken some course in every department in the
school of mathematical sciences.” (3 marks)

(d) Construct an argument using rules of inference to show that the hypotheses,

“It is not sunny this afternoon and it is colder than yesterday,” “We will go
swimming only if it is sunny,” “If we do not go swimming, then we will take a
canoe trip,” and “If we take a canoe trip, then we will be home by sunset” lead
to the conclusion “We will be home by sunset.” (8 marks)
[Total: 25 Marks]

Question 3
(a) Show by using a membership table that if A and B are sets, then
A  B = A B (6 marks)

(b) Find these values.


(i) 5 (2 marks)
(ii) 11.3 (2 marks)
(iii) -1/4 (2 marks)

(c) Given A = {x, y}, B = {1, 2}, and C = {a, b, c}. Find
(i) cardinality of set A (2 marks)
(ii) power set of B (2 marks)
(iii) Cartesian product of A x B x C (3 marks)

(d) Let A = {0, 2, 4, 6, 8, 10}, B = {0, 1, 2, 3, 4, 5, 6} and C = {4, 5, 5, 6, 7, 8, 9,


10}. Find
(i) ABC (2 marks)
(ii) (A  B)  C (2 marks)
(iii) (A  B)  C (2 marks)
[Total: 25 Marks]

2 of 3
Sep. – Oct. 2014 Final Examination CC103 Discrete Mathematics 1

Question 4
(a) Describe an algorithm that returns the smallest value in the sequence of
s1,…, sn integers. (4 marks)

(b) Use binary search algorithm to search 24 from the given list
30, 12, 28, 14, 26, 16, 24, 18, 22, 20 (6 marks)

(c) Use bubble sort algorithm to sort the list below into an increasing order.
13, 12, 14, 11, 15 (6 marks)

(d) Given the following matrices

X= 2 1 1 , Y= 0 4 0
3 2 0 1 3 1
1 0 1 0 2 2

Find:
(i) X+Y (3 marks)
(ii) XY (3 marks)
(iii) Yt (3 marks)
[Total: 25 Marks]

END OF QUESTION PAPER

3 of 3

You might also like