2015 Examsols
2015 Examsols
SOLUTIONS
CC9066 Semester 1, 2015 page 2 of 11
1. Give explicit numerical values for your answers in parts (a) and (b).
A department in a company consists of 15 employees.
(a) What is the number of ways to select 3 people to represent the department
at a conference?
Solution: Thisis the
number of 3-element subsets of a set of cardinality
15 15 · 14 · 13
15 and so equals = = 455.
3 3!
(b) The employees voted to elect the head of the department and his/her deputy.
What is the number of possible outcomes of the election?
Solution: The number is 15(2) = 15 · 14 = 210. There are 15 ways to elect
the head and 14 ways to elect the deputy.
(c) The department needs to have committees on resources, development and
strategy, each consisting of 5 employees. What is the number of ways to form
these committees, assuming that everyone in the department is involved?
Solution: This is the number of ways to select three subsets, each of
cardinality
5, fromthe set of cardinality 15, and so equals the multinomial
15 15!
coefficient = = 756756. Alternatively, this can also be
5, 5, 5 5! 5! 5!
15 10
found as .
5 5
(d) What is the number of ways to form 3 teams of 5 players each, to play
volleyball during a department retreat?
Solution: The number of ways to select three ordered groups of people is
15
found in the solution of the previous part and equals . There are
5, 5, 5
3! = 6 ways to order these groups.
Hence, the number of ways to form the
1 15
volleyball teams is = 126126.
6 5, 5, 5
(e) The department received 20 identical presents from a sponsor company.
What is the number of ways to distribute the presents so that no one misses
out?
Solution: First give a present to everyone. There remains 5 presents
to distribute between 15 people. This is the number of unordered selec-
tions
of 5 things
from 15 possibilities with repetition allowed and so equals
15 + 5 − 1 19
= = 11628.
5 5
C 2n = 4 C 2n−1 − 3 C 2n−2 + 2n .
as required.
The constants A and B are found from the relation A(1 − 2z) + B(1 + z) = 3.
It gives A + B = 3 and −2A + B = 0 so that A = 1 and B = 2. Therefore,
∞ ∞
3 1 2 X
n n
X
= + = (−1) z + 2 2n z n
1 − z − 2z 2 1 + z 1 − 2z n=0 n=0
where n > 0.
Solution: By the previous part, the coefficient of z n in the expansion
of A(z) equals
k m
X
3 2 ,
k+m=n
k
summed over k, m > 0. On the other hand, by part (a), this coefficient
is (−1)n + 2n+1 . Equating the coefficients we get the identity
(−1)n + 2n+1
k m
X
2 =
k+m=n
k 3
which equals
∞
X ∞
X ∞
X
n n
2 z +3 (n + 1)z + 4 (−2)n z n .
n=0 n=0 n=0
where n > 0.
Solution: By the previous part, the coefficient of z n in the expansion
of A(z) equals
X 2 k m
m
9 3 − .
2m+k=n
3 k
4. (a) Explain why two of the following three sequences (1, 2, 2, 2, 3), (2, 2, 2, 2, 3)
and (1, 2, 2, 2, 5) are not graphic.
Solution: The sequence (2, 2, 2, 2, 3) is not graphic because the sum of all
degrees is an odd number. The sequence (1, 2, 2, 2, 5) is not graphic since a
graph would have a vertex of degree 5 whereas the total number of vertices
should be 5.
(b) For the graphic sequence in part (a) draw two non-isomorphic graphs with
this degree sequence. Explain why your graphs are not isomorphic.
Solution: The two graphs are
They are not isomorphic because the first graph contains a 3-cycle while the
second does not.
(c) Either write down an Eulerian trail in the following graph, or explain why
none exists.
a b c d e
f g h i j
9 10 11
4 5 6 7 8
1 2 3
5. (a) Find a walk which solves the Chinese Postman Problem for the following
weighted graph. Justify your answer.
b 1 c
1 2 1
a 2 2 d
1 2 1
e 1 f
Solution: All vertices are of even degree. Hence the graph is Eulerian
and so an Eulerian circuit is a solution of the Chinese Postman Problem:
b, c, d, f, e, a, b, f, c, e, b.
(b) What is the maximum weight of the spanning trees for the weighted graph
in part (a)? Justify your answer.
Solution: The maximum weight is 8. A spanning tree is found by applying
Prim’s algorithm where maximum weight edges are chosen at each step.
Equivalently, this is Prim’s algorithm with the opposite ordering of positive
integers and it gives such a tree:
b c
1 1
a 2 2 d
2
e f
(c) Consider the trees with 5 vertices {1, 2, 3, 4, 5}
(i) Write down all possible degree sequences of these trees.
Solution: As we know from the course, there are 3 isomorphism
classes of such trees:
(d) Does the property of part (c)(ii) extend to Prüfer sequences (a, b, c, d) of
trees with 6 vertices? Justify your answer.
Solution: No. The respective Prüfer sequences of the trees
6 3 2 1 4 6 2 3 1 4
5 5
are (1, 2, 3, 3) and (1, 3, 3, 2). Even though the second sequence is obtained
from the first by a permutation, the trees are not isomorphic. The minimal
length of paths between two leaves in the first tree is 2, whereas in the second
tree this minimal length is 3.
g b
r
Hence the chromatic number is 4.
(b) Calculate the chromatic polynomial of G.
Solution: Each vertex of degree 2 is adjacent to two vertices adjacent to
each other. Therefore, by theorems from lectures, PG (t) = (t − 2)2 PK4 (t) =
t(t − 1)(t − 2)3 (t − 3).
(c) Hence or otherwise, count the number of different colourings of the graph G
with 5 colours.
Solution: This is the value of PG (t) for t = 5 so that the number is 1080.
(d) What is the edge chromatic number of G? Justify your answer.
Solution: By Vizing’s theorem, the edge-chromatic number is either 5 or
6. We will show that the number is 5 by producing an edge colouring with
5 colours. 1
6 2
5 3
4
Choose colour w1 for the edges {1, 6} and {2, 3}, colour w2 for the edges
{1, 5} and {3, 4}, colour w3 for the edges {1, 4} and {3, 5}, colour w4 for the
edges {1, 3} and {5, 6}, and colour w5 for the edges {1, 2} and {4, 5}.