2015 Oct Nov Memo
2015 Oct Nov Memo
2015 Oct Nov Memo
Dear Student
2. THE EXAM
The exam is two hours long and the paper counts out of 100 marks. Most questions will be similar to
those asked in the self–evaluation tasks and assignments.
You must know and be able to apply all definitions and statements of theorems. However, you need
only know the proofs of the following theorems (YOU MAY BE ASKED TO PROVE ONE OF THE
THEOREMS IN THE EXAM):
3 MAT2612/102/3
You may also be asked to give a short proof of a statement by applying definitions and statements of
theorems.
You need not know the “Rules for Determining the Θ – Class of a Function” given on p. 203 (6th edition
of KBR), p. 186 (5th edition of KBR).
This is the October/November 2015 exam paper. The best way to use this in your preparation for the exam,
is the following:
• First, revise your work;
• try to do this exam without looking at the solutions or your textbook;
• and only then look at the answers.
Good luck!
2. (a) There are 80 members in a gym room, 40 adults and 40 teenagers. In how many ways can you choose 20
of them if you must choose at least one adult? (4)
(b) What is wrong with the following answer to 2(a): Since we must choose at least one adult, choose him/her
first: 40 possible ways. Now choose 19 more from the remaining 79 people in C(79, 19) ways. By the
product rule there are thus
40 C(79, 19)
3. You and 7 of your friends are watching the cricket world cup and everyone decides they feel like sushi. You make
an alphabetical list of all 8 names and write each one’s choice from the 10 available sushis next to their name.
4. What is the probability that a random string of length 8 over the alphabet A, B, C, D will contain exactly three
“C”s? [4]
5. How many ways can you choose a soccer team (11 players) from 17 girls and 13 boys if you must choose at least
three girls? [4]
6. Use the pigeonhole principle to show that if any p + 1 distinct numbers are chosen from the set
then, at least two of those chosen will be consecutive, i.e. you will pick a pair k, k + 1 amongst the chosen p + 1
numbers. [Hint: Think of n pigeons and q pigeonholes with q < n, and then apply the pigeonhole principle.] [6]
7. Let A = {2, 3, 4, 5, 6} and define the relation R on A by aRb if and only if a and b are relatively prime, in other
words, their greatest common divisor is 1. (For example, 2R3 since 2 and 3 have no factors in common besides
1.)
8. (a) Suppose f and g are functions whose domains are subsets of Z+ , the set of positive integers. Give the
definition of
f is O(g).
(3)
(b) Use the definition of “f is O(g)” to show that
(i) 4n + 25 is O(5n ); (4)
n n
(ii) 5 is not O(4 ). (4)
[11]
9. Consider the partially ordered set (poset) represented by the following Hasse diagram. Write down the following,
k j
g h
e
d f
b c
[17]
6
e d
c b
[7]
TOTAL: [100]
MEMORANDUM
1. For p = 0 then
p3 − p = 0
is divisible by 3
Assume that the assertion is true for p = k that is
k3 − k
is divisible by 3.
For p = k + 1 :
(b) We will have an overcounting problem. For example, we choose adult 1, then adult 2 and 18 teenagers
and
we choose adult 2, then adult 1 and the same 18 teenagers.
These are counted twice. (4)
[8]
5. The complement of “at least 3” is “at most 2”. The number of ways to choose the soccer team, if there are no
( )
restrictions, is 30
11 .
The number of ways to choose the team:
( )
-with no girls is 13
11 ; ( )
-with exactly 1 girl is 17 · 13 ;
(17) 10(13)
-with exactly 2 girls is 2 · 9 ;
( ) ( ) (17) (13)
-with at most 2 girls is 13 + 17 13 + 2 · 9 ;
(30) ((1310
11 ) ( ) (17) (13))
-with at least 3 girls is 11 − 11 + 17 13 10 + 2 · 9 . [5]
Each of these pairs is a pigeonhole for the two numbers inside the brackets. If we place p + 1 numbers (pigeons)
into these p pigeonholes, then, by the pigeonhole principle, at least one pigeonhole contains 2 numbers, i.e. the
numbers must be consecutive. [If there are n pigeons and q pigeonholes, and q < n, then at least one pigeonhole
contains two or more pigeons.] [6]
8
7. (a)
5 4
2 3
(4)
(b)
0 1 0 1 0
1 0 1 1 0
MR =
0 1 0 1 0
1 1 1 0 1
0 0 0 1 0
(3)
(c) (i) No, because (a, a) ̸∈ R (a and a have a common factor of a in common); or the diagonal of MR does
not consist of ones. (2)
(ii) Yes because (a, a) ̸∈ R for all a ∈ A or the diagonal of MR contains only zeros. (2)
(iii) Yes If a and b do not have a common factor besides 1, then b and a also do not have a common factor
besides 1; or MR is symmetric, i.e. MRT = MR (2)
(iv) No, because (a, b) ∈ R and (b, a) ∈ R ̸=⇒ a = b, e.g. 2R3 and 3R2, but 2 ̸= 3; or for example, m12 = 1
and m21 = 1. (2)
(v) No, because (a, b) ∈ R ̸=⇒ (b, a) ̸∈ R, e.g. 2R3 and 3R2; or for example m12 = 1 and m21 = 1. (2)
(vi) No, because, for example, (2, 3) ∈ R and (3, 4) ∈ R, but (2, 4) ̸∈ R; or
1 1 1 1 1
1 1 1 1 1
MR 2 = MR ⊙ MR =
1 1 1 1 1
1 1 1 1 0
1 1 1 0 1
and as MR2 has ones that are not in MR , R is not transitive. (2)
(d) (i) No, R is a partial order if it is reflexive, antisymmetric and transitive. Hence, since R is not reflexive,
it is not a partial order. (3)
(ii) No, R is an equivalence relation if it is reflexive, symmetric and transitive. Hence, since R is not
reflexive, it is not an equivalence relation. (3)
[25]
9 MAT2612/102/3
8. (a) Suppose f and g are functions whose domains are subsets of Z+ , the set of positive integers. Give the
definition of
f is O(g).
(3)
(b) (i) For n ∈ Z , both functions are positive. Hence we must find constants c, k such that
+
Then,
4n + 25 = 4n + 52 ≤ 5n + 5n = 2 · 5n for all n ≥ 2.
5n
5n ≤ c · 4n , for all n ≥ k, i.e. ≤ c for all n ≥ k, .
4n
5n n
But 4n = ( 45 ) → ∞ as n → ∞. Hence, there is no c and k for which
5n
≤ c, for all n ≥ k,
4n
and then, 5n is not O(4n ). (4)
[11]
9. Considering the partially ordered set (poset) represented by the following Hasse diagram.
k j
g h
e
d f
b c
(a) g, i, j, k (2)
(b) e (2)
10
(c) j (2)
(d) d (3)
(e) g (3)
(f) d, f (2)
(g) No, since for example there is no upper bound, so no Least upper bound (LUB) of {k, j} (3)
[17]
[6]
e d
c b
(a) Not every pair of elements has a GLB and a LUB. For example, {d, e} has no upper bound and hence no
LUB. (2)
(b) e (2)
(c) Yes, since it is isomorphic to B2 . (3)
[7]