Chapter 14 Worked Solutions
Chapter 14 Worked Solutions
b sum of degrees
= deg(A) + deg(B) 3
+ deg(C) + deg(D) + deg(H) a The graphs in ii, iii and iv have all
=3+2+4+4+1 connections between vertices the same,
= 14 but the graph in i does not. For example,
they have two edges between A and C but
c A possible subgraph that contains only the graph in i does not.
towns H, D and C is Graph i is not isomorphic to the others.
Note: Some subgraphs are possible where c The graphs in i, iii and iv have all
vertices are isolated. These subgraphs connections between vertices the same,
have not been shown. but the graph in ii does not. For example,
they do not have an edge between E and
2 Note: only one alternative has been C but the graph in ii does.
shown for the answers to the following Graph ii is not isomorphic to the others.
questions. Others are possible.
a 4 Note: In the graphs for this question,
dotted edges show the edges that are
repositioned in order to demonstrate the
planar nature of the graphs. There are
other solutions possible.
b a
1
b c v–e+f =2
5 – 14 + f = 2
f = 2 – 5 + 14
f = 11
d v–e+f =2
c 10 – e + 11 = 2
– e = 2 – 10 – 11
– e = – 19
e = 19
5
a i There are six faces, so f = 6.
There are eight vertices, so v = 8.
There are twelve edges, e = 12.
ii v – e + f = 8 – 12 + 6
=2
Euler’s rule is verified.
ii v – e + f = 6 – 12 + 8
=2
Euler’s rule is verified.
ii v – e + f = 7 – 12 + 7
=2
Euler’s rule is verified.
6
a v–e+f =2
8 – 10 + f = 2
f = 2 – 8 + 10
f=4
b v–e+f =2
v – 14 + 4 = 2
v = 2 – 4 + 14
v = 12
2
Solutions to Exercise 14B
1 2
a A B C D a
A 0 1 1 0
B 1 0 1 1
C 1 1 0 0
D 0 1 0 0 b
b A B C D
A 0 1 1 0
B 1 0 0 1
C 1 0 0 1 c
D 0 1 1 0
c A B C D
A 0 1 0 0
B 1 0
3 The zero in row C, column A show that
0 0 vertex C is not connected to vertex A.
C 0 0 0 1 There is a zero in row C, column B and
row C, column C as well. This means
D 0 0 1 0 that C is not connected to any other
vertex, so it is isolated.
d A B C D
4 If every vertex has a loop, there will be a
A 0 1 1 1
‘1’ in every position along the diagonal,
B 1 0 1 1 that is in position (A,A), (B,B), …
C 1 1 0 1
5 The graph
D 1 1 1 0 • has no loops, so the diagonal will be
all zeros
e A B C D E F • has no duplicate edges, so there will
A 0 1 1 0 0 0 only be ‘0’ or ‘1’
• is complete, so every vertex is
B 1 0 0 1 0 0 connected to every other vertex.
C 1 0 0 1 0 0 Every position in the matrix will be a
‘1’, except for the diagonal.
D 0 1 1 0 0 0
E 0 0 0 0 0 1 The adjacency matrix for the graph is
F 0 0 0 0 1 0
A B C D E
f A B C D A 0 1 1 1 1
A 0 0 0 0 B 1 0 1 1 1
B 0 0 0 1 C 1 1 0 1 1
C 0 0 0 2 D 1 1 1 0 1
E 1 1 1 1 0
D 0 1 2 0
3
Solutions to Exercise 14C
Note: There are multiple possible answers
to the questions in this exercise.
1 d This walk starts and ends at different
a This walk starts and ends at different vertices, so it is not a cycle, nor circuit.
vertices so it is not a cycle, nor circuit. There are repeated edges and vertices, so
The walk does not repeat edges, nor the walk is a walk only.
vertices, so it is a path.
e This walk starts and ends at different
b This walk starts and ends at different vertices, so it is not a cycle, nor circuit.
vertices so is not a cycle nor circuit. The There are no repeated edges, nor vertices,
walk has a repeated vertex, but not a so the walk is a path.
repeated edge so the walk is a trail.
f This walk starts and ends at different
c This walk starts and ends at different vertices, so it is not a cycle, nor circuit.
vertices so it is not a cycle, nor circuit. There are repeated edges and vertices, so
The walk does not repeat edges, nor the walk is a walk only.
vertices, so it is a path.
3
d This walk starts and ends at the same a i This graph has two odd-degree
vertex, so it could be a circuit or a cycle. vertices (A and E) and so it will have
however, there is a repeated vertex and a an eulerian trail.
repeated edge, so it will be neither. It
cannot be a trail or a path because of the ii One possible eulerian trail for this
repeated edge and vertex, so this walk is graph is A−B−E−D−B−C−D−A−E.
only a walk. There are other trails possible.
e This walk starts and ends at different b i This graph has all vertices of odd
vertices, so it is not a cycle, nor circuit. degree. Neither an eulerian trail, nor
The walk has a repeated vertex but not a eulerian circuit, are possible.
repeated edge, so this walk is a trail.
c i This graph has two odd-degree
f This walk starts and ends at different vertices (A and F) and so it will have
vertices, so it is not a cycle, nor circuit. an eulerian trail.
The walk has not repeated edge and no
repeated vertex, so the walk is a path. ii One possible eulerian trail for this
graph is A−C−E−C−B−D−E−F. There
2 are other trails possible
a This walk starts and ends at different
vertices, so it is not a cycle, nor circuit. d i This graph has all vertices of even
The walk has a repeated edge and vertex, degree. An eulerian circuit is possible.
so it is a walk only.
ii One possible eulerian circuit for this
b This walk starts and ends at the same graph is A−B−C−D−E−C−A. There
vertex, so it could be a cycle or a circuit. are other circuits possible
There is no repeated edge, nor vertex, so
the walk is a cycle. e i This graph has all vertices of even
degree. An eulerian circuit is possible.
c This walk starts and ends at different
vertices, so it is not a cycle, nor circuit, ii One possible eulerian circuit for this
There are no repeated edges, nor vertices, graph is F−E−A−B−E−D−C−B−D−F.
so the walk is a path. There are other circuits possible
4
4 7
a A hamiltonian cycle for this graph is a
A−B−C−F−I−H−E−G−D−A. Vertex Degree
A 4
b A hamiltonian cycle for this graph is B 2
A−B−C−D−E−F−A. C 5
D 2
c A hamiltonian cycle for this graph is E 4
A−B−D−C−E−A. F 4
G 3
5 F−A−B−C−D−E−H−G. SUM: 24
5
8
a By inspection, there are 7 different trails
from town A to town D. Where there are
different routes between two towns, the
route is shown by a subscript.
A−C1−D
A−C2−D
A−B1−D
A−B2−D
A−B1−C−D
A−C1− B1−D
A−C1− B2−D
6
Solutions to Exercise 14D
1 d Shortest path from A to I (by inspection)
a The edge showing a weight of 12 is is either A−C−F−G−I for a distance of
between town D and town E. 4 + 10 + 4 + 8
= 26 kilometres
b C to D via B, means C to B (8 minutes)
followed by B to D (9 minutes) for a total or A−E−F−G−I for a distance of
of 9 + 8 = 17 minutes. 8+6+4+8
= 26 kilometres
c D to E direct is 12 minutes
D to E via B is 9 + 11 = 20 minutes. 4
a The starting vertex for the problem is
By driving direct, the motorist will save the first row vertex. The starting vertex is
20 – 12 = 8 minutes. A.
d The options for travelling from A to E and b A cross in the table indicates that the
visiting all towns exactly once are: vertex for that column is not directly
connected to the vertex in the row.
A−C−D−B−E for a total time of 45 Vertices D and E are not directly
minutes. connected to vertex A.
A−B−C−D−E for a total time of 36 c The next row vertex is the column vertex
minutes. that has the smallest, unboxed number in
the row.
A−C−B−D−E for a total time of 44 The smallest number in row A is 2, from
minutes. column C so C is the next row vertex.
The shortest time is 36 minutes. d The numbers in any row give the distance
between the row vertex and the column
2 By inspection, the shortest path from A to vertex.
E will be A−C−D−E for a length of 11. The length of edge A–F is 6.
3 5
a The path A−B−E−H−I has length: Q R S T U
5 + 9 + 12 + 8 P 3 1 × 4 ×
= 34 kilometres R 5 1 6 4 3
7
7
a The length of the shortest path from A to
C is the last box number in column C, or
10.
8
a The length of the shortest path from A to The shortest path from A to I is A−E−G−I.
G is the last box number in column G, or
7. 9
a
b The shortest path from A to G is found
from the table of calculations:
8
d
10
11
9
Solutions to Exercise 14E
1 c
a There are 7 vertices, so the spanning tree
will have 7 – 1 = 6 edges.
Total weight
= 70 + 80 + 100 + 100 + 90 + 90 + 200
= 730
2
a
Total weight
= 16 + 10 + 12 + 11 + 15 + 16
= 80
10
Solutions to Review: Multiple-choice questions
1 Seven vertices can be connected with six 8 The graph is planar and must be redrawn
edges, one less than the number of without edges crossing before counting
vertices. C the faces:
4 v = 15 and f = 12
v–e+f=2
15 – e + 12 = 2
– e = 2 – 15 – 12
– e = – 25
e = 25 D
The sum of the degrees is
5 An eulerian circuit will exist if all of the 3+2+3+3+5+2+2+3+1
vertices have an even degree. = 24 E
A has two odd-degree vertices. 10 An eulerian trail exists if there are exactly
B has all even-degree vertices. two odd-degree vertices in a graph. The
C has all even-degree vertices. graph currently has four odd-degree
D has all even-degree vertices. vertices, that is A, E, C, D.
E has all even-degree vertices. A
Joining two of these by an edge would
6 v = 8 and e = 13 make their degree even. B
v–e+f=2
8 – 13 + f = 2 11 The minimum spanning tree is shown in
f = 2 – 8 + 13 red in the diagram below:
f=7 C
11
12 Eulerian circuit will be possible if all of
the vertices have an even degree, so it
could be option A or B.
12
Solutions to Review: Extended-response questions
1 The matrix is
a i The only edge missing from the graph
is the direct connection between vertex
E and vertex C. There is only one
direct connection between these
vertices, of length 5, so this must be
added to the graph.
b i The route
A–B–A–F–E–D–C–E–F–A
has distance
6 + 6 + 5 + (3+2) + 4 + 4 + 5 + (2+3)
ii The cable should be laid along the +5
minimum spanning tree for the graph. = 45 kilometres
The minimum spanning tree is shown
in red below: ii This route is not a hamiltonian cycle
because some of the vertices are
visited more than once, namely A, F
and E.
13
2 g The minimum spanning tree, determined
a By inspection, the shortest path from by Primm’s algorithm, is shown in red on
Amity to Bevin is via checkpoint R, taking the network below.
the shorter of the two possible routes
from checkpoint R to Bevin.
14