Professional Documents
Culture Documents
13
Networks
532
What is a network?
People, places and events are all connected. Networks help us to understand connections
and in this chapter we will look at the properties and applications of networks. Eulers
formula that has been previously discussed, will be investigated in relation to networks.
The last three sections of
the chapter are devoted to
studies of paths, circuits and
trees. In those sections we
will investigate methods of
finding Euler and Hamiltonian paths and circuits, and
minimal spanning trees for
various networks. We will
also learn how these techniques can be applied in practical situations and for
problem solving.
Note: Some material
covered in this chapter can
be treated as an extension, or
advanced material, which is
beyond the scope of a typical
Year 8 class.
What does the Internet have in common with the roads in a suburb? They both can
be considered as networks. What is a network?
The Internet is a collection of computers, connected to each other, while the roads in
a suburb connect all the houses, parks and other features of a suburb.
Even the structure of your family (your family tree) can be considered as a network.
A simple network
Consider the case of Adam and Betty who are married. We can rep- A
resent this family as a network, as shown in the figure on the right.
The circles (vertices) represent the people, while the line (the edge)
indicates that there is a connection by marriage.
Later on they decide to have children, and have a boy, Cecil, and a A
girl, Daphne. The network now looks like the figure on the right. The
additional lines joining A to C and D, and B to C and D indicate a
C
connection between parents and children.
Later on, Daphne decides to get married to a man named A
Eric; so now the network would look like the figure on the right.
The line joining D to E indicates their marriage.
C
B
D
B
D
Chapter 13 Networks
533
B
C
In this case the objects in our network are the people and the lines indicate some
relationship between them.
WORKED Example 1
Draw the network which represents the family
tree showing Alice, her two parents Bill and
Carla, and her grandparents, David and Eunice
(paternal), and Frank and Gemma (maternal).
THINK
1
WRITE/DRAW
A for Alice, B for Bill, C for Carla, D for David,
E for Eunice, F for Frank, G for Gemma.
D
E
B
C
A
E
B
C
A
534
Representing a network
As we have seen, a network is completely determined by the vertices and the edges
which connect the vertices, and can be represented by the diagram. It can also be
described using what is known as the labelling method.
A network can be represented by a list of pairs of vertices. The vertices in every
pair are connected by an edge. This is called the labelling method.
WORKED Example 2
Represent the network shown at right,
using the labelling method.
THINK
WRITE
{(A, B), (A, C), (B, C), (B, D), (B, E), (C, F),
(C, G), (D, E), (F, G)}
Vertex D: (D, E)
Vertex E: has no other connection.
Vertex F: (F, G)
Vertex G: has no other connection.
Chapter 13 Networks
535
There should be exactly one pair for each edge in the network. For worked example 2
there are 9 edges and 9 pairs. How many edges were there in worked example 1? It is
often more practical to go from the labelled network to a network drawing, as shown in
the next worked example.
WORKED Example 3
Draw the network represented by the following set of labels.
{(A, B), (A, C), (B, C), (B, D), (C, D), (C, E), (D, E)}
THINK
1
DRAW
B
D
C
A
B
D
C
E
B
D
C
E
Of course, it is possible to get many different shapes for your drawing, but the
connections (edges) must still be correct.
remember
remember
1. A network is a collection of objects connected to each other in some specific
way. The objects are called vertices (or nodes) and the connections are called
edges.
2. A network can be represented by a list of pairs of connected vertices. This is
called the labelling method.
536
13A
WORKED
Example
WORKED
Example
What is a network?
5 Represent the network shown in the following diagrams, using the labelling method.
a E
b A
c R
C
A
B
C
V
D
WORKED
Example
D lists
Chapter 13 Networks
537
WORKED Example 4
State the degree of each vertex
in the network shown.
B
D
C
E
THINK
1
WRITE
Planar networks
A special kind of network is called a planar network, or planar graph.
A planar network is a network where the edges do not cross each other.
Most networks can be fixed so that there are no crossing edges.
An example of such a network is shown in the figure on the right.
538
If we realise that the edges do not have to be straight lines but can be curved, we can
redraw the network so that it becomes a planar graph. One possible way this can be
done is shown in the figure below. Can you think of any other way?
A
For the rest of this section we will work with planar graphs.
WRITE/DRAW
G
F
B
A
2
Number of vertices = 7
Number of edges = 10
G
F
WORKED Example 5
THINK
III
Number of regions = 5
II
Chapter 13 Networks
539
Eulers formula
The famous mathematician Leonhard Euler (pronounced oi-ler or uh-ler) discovered
(among other things) the relationship between the number of faces, edges and vertices
for all planar networks. This relationship is given by the following formula.
For any planar network,
V=EF+2
where E is the number of edges, F is the number of faces (regions) and V is the
number of vertices of the network.
WORKED Example 6
Confirm Eulers formula for the
network shown at right.
THINK
1
WRITE/DRAW
D
C
B
F
A
2
3
V=6
E = 10
C
B
F
A
4
5
6
7
F=6
V=EF+2
RHS = 10 6 + 2
=4+2
=6
= LHS
Therefore, Eulers formula is confirmed.
540
History of mathematics
L E O N H A R D E U L E R ( 1 5 Ap r i l 1 7 0 7 1 8 S e p t e m b e r 1 7 8 3)
Questions
1. What did Euler lose when he was 31
years old?
2. What ability did Euler have that
allowed him to go on working when
he became blind?
3. Name four areas of mathematics in
which Euler made significant
contributions.
4. How many books and papers did Euler
publish during his life?
Chapter 13 Networks
541
remember
remember
1. The degree of a vertex is the total number of edges to which that vertex is
connected.
2. The total of all the degrees of a network is exactly twice the total number of
edges.
3. A planar network is a network where edges do not cross each other.
4. A planar network has faces (or regions).
5. In any planar network, if E = the number of edges, F = the number of faces or
regions and V = the number of vertices, then: V = E F + 2.
This is called Eulers formula.
Basic properties of
networks
13B
WORKED
Example
B
E
2 State the degree of each vertex for the networks shown below.
a
b A
Q
S
T
E
G
E
F
D
U
C
W
3 Find the number of regions, edges and vertices for each of the networks in question 2.
4 a Find the number of vertices, edges and regions in the
network shown at right.
5
WORKED
Example
WORKED
C
B
Math
cad
Example
F
Eulers
rule
A
542
GAM
8 multiple choice
The sum of the degrees of all the vertices of a network equals:
A an odd number
B half the number of vertices
C twice the number of vertices
D half the number of edges
E twice the number of edges
Networks
001
13.1
QUEST
GE
EN
M AT H
Work
ET
SHE
CH
AL
1 This cube is made of wire. Each edge of the cube is 1 metre long. An ant
starts at corner A and walks along as many edges as possible without
going along the same edge twice. How far does the ant walk?
543
Chapter 13 Networks
1
1 Draw a network, which represents the following family tree.
Ann and Charlie marry and they have 2 children, Bob and Karen.
Bob marries Delia and they have a single child, Peter.
Peter marries Mary and they have 2 children, Ben and Emily.
2 Four streets are connected to each other as follows. Draw a network represented by
these connections.
Princess StreetBird Avenue
Princess StreetCharlie Street
Charlie StreetDundas Street
Princess StreetDundas Street
3 multiple choice
A network consists of edges and:
A letters
B sides
C pictures
D shapes
E vertices.
C
B
The following list of words are to be used to fill in the missing words for questions 9
and 10.
Planar, vertices, edges, degrees, objects, network, twice
9 A
544
Application of networks to
problem-solving
The handshake problem
Problems involving contact between people, for example how many handshakes or
greetings are needed to include everyone, can be solved using networks, by following
the steps outlined in the next worked example.
WORKED Example 7
Consider a group of 6 people sitting at a round table. How many handshakes are required
so that each person shakes hands with everyone exactly once?
THINK
1
WRITE/DRAW
A
B
F
E
C
D
A
F
C
D
Chapter 13 Networks
THINK
3
545
WRITE/DRAW
A
F
C
D
A
F
B
C
E
D
A
F
C
D
A
B
E
D
A network where every vertex is connected to each other vertex is called a complete
network. The final network in the handshake problem above is an example of a
complete network.
Tournaments
The set of steps used to find the number of handshakes considered in the previous
worked example can also be used to work out games or teams in a round-robin
tournament, where each player or team gets to play all the others exactly once. The
worked example which follows shows a different approach to the problem for 6
teams.
546
WORKED Example 8
Six waterpolo teams (A to F) are playing in
a knockout tournament. Use networks to
organise the games so that each team plays
every other team once.
THINK
1
Round 3
Join A to the opposite vertex and then
make connections at right angles to this
connection (blue lines).
WRITE/DRAW
Games played
A
F
C
D
A
Round 1:
A plays B
C plays D
E plays F
Round 2:
A plays F
E plays D
C plays B
D
A
F
Round 3:
A plays D
B plays F
C plays E
D
3
Round 4
Join B to the opposite vertex and then
make connections at right angles to this
connection (black lines).
A
F
Round 4:
A plays C
B plays E
D plays F
D
4
Round 5
Join C to the opposite vertex and then
make connections at right angles to this
connection (green lines).
A
F
C
D
Round 5:
A plays E
B plays D
C plays F
Chapter 13 Networks
547
By observing the listed games in each round, you can confirm that each team does
indeed play each other team exactly once.
Note: The number of games played by the 6 teams is equal to the total number of handshakes between 6 people.
remember
remember
1. A network where every vertex is connected to each other vertex is called a
complete network.
2. We aim to construct a complete network when solving problems where each
person (or team) needs to contact (or play) every other person (or team).
3. If the number of teams in a tournament problem is odd, add a dummy team
and proceed as you would with an even number of teams.
Application of networks to
problem-solving
Example
Number of
people
Number of
handshakes
15
WORKED
Example
10
L Spread
XCE
Handshake
counter
sheet
WORKED
13C
548
549
Chapter 13 Networks
The following table shows the presence or absence of Euler paths and circuits for
networks with different numbers of odd degree vertices.
Degree of vertices Euler path
How?
Euler circuit
No
No
How?
This depends
upon the actual
network.
The following worked example provides more guidance in locating an Euler path.
WORKED Example 9
A
C
THINK
1
WRITE/DRAW
Vertex A has a degree = 2.
Vertex B has a degree = 2.
Vertex C has a degree = 3.
Vertex D has a degree = 2.
Vertex E has a degree = 3.
Number of odd vertices = 2
Therefore, the Euler path exists.
E
6
D
5
C
550
Note: The number of vertices in the path is one more than the number of edges in the
network. For instance, in worked example 9 there were 6 edges in the network and the
path contained 7 vertices; that is, one more vertex than the total number of edges.
Can you find a different sequence for the network in the previous worked example,
which is also an Euler path? Does this network have an Euler circuit? Why (or why
not)?
WORKED Example 10
For the network shown find:
a a Hamiltonian path
b a Hamiltonian circuit.
B
C
F
A
THINK
WRITE
Hamiltonian paths and circuits are most useful in travelling salesperson types of problems where the vertices might represent places that the salesperson must visit each week.
remember
remember
1. A path is a specific set of edges and connecting vertices.
2. An Euler path is a set of edges connecting all the vertices such that each edge
is used exactly once. For such a path to exist, there must be exactly two vertices
of odd degree (and the rest of even degree) or all the vertices must be of even
degree.
3. An Euler circuit is an Euler path that also has the same starting and ending
vertex. For such a circuit to exist, all the vertices must be of even degree.
4. A Hamiltonian path travels through each vertex exactly once.
5. A Hamiltonian circuit is a Hamiltonian path that also has the same starting and
ending vertex.
551
Chapter 13 Networks
13D
Example
T
Q
E
C
C
F
Buford
Hapless
Grunge City
Chesterton
French Twist
Eulersburg
B
G
E
D
Dullsville
Alhambra
WORKED
U
R
WORKED
E
D
6 Which of the networks in the four parts of question 5 have Euler paths?
7 multiple choice
An Euler path:
A uses every vertex exactly once
B uses every edge exactly once
C always exists
D is the same as a Hamiltonian path
E always starts on a vertex whose degree is an even number
8 multiple choice
A Hamiltonian path:
A does not exist if there are any vertices B does not exist if there are exactly
of odd degree
2 vertices of odd degree
C does not have to use every vertex in
D does not have to use every edge in the
the network
network
E is the same as a Euler path
552
WORKED Example 11
Starting with vertex A, find, if possible,
an Euler circuit for the network shown.
E
B
THINK
WRITE/DRAW
2
E
3
B
D
1
A
6
C
3
4
B
2
E
D
5
Which method we use to find an Euler circuit depends upon the starting vertex we
choose. For instance, if the starting vertex in the above example was B, it would be
pointless to select the shortest path (BADB) back to it, as it would be a dead end.
An Euler circuit from B is BACEADB.
Generally, if the starting point has the degree of 2, the first and the last connections
of the circuit must be to that point. This means that the shortest path back to the starting
point is no use, as there are no more edges from it and it would be a dead end. Instead
we can first connect the starting vertex with the vertex of larger degree, as shown in the
following example.
Chapter 13 Networks
553
WORKED Example 12
Find an Euler circuit for the network shown.
A
D
THINK
WRITE/DRAW
B
D
4
2 B 3
1
D
2
1
4
A
B
7
C
6
Note: We had to have the path CD as the last one, since we chose DA as the first.
remember
remember
1. For an Euler circuit to exist, all the vertices must be of even degree.
2. Complete a circuit by finding the shortest path to the starting vertex, adding
new vertices one at a time until all vertices are part of the circuit.
3. If the starting vertex has the degree of 2, connect it to a vertex of larger degree first.
554
13E
WORKED
Example
B
D
2 Starting with vertex D, find an Euler circuit for the network in question 1.
3 Starting with vertex A, find an Euler circuit for the following networks.
a A
b B
B
C
C
D
F
WORKED
Example
B
D
C
E
c
C
B
A
C
E
R
F
P
T
V
Q
S
555
Chapter 13 Networks
6 multiple choice
If a travelling salesman wished to visit each town connected by a network of roads
exactly once and then return home, he would be looking for:
A an Euler path
B an Euler circuit
C a Hamiltonian path
D a Hamiltonian circuit
E none of the above
ET
SHE
Work
7 multiple choice
A group of towns are connected by railroad, as shown in the simplified network at right. The shire wishes to be able to have a path so
that each rail link can be used exactly once. Where should it add a
new link?
A Between J and M
B Between L and N
C Between P and M
D Between K and M
E Between P and L
P
J
N
M
Sprouts
Sprouts is a simple pencil and paper game for two players. Here are the rules:
1 Players take turns at being the first to start play.
2 The first player marks 3 separate dots on a piece of paper.
3 The second player draws a line joining two of the dots and adds a dot
somewhere on the line just drawn.
4 The two players continue to take turns at drawing a line joining two of the dots
and adding a new dot somewhere on this line.
13.2
556
2
1 Represent the network shown at right by using the labelling
method.
B
2 Draw the network represented by the following list.
{(A, B), (A, C), (A, D), (A, E), (B, C), (C, D), (C, E)}
Use the network shown at right for questions 3 and 4.
3 Find the number of vertices (V), edges (E) and
regions (R) in the network shown.
4 Confirm Eulers formula for the network shown.
D
C
F
E
C
E
D
F
B
A
B
D
6 multiple choice
For an Euler path to exist there must be exactly 2 vertices of odd degree or:
A all vertices must be of odd degree
B one vertex is of odd degree
C one vertex is of even degree
D there is an equal number of odd and even degree vertices
E all vertices must be of even degree.
G
B
Chapter 13 Networks
557
Identifying trees
The diagrams on the right show trees for 2 and A
3 vertices respectively. For the 3-vertex case,
there are 2 other possible trees. Can you draw
them?
The next two diagrams show trees for 4 and 5 A
vertices respectively. Observe that for 4 vertices
there are 3 edges and for 5 vertices there are 4
edges.
Generally, a tree has one less edge than the
number of vertices.
C
B
558
WORKED Example 13
Identify which of the following networks are trees.
a A
b A
F
B
F
B
E
C
D
d A
B
D
D
F
e R
WRITE
a Number of vertices = 6
Number of edges = 5
F
E
THINK
1
c A
A is connected to B.
B is connected to F.
C is connected to D.
D is connected to E.
F is connected to B.
Therefore, the network shown is a tree.
b Number of vertices = 6
Number of edges = 6
Therefore, the network shown is not a tree.
c Number of vertices = 7
Number of edges = 6
d Number of vertices = 7
Number of edges = 6
e Number of vertices = 7
Number of edges = 6
Each vertex is connected.
Therefore, the network shown is a tree.
1
2
Chapter 13 Networks
559
WORKED Example 14
In the network shown,
numbers represent the
distances (in km)
between ten towns. Find
the minimal spanning
tree and determine its
total length.
R 15 S 33 W
24 34
35 27
26
23
Q
T 10 V
X
20 31
25
18
21
38
P
U
Y
THINK
1
WRITE/DRAW
R 15 S 33 W
34
24
35 27
Q 23 T 10 V 26 X
20 31 25
P
U 38
21
18
Y
Total distance = 10
2
33
S
W
34
27
24
35
23
10
26
Q
T
V
X
20 31
25
18
21
38
P
U
Y
R
15
Total distance = 10 + 23
= 33
Continued over page
560
THINK
3
WRITE/DRAW
33
S
W
34
27
24
35
Q 23 T 10 V 26 X
20 31 25
18
21
38
P
U
Y
R
15
Total distance = 33 + 20
= 53
33
S
W
34
27
24
35
Q 23 T 10 V 26 X
20 31 25
18
21
38
P
U
Y
R
15
Total distance = 53 + 21
= 74
33
S
W
34
24
35 27
Q 23 T 10 V 26 X
20 31 25
18
21
38
P
U
Y
R
15
Total distance = 74 + 24
= 98
33
S
W
34
27
24
35
Q 23 T 10 V 26 X
20 31 25
18
21
38
P
U
Y
R
15
Total distance = 98 + 26
= 124
Chapter 13 Networks
THINK
7
WRITE/DRAW
33
S
W
34
27
24
35
Q 23 T 10 V 26 X
20 31 25
18
21
38
P
U
Y
R
15
561
33
S
W
34
24
35 27
Q 23 T 10 V 26 X
20 31 25
18
21
38
P
U
Y
R
15
15
It is now possible for each vertex in worked example 14 to communicate with all the
others, with a minimum total distance of 184 km. Suppose there was a major fire in
town T. They would send messages directly to Q, S, and V. These towns would send a
message to towns P, U (from Q), R (from S), W and X (from V) and so on, until every
town had received the message.
Although finding the minimal spanning tree may seem a long process, at each step
the decisions are very simple: just add the shortest edge to a new vertex.
remember
remember
1. A tree uses the smallest number of edges possible, so that each vertex is
connected to at least one other vertex.
2. A tree of n vertices contains (n 1) edges. (That is, the number of edges is one
less than the number of the vertices.)
3. The minimal spanning tree is the tree that has the shortest total overall length.
4. To find the minimal spanning tree, start with the shortest overall edge. Add a
new vertex by finding the shortest edge connecting it to the existing tree, until
all vertices are connected.
562
13F
WORKED
Example
E
D
B
E
F
D
B
A
D
K
B
D
3 Identify one (or more) edges in the figure at right which, when
added, result in the network becoming a tree.
X
T
V
Y
W
Z
67
B
44
A
46
45
36
D
41
37
62
Q
45
R
67
51
34
48
F
39
77
68
77
61
70
55
T
52
72
61
Y
I
81
563
Chapter 13 Networks
62
Q
45
40
R
X
44
67
77
68
77
70
55
81
36
49
61
T
52
72
61
36
40
17
18
16
12
19
14
21
11
24
16
23
32
8 multiple choice
A Hamiltonian circuit is not a tree because:
A not all the vertices are connected in a Hamiltonian circuit
B there are more vertices than edges in a Hamiltonian circuit
C there are the same number of vertices and edges in a Hamiltonian circuit
D there are more edges in a Hamiltonian circuit than are required for a tree
E a Hamiltonian circuit does not necessarily connect all the vertices.
time
Networks
002
B
19
A
ET
SHE
18
11
15
D
20
Work
9 multiple choice
The next edge that should be added to the tree shown
by red lines in the figure at right, to form a minimal
spanning tree, would be:
A AD (length = 15)
B CE (length = 16)
C BC (length = 18)
D AB (length = 19)
E GF (length = 23)
GAME
16
12
13
G
22
23
13.3
564
summary
Copy the sentences below. Fill in the gaps by choosing the correct word or
expression from the word list that follows.
1
A
is a sequence of edges and vertices that begins at one
vertex and ends at another, while a
is a sequence which
begins and ends at the same vertex.
it has con-
edges.
with
exactly once.
10
11
12
13
14
15
WORD
edges necessary,
edges.
possible.
LIST
Euler circuit
11
vertices
the smallest total
length
edges
regions
every edge
2
circuit
edge
all
Hamiltonian path
vertex
the smallest
number of
connected
crossing
6
path
Chapter 13 Networks
565
CHAPTER
review
1 Draw the following network.
{(A, B), (A, C), (A, D), (B, E), (C, E), (C, F), (D, F), (E, G), (F, G)}
13A
13A
Q
R
S
T U
V
A
W
Y
13B
13B
D
C
13C
566
13C
6 How many handshakes will it take if there are 8 people and everyone shakes hands with
everyone else exactly once?
13D
7 For each of the following networks, state whether an Euler path and/or an Euler circuit
are/is possible.
a a network with 2 vertices with the degree = 2 and 2 vertices with the degree = 3
b a network with 3 vertices with the degree = 2 and 2 vertices with the degree = 3
c a network with 3 vertices with the degree = 2 and 3 vertices with the degree = 3
d a network with 2 vertices with the degree = 2 and 3 vertices with the degree = 3
e a network with 5 vertices with even degrees
f a network with 4 vertices with odd degrees
g a network with 1 vertex with the degree = 2, 2 vertices with the degree = 3 and 2 vertices
with the degree = 4
13D
D
C
13E
13E
9 Modify the network in question 8 so that there is a possible Euler circuit. Draw a circuit,
starting with vertex A.
10 a For the network shown at right, state two possible Euler paths,
starting with different vertices.
b Modify the network by adding a new vertex, F, so that an Euler
circuit is possible.
c For the modified version of the network, state an Euler circuit,
beginning with:
i vertex B
ii vertex C.
13F
13F
12
30
26 23
20 25
32
CHAPTER
13
T
34
11
C
B
100 vertices?
29
R
8
18
27
test
yourself
X
31
15
S
17
W
20
10
33
Q
21
36
Find the minimal spanning tree for the network shown and determine its total length.