2019-2020 Exams
2019-2020 Exams
Duration: 2 hours
Figure 1: A graph G
Edge a b c d e f g h i j k m n
Weight 1 1 3 3 6 4 5 6 2 4 2 7 2
Use Prim’s algorithm to trace a minimum spanning tree S in G. ( Show every step)
1 1 1 1 3 1 w ^ o
1 + 23 + 3^ + 43 + " ■+ < " + n* ’
^ -
Figure 2: G raphs X , Y , Z
Determine which of the graphs in Figures d are isomorphic. Show the isomorphism for
isomorphic pairs and a reason why the others are not.
(e) For each of these graphs explain whether it is a planar or a bipartite or both.
[M arks]
(a) Model the following situations as (possibly weighted, possibly directed) graphs. Draw each
graph, and give the corresponding adjacency matrices.
i. Adjoa and Boboo are friends. Adjoa is also friends with Comfort and Doku. Boboo,
Akosua and Eku are all friends of each other.
ii. It is well-known that in the Ghana, there is a 2-lane highway from Accra to Tema,
another 2-lane highway from Accra to Kasoa, a 3-lane highway from Tema to Ashiaman,
a 1-lane road from Tema to Nungua and another one from Ashiaman to Akosombo,
and a 5-lane superhighway from Kasoa to Akosombo.
(b) Is there a graph with the following degrees? With Yes, draw the graph and if N o, explain
why.
i. 0 ,1 ,2 ,3 ,4 ,5 ,6 , 7
ii. 3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 , 7
(d) Consider the graph figure 4, representing the main science buildings at UCC.
i. Is this graph bipartite? Provide a brief argument for your answer. [3]
ii. Does this graph have an Euler circuit? Provide a brief argument foryour answer. [3]
is valid by deducing the conclusion from the premise step by step through the use of basic
rules of inference or laws of logic.
Vm, n € N((m 4- n) € N V (n -r m) E N)
(e) LetP(rr) be the statement ’’Student x knows calculus” and let Q(y) be the statement ’’Class
y contains a student who knows calculus.” Express each of these as quantifications of P(x)
and Q(y).
i. Some students know calculus. [1]
ii. Not every student knows calculus. [1]
iii. Every student in every class knows calculus. [1]
iv. There is at least one class with no studentswho know calculus. [1]
P a cro A
[M arks]
x y z 1 1 2 0 a: 6 t ~ t +
(b) In scheduling a resit exams for level 100’s students at UCC, six different tests have to be
given to seven students. The table below shows the exams that each of the students must
take.
Exams Kofi Ato Yaa Kojo Esi Naa Kow
Comm. Skills / / / /
Intro to Computing / / /
Software Suite / / / /
Computer Hardware / / /
Programming / / / /
Calculus / / / / / /
i. Draw a graph that illustrates which exams have students in common with other exams. [6]
ii. What is the minimum number of time slots that will be needed to schedule the six [6]
exams? Which exams should be given in each of these time slots?
x * y = \Jx2 + y 2
p A (q V r) = {p A q) V (p A r) q (Modus ponens)
Absorption laws: p \/ (p A q)= p, p A (p\/ q ) = p -'q
p->q
DeMorgan ’s laws: -> (p V q) = ->p A —*q,
8. ( p - + q ) V ( p -> r ) = p ^ (q V r) (Resolution)
9. (p r) V (q r) = (p A q) —* r
P o r ro fi