06.08.2013 Views

Undirected graphs and networks

Undirected graphs and networks

Undirected graphs and networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Undirected</strong><br />

<strong>graphs</strong> <strong>and</strong><br />

<strong>networks</strong><br />

21<br />

VCE VCEco coverage erage<br />

Area of study<br />

Units 1 & 2 • Geometry<br />

In this chapter<br />

21A Vertices <strong>and</strong> edges<br />

21B Planar <strong>graphs</strong><br />

21C Eulerian paths <strong>and</strong><br />

circuits<br />

21D Hamiltonian paths <strong>and</strong><br />

circuits<br />

21E Trees


154 General Mathematics<br />

<strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong><br />

Graphs are an efficient way of summarising data in many practical problems. The<br />

<strong>graphs</strong> we will be dealing with in this chapter differ from those that we have worked<br />

with in the past, as they consist of points connected by various lines. As there is no<br />

particular order or direction to these lines, the <strong>graphs</strong> are defined as undirected <strong>graphs</strong><br />

or <strong>networks</strong>.<br />

<strong>Undirected</strong> graphing is an area of mathematics dealing with problems such as planning<br />

a delivery route to visit a number of shops while travelling the least distance,<br />

designing a communications network to link a number of towns, organising the flow of<br />

work in a factory, or allocating jobs for increased efficiency.<br />

Below are examples of undirected <strong>graphs</strong> or <strong>networks</strong> you may have come across:<br />

Route map for the Melbourne Metropolitan Tram Network<br />

H – O – H O= C = O<br />

(H 2 O) (CO 2 )<br />

The chemical molecules for water (left)<br />

<strong>and</strong> carbon dioxide (right)<br />

Milliammeter<br />

Rectifier<br />

OA91<br />

12 v, 24 w Lamp<br />

1000 ohm<br />

Voltmeter<br />

+<br />

The Swiss mathematician Leonhard Euler (pronounced oyler; 1707–1783) developed<br />

much of the theory of undirected <strong>graphs</strong> in his work on topology <strong>and</strong> graph theory.<br />

AC<br />

50 mA<br />

+<br />

DC<br />

+ –<br />

An electrical circuit<br />

+


Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 155<br />

Vertices <strong>and</strong> edges<br />

The map at right shows the main roads linking a number of<br />

country towns in Victoria.<br />

We can see that there are three main roads leading into<br />

Traralgon, but only one joining Leongatha <strong>and</strong> Yarram. The<br />

map is an example of an undirected graph or network since<br />

there are no arrows showing a particular direction.<br />

The network consists of vertices (the towns) <strong>and</strong> edges (the roads). The degree of a<br />

vertex is defined as the number of edges leading to or from that vertex. Therefore the<br />

degree of the Traralgon vertex is 3 because there are 3 roads leading to or from there. The<br />

degree of the Yarram vertex is 2 because there are only 2 roads leading to or from there.<br />

The graph is considered to be a connected graph since it is possible to reach each<br />

vertex from any other one. A connected graph must have all vertices joined to at least<br />

one other vertex. There cannot be any isolated vertices.<br />

We use the term multiple edge if there is more than one edge<br />

linking two vertices. For example, in the figure at right there is a<br />

multiple edge between vertices A <strong>and</strong> C.<br />

The figure also contains a loop at vertex B. An edge which<br />

connects a vertex to itself is defined as a loop. When calculating<br />

the degree of a vertex, a loop counts as 2. Thus the degree of vertex<br />

B is 3; 1 for the edge connecting B to A plus 2 for the loop.<br />

Trafalgar Moe<br />

Morwell<br />

Traralgon<br />

Leongatha<br />

Yarram<br />

The figure is not a connected graph because not all vertices are connected to at least<br />

one other vertex. E is therefore an isolated vertex as it is not able to be reached from<br />

the other vertices.<br />

WORKED Example<br />

For the following graph, state:<br />

a the number of vertices b the number of edges<br />

c the degree of each vertex d whether the graph is connected.<br />

THINK WRITE<br />

a Count the number of vertices.<br />

Note: The vertices are the points labelled<br />

A, B, C, D <strong>and</strong> E.<br />

1<br />

b Count the number of edges.<br />

Note: The number of edges is found by<br />

counting the number of lines joining the<br />

vertices. Remember: A loop is counted as 2.<br />

c Count the degree of each vertex, that is, the<br />

number of edges leading to or from each<br />

vertex.<br />

Note:<br />

1. C contains a loop, which is counted as 2<br />

when totalling edges.<br />

2. The degree of A is abbreviated to deg(A)<br />

etc.<br />

a The number of vertices is 5, that is,<br />

A, B, C, D <strong>and</strong> E.<br />

b The number of edges is 9.<br />

c Vertex A has 4 connections to<br />

other vertices, so deg(A) = 4.<br />

Vertex B has 3 connections to<br />

other vertices, so deg(B) = 3.<br />

Vertex C has 6 connections to<br />

other vertices, so deg(C) = 6.<br />

Vertex D has 3 connections to<br />

other vertices, so deg(D) = 3.<br />

Vertex E has 0 connections to<br />

other vertices, so deg(E) = 0.<br />

d Answer the question. d The graph is not connected, as vertex E has<br />

no edges leading to or from it; that is, it is<br />

isolated from each of the other vertices.<br />

A<br />

D<br />

A<br />

C<br />

D<br />

B<br />

E<br />

A<br />

B<br />

B<br />

C<br />

C<br />

E<br />

E<br />

D


156 General Mathematics<br />

WORKED Example<br />

2<br />

Draw a connected graph which has 6 vertices, 2 loops <strong>and</strong> 3 multiple edges. Determine the<br />

number of edges <strong>and</strong> the degree of each vertex.<br />

Note: There are numerous ways of drawing this connected graph using the given information.<br />

THINK WRITE<br />

1 Draw 6 points <strong>and</strong> label them<br />

A, B, C, D, E, F.<br />

2 Draw edges connecting the points A to F.<br />

Note: As this diagram represents a connected<br />

graph, each vertex must be connected to at least<br />

one other vertex.<br />

A B C<br />

3 Select two of the points <strong>and</strong> draw a loop on<br />

each of them.<br />

D<br />

4 Select 3 pairs of points <strong>and</strong> draw an extra edge<br />

connecting each specific pair.<br />

Note: For this example, each step has been drawn<br />

in a different colour to highlight each stage.<br />

E F<br />

5 Count the number of edges.<br />

Note: A loop is counted as 2 when totalling<br />

edges.<br />

There are 13 edges.<br />

6 Determine the degree of each of the vertices,<br />

that is, count the number of edges leading to<br />

deg(A) = 3; that is, A Fig 1<br />

or from each vertex.<br />

Note: Vertices B <strong>and</strong> C have loops; thus they<br />

will each have an extra 2 added to their vertex<br />

deg(B) = 5; that is, Fig B 14<br />

sum.<br />

deg(C) = 3; that is, C<br />

remember<br />

remember<br />

deg(D) = 4; that is,<br />

deg(E) = 3; that is,<br />

deg(F) = 4; that is,<br />

D<br />

F<br />

E<br />

Fig 17<br />

1. An undirected graph or network consists of vertices <strong>and</strong> edges.<br />

2. The degree of a vertex equals the number of edges connected to it.<br />

3. A loop adds 2 to the degree of a vertex.<br />

4. A connected graph has no isolated vertices.


WORKED<br />

Example<br />

1<br />

WORKED<br />

Example<br />

2<br />

21A<br />

Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 157<br />

Vertices <strong>and</strong> edges<br />

1 For each of the following <strong>graphs</strong>, state:<br />

a A<br />

B<br />

b<br />

A<br />

B c<br />

D<br />

d e f<br />

A B<br />

A<br />

C D<br />

D<br />

i the number of vertices<br />

ii the number of edges<br />

iii the degree of each vertex.<br />

C<br />

C<br />

2 Which of the <strong>graphs</strong> in question 1 are connected?<br />

3 Draw the <strong>graphs</strong> in question 1 that are not connected, <strong>and</strong> include extra edges to make<br />

the <strong>graphs</strong> connected.<br />

4 Which of the <strong>graphs</strong> in question 1 contain loops?<br />

5 Draw a connected graph which has 7 vertices, 3 loops <strong>and</strong> 4 multiple edges. Determine<br />

the number of edges <strong>and</strong> the degree of each vertex.<br />

6 Draw a connected graph that has:<br />

a 5 vertices <strong>and</strong> 8 edges b 5 vertices <strong>and</strong> 6 edges<br />

c 5 vertices <strong>and</strong> 14 edges d 5 vertices <strong>and</strong> 5 edges<br />

e 5 vertices <strong>and</strong> 3 edges.<br />

7 Determine the degree of each vertex in question 6.<br />

8 If a graph has 5 vertices, what is the least number of edges it could have so that it is<br />

connected?<br />

9 Draw the following <strong>graphs</strong>:<br />

a number of vertices is 4, deg(A) = 2, deg(B) = 3, deg(C) = 3 <strong>and</strong> deg(D) = 2<br />

b number of vertices is 4, deg(E) = 4, deg(F) = 3, deg(G) = 2 <strong>and</strong> deg(H) = 1.<br />

10 For this undirected graph:<br />

a determine the number of vertices, V<br />

b determine the number of edges, E<br />

c determine the degree of each vertex<br />

d determine whether or not the graph is connected<br />

e if the graph is not connected, suggest how it may become<br />

connected.<br />

D<br />

B<br />

C<br />

E<br />

A<br />

6<br />

D<br />

A<br />

1<br />

C<br />

5<br />

B<br />

F<br />

2<br />

4<br />

G<br />

C<br />

E<br />

B<br />

D<br />

3<br />

H


158 General Mathematics<br />

11<br />

12<br />

13<br />

multiple ultiple choice<br />

The degree of the vertex, C, in this diagram is:<br />

A 3<br />

B 5<br />

C 2<br />

D 4<br />

E 6<br />

multiple ultiple choice<br />

If a connected graph has 6 vertices, the least number of edges it could have is:<br />

A 5 B 4 C 6 D 7 E 8<br />

multiple ultiple choice<br />

The graph at right consists of:<br />

A 8 edges <strong>and</strong> 6 vertices<br />

B 6 edges <strong>and</strong> 12 vertices<br />

C 10 edges <strong>and</strong> 6 vertices<br />

D 6 edges <strong>and</strong> 8 vertices<br />

E 12 edges <strong>and</strong> 6 vertices<br />

A<br />

E D<br />

B<br />

A<br />

C<br />

D<br />

F<br />

B<br />

C<br />

E


Planar <strong>graphs</strong><br />

Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 159<br />

<strong>Undirected</strong> <strong>graphs</strong> that can be drawn with no crossing edges are called planar <strong>graphs</strong><br />

or <strong>networks</strong>. Electronic circuits are examples of planar <strong>graphs</strong>.<br />

Sometimes it is possible to redraw undirected <strong>graphs</strong> that have crossing edges <strong>and</strong><br />

remove the crossovers. For example, the graph on the left may be redrawn as the graph<br />

on the right, a planar graph.<br />

A B<br />

B<br />

A<br />

D C<br />

To show that the above graph was planar, we simply redrew each of the vertices <strong>and</strong><br />

then added in the edges making sure that there were no crossovers. However, this is not<br />

always possible.<br />

The graph at right is not planar.<br />

To redraw the graph, we commence with the edges from A,<br />

<strong>and</strong> then add in the edges from B.<br />

A B C<br />

A B C<br />

F E D<br />

When we try to join C to F, we find that it must cross over an edge.<br />

Regions<br />

A planar graph divides the plane into a number of regions. A region,<br />

R, is an area from which it is not possible to move unless an edge<br />

is crossed. Regions exist within the graph as well as outside the<br />

graph.<br />

The graph at right has 5 vertices, 9 edges <strong>and</strong> 6 regions (that is,<br />

5 regions from within the graph <strong>and</strong> 1 region outside the graph).<br />

D<br />

C<br />

A B C<br />

F E D<br />

F E D<br />

A B<br />

1<br />

3<br />

5<br />

4<br />

E 2 D<br />

6<br />

C


160 General Mathematics<br />

WORKED Example<br />

Redraw the following <strong>networks</strong> as connected planar <strong>graphs</strong> if possible.<br />

a A<br />

b A<br />

c B D<br />

D<br />

B<br />

E<br />

C<br />

F<br />

B C<br />

A<br />

C<br />

E<br />

G H I<br />

D<br />

THINK WRITE<br />

a 1 Redraw each of the vertices. a<br />

2 Add in the edges making sure there are<br />

no crossovers.<br />

D<br />

B<br />

A<br />

E<br />

C<br />

F<br />

3<br />

G H I<br />

Answer the question. The network is a connected planar graph<br />

as there are no edges which cross over.<br />

b Redraw each of the vertices. b<br />

1<br />

2<br />

3<br />

Add in the edges making sure there are<br />

no crossovers.<br />

D<br />

Answer the question. The network is not a connected planar<br />

graph. It is not possible to reach a<br />

particular vertex from all other vertices.<br />

c Redraw each of the vertices. c<br />

1<br />

2<br />

3<br />

Add in the edges making sure there are<br />

no crossovers.<br />

G F<br />

Answer the question. The network is a connected planar graph<br />

as there are no edges which cross over.<br />

From the results obtained in worked example 3 we find that:<br />

Figure <strong>and</strong><br />

type of graph<br />

3<br />

Number of<br />

vertices (V)<br />

Number of<br />

regions (R)<br />

B C<br />

Number of<br />

edges (E) V + R – E<br />

a Planar 9 8 15 2<br />

b Not planar 4 1 2 3<br />

c Planar 7 7 12 2<br />

A<br />

B D<br />

C<br />

A E<br />

G<br />

F


Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 161<br />

In fact, if we analysed numerous planar <strong>graphs</strong> we would find, as Euler did, that in<br />

each case the final column V + R − E would equal 2.<br />

Leonhard Euler developed a number of important results in the theory of planar<br />

<strong>graphs</strong>, one of which is shown below.<br />

For any connected planar graph, the relationship between the number of vertices,<br />

V, regions, R, <strong>and</strong> edges, E, is given by:<br />

V + R – E = 2<br />

This is known as Euler’s Law.<br />

WORKED Example<br />

4<br />

a i Determine whether Euler’s formula holds for the given graph<br />

<strong>and</strong> state whether the graph is a connected planar graph.<br />

A<br />

B<br />

ii Compare the sum of the degrees of all the vertices <strong>and</strong> the<br />

number of edges.<br />

F<br />

D<br />

C<br />

b<br />

iii Establish how many odd-degree vertices there are.<br />

Determine whether Euler’s formula holds for the given information<br />

<strong>and</strong> state whether a connected planar graph would be produced.<br />

E<br />

i V = 7, R = 4, E = 8 ii V = 7, R = 5, E = 10<br />

THINK WRITE<br />

a i 1 Write down Euler’s formula. a i V + R − E = 2<br />

2 Determine the number of vertices. V = 6<br />

3 Determine the number of edges. E = 8<br />

4 Determine the number of regions.<br />

R = 4<br />

5<br />

Note: Remember there is an outside region<br />

which must be included in the total.<br />

Substitute the V, R, <strong>and</strong> E values into LHS = V + R − E<br />

the LHS of Euler’s formula.<br />

= 6 + 4 − 8<br />

6 Evaluate. = 10 − 8<br />

= 2<br />

7 Compare the answer obtained with RHS = 2<br />

the RHS of the equation.<br />

RHS = LHS<br />

8 Answer the question. Euler’s formula holds for the given<br />

graph so the given graph is a<br />

connected planar graph.<br />

ii 1 Determine the degree of each<br />

ii deg(A) = 2 deg(D) = 4<br />

vertex.<br />

deg(B) = 3 deg(E) = 2<br />

deg(C) = 3 deg(F) = 2<br />

2 Determine the degree of vertices sum. 2 + 3 + 3 + 4 + 2 + 2 = 16<br />

3 Determine the number of edges of<br />

the graph.<br />

There are 8 edges.<br />

4 Compare the results obtained in<br />

The degree of all the vertices is twice<br />

steps 2 <strong>and</strong> 3.<br />

the number of edges.<br />

iii Determine how many odd-degree<br />

iii There are 2 odd-degree vertices, that<br />

vertices there are.<br />

is, an even number of odd-degree<br />

vertices.<br />

Continued over page


162 General Mathematics<br />

THINK WRITE<br />

b i 1 Write down Euler’s formula. b i V + R − E = 2<br />

2 Substitute the V, R, <strong>and</strong> E values into LHS = V + R − E<br />

the LHS of Euler’s formula.<br />

= 7 + 4 − 8<br />

3 Evaluate. = 11 − 8<br />

= 3<br />

4 Compare the answer obtained with RHS = 2<br />

the RHS of the equation.<br />

RHS ≠ LHS<br />

5 Answer the question. Euler’s formula does not hold for the<br />

given information. This combination<br />

of values would not produce a<br />

connected planar graph.<br />

ii 1 Write down Euler’s formula. ii V + R − E = 2<br />

2 Substitute the V, R, <strong>and</strong> E values into LHS = V + R − E<br />

the LHS of Euler’s formula.<br />

= 7 + 5 − 10<br />

3 Evaluate. = 12 − 10<br />

= 2<br />

4 Compare the answer obtained with RHS = 2<br />

the RHS of the equation.<br />

RHS = LHS<br />

5 Answer the question. Euler’s formula holds for the given<br />

information. This combination of<br />

values would produce a connected<br />

planar graph.<br />

As we observed in worked example 4, <strong>and</strong> as Leonhard Euler discovered:<br />

For any connected planar graph:<br />

• the sum of the degree of all the vertices = 2 × number of edges<br />

• there is always an even number of odd-degree vertices.<br />

We will work with Leonhard Euler’s results in the following exercise.<br />

remember<br />

remember<br />

1. A planar graph has no crossover edges.<br />

2. A planar graph divides the plane into a number of regions.<br />

3. When counting regions, the region around the outside of the graph is counted<br />

as 1.<br />

4. For any connected planar graph:<br />

(a) Euler’s Law states that V + R − E = 2<br />

(b) the sum of the degree of all the vertices = 2 × number of edges<br />

(c) there is always an even number of odd-degree vertices.


WORKED<br />

Example<br />

3<br />

WORKED<br />

Example<br />

4a<br />

Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 163<br />

Planar <strong>graphs</strong><br />

1 Redraw the following <strong>networks</strong> as connected planar <strong>graphs</strong>, if possible.<br />

a b c d<br />

2 a Copy <strong>and</strong> complete the table below for each of the following <strong>graphs</strong>.<br />

i ii iii iv<br />

v vi vii viii<br />

i<br />

ii<br />

iii<br />

iv<br />

v<br />

vi<br />

vii<br />

viii<br />

21B<br />

Number of<br />

vertices (V)<br />

Number of<br />

regions (R)<br />

b Copy <strong>and</strong> complete the following sentence.<br />

For any planar graph, V + R − E = .<br />

This formula is known as Law.<br />

3 a Determine whether Euler’s formula holds for the<br />

given graph <strong>and</strong> state whether the graph is a<br />

connected planar graph.<br />

b Compare the sum of the degrees of all the vertices<br />

<strong>and</strong> the number of edges.<br />

c Establish how many odd-degree vertices there are.<br />

Number of<br />

edges (E) V + R – E<br />

A<br />

D<br />

B<br />

C<br />

E<br />

F


164 General Mathematics<br />

WORKED<br />

Example<br />

4b<br />

4 Complete the tasks listed below for each of the following <strong>graphs</strong>.<br />

a A B b A B c A<br />

C<br />

F<br />

G<br />

i Find the number of vertices.<br />

ii Find the number of regions.<br />

iii Write down the degree of each vertex.<br />

iv Find the total of all these degrees.<br />

v Write down the number of edges.<br />

vi Compare the results obtained in parts iv <strong>and</strong> v <strong>and</strong> then copy <strong>and</strong> complete the<br />

following sentence:<br />

For any connected planar graph, the sum of the degrees of all the vertices =<br />

× number of edges.<br />

5 For each of the <strong>graphs</strong> in question 4, write down how many vertices there are whose<br />

degree is an odd number.<br />

6 Is the following statement true or false?<br />

‘In any connected graph, there is always an even number of odd-degree vertices.’<br />

7 Determine whether Euler’s formula holds for the given information <strong>and</strong> state whether<br />

a connected planar graph would be produced.<br />

a V = 8, R = 4, E = 10 b V = 4, R = 3, E = 5<br />

c V = 7, R = 5, E = 10 d V = 10, R = 8, E = 15<br />

e V = 5, R = 4, E = 6 f V = 6, R = 8, E = 4<br />

g V = 4, R = 6, E = 8 h V = 7, R = 8, E = 13<br />

i V = 9, R = 4, E = 11 j V = 12, R = 4, E = 14<br />

8 Use Euler’s formula for each of the connected planar <strong>graphs</strong> below to determine the<br />

value of the unknown.<br />

a V = 4, R = 7, E = ? b V = 5, R = 6, E = ?<br />

c V = 4, R = ?, E = 5 d V = 4, R = ?, E = 6<br />

e V = ?, R = 8, E = 11 f V = ?, R = 2, E = 4<br />

g V = 8, R = 5, E = ? h V = 5, R = ?, E = 10<br />

i V = ?, R = 8, E = 12 j V = ?, R = 5, E = 7<br />

9<br />

C D<br />

D E<br />

d A B<br />

e A B<br />

f<br />

D E<br />

multiple ultiple choice<br />

C<br />

C<br />

E F<br />

The number of vertices a connected planar network with 6 edges <strong>and</strong> 3 regions has is:<br />

A 1 B 5 C 4 D 6 E 3<br />

D<br />

B<br />

C<br />

D E<br />

B<br />

E<br />

C<br />

F<br />

A<br />

D


10<br />

Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 165<br />

multiple ultiple choice<br />

The number of regions a connected planar network with 8 edges <strong>and</strong> 7 vertices has is:<br />

A 6 B 5 C 4 D 3 E 2<br />

11 multiple ultiple choice<br />

For the given graph ,<br />

A V = 8, R = 5, E = 12 B V = 7, R = 5, E = 6<br />

C V = 6, R = 6, E = 12 D V = 7, R = 6, E = 6<br />

E V = 8, R = 6, E = 12<br />

Schlegel diagrams<br />

A tetrahedron (one of the 5 platonic solids) may be represented as a planar graph.<br />

(It may help to imagine a squashed version of the tetrahedron.)<br />

tetrahedron<br />

Such a representation is called a Schlegel diagram.<br />

Draw the corresponding Schlegel diagram for each of the following platonic solids.<br />

cube octahedron dodecahedron icosahedron<br />

Map colouring<br />

How many different colours are needed to colour a map<br />

so that no two adjoining regions are the same colour?<br />

Regions that meet at a point only may be the same colour.<br />

1 Copy <strong>and</strong> colour the ‘map’ at right using the minimum<br />

of colours.<br />

A<br />

Fig 60 C<br />

B<br />

H<br />

G<br />

D<br />

E<br />

F


166 General Mathematics<br />

2 The simplified map of Africa below shows borders between countries. Print it<br />

from your Maths Quest CD <strong>and</strong> colour it using the minimum number of colours.<br />

Africa – Political<br />

Azimuthal Equal Area Projection<br />

3 Suggest the minimum number of colours needed to colour any map.<br />

N<br />

0 500 1000 km


Eulerian paths <strong>and</strong> circuits<br />

Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 167<br />

A path is a series of vertices connected by edges: it displays how B<br />

to travel from one vertex to another via an edge. Just as in everyday A Fig 61<br />

life a path is something we can walk along, we may consider a<br />

E<br />

path in a graph as something that can be traversed. In a path the C D<br />

vertices are used only once <strong>and</strong> the edges are traversed (passed<br />

over) only once; that is, edges <strong>and</strong> vertices listed in a path may not be repeated.<br />

Some examples of paths in the graph above are: ABD, ABDE <strong>and</strong> ACDB. The<br />

sequence ABCA is not a path since there is no edge which connects vertex B to vertex<br />

C.<br />

A circuit (or cycle) is a path which starts <strong>and</strong> finishes at the same vertex <strong>and</strong> no edge<br />

is traversed (passed over) more than once.<br />

An example of a circuit from the above graph is ABDCA.<br />

1. A path is a series of vertices connected by edges.<br />

2. A circuit (or cycle) is a path which starts <strong>and</strong> finishes at the same vertex <strong>and</strong> no<br />

edge is traversed more than once.<br />

An Eulerian path is a path which uses each edge in a graph<br />

only once, however a vertex may be repeated.<br />

For the graph at right, an Eulerian path could start at A,<br />

travel to C–D–A–B–D then finish at E. Another Eulerian path<br />

is E–D–C–A–B–D–A.<br />

Do you remember a children’s game in which you must draw a picture<br />

of an envelope (or a house) without lifting your pencil off the paper <strong>and</strong><br />

without going over any line twice?<br />

This is an example of an Eulerian path.<br />

A graph may have more than one Eulerian path or it may not be<br />

possible to draw any Eulerian paths. An example of a graph for which<br />

an Eulerian path is not possible is shown at right.<br />

A B<br />

Fig 62<br />

C D<br />

If an Eulerian path starts <strong>and</strong> finishes at the same vertex, it is 2<br />

called an Eulerian circuit. Therefore, an Eulerian circuit is a<br />

1<br />

3<br />

path which starts <strong>and</strong> finishes at the same vertex, uses all the<br />

edges <strong>and</strong> does not go over any edge twice. An Eulerian circuit<br />

4 5<br />

may be drawn for the graph at right.<br />

The Eulerian circuit is 1–2–3–5–4–3–1.<br />

Eulerian paths <strong>and</strong> circuits have many real-life applications in areas such as planning<br />

delivery routes <strong>and</strong> communication <strong>networks</strong>.<br />

Consider the following example of a practical application of an Eulerian circuit.<br />

Postal workers collect their mail from the distribution centre, deliver mail along their<br />

particular route where each street (edge) is crossed once. At the end of their delivery<br />

route, the postal workers return to the distribution centre. Other examples include<br />

recycling <strong>and</strong> garbage collection, newspaper <strong>and</strong> junk mail deliveries <strong>and</strong> so on.<br />

E


168 General Mathematics<br />

1. An Eulerian path is a path which uses each edge in a graph only once.<br />

2. An Eulerian circuit is an Eulerian path which starts <strong>and</strong> finishes at the same<br />

vertex.<br />

WORKED Example<br />

For each of the following <strong>graphs</strong> determine whether it is possible to draw an:<br />

i Eulerian path <strong>and</strong><br />

ii Eulerian circuit.<br />

a A B E<br />

b<br />

Fig 66<br />

C D<br />

THINK WRITE<br />

a i 1 Specify a path in which each edge is a i Begin at vertex A;<br />

only used once.<br />

Note: A vertex may be used more<br />

than once.<br />

travel to B–D–A–C–D–E.<br />

2 Answer the question. It is possible to specify an Eulerian<br />

path from the given graph. The<br />

Eulerian path is<br />

A–B–D–A–C–D–E.<br />

ii 1 Specify a path which begins <strong>and</strong> ii Begin at vertex B; travel to<br />

ends at the same vertex but uses<br />

D–C–A–D–E. Cannot get back to<br />

each edge only once.<br />

B without going over edges already<br />

covered.<br />

2<br />

3<br />

Attempt another path.<br />

Note: In this case any path<br />

attempted will lead to the same<br />

result.<br />

5<br />

A F E<br />

Fig 67<br />

B C<br />

Begin at vertex C, travel to<br />

D–B–A–D–E. Cannot get back to<br />

C without going over edges already<br />

covered.<br />

Answer the question. It is not possible to specify an Eulerian<br />

circuit from the given graph without<br />

going over some of the edges twice.<br />

b i 1 Specify a path in which each edge is b i Begin at vertex A;<br />

only used once.<br />

Note: A vertex may be used more<br />

than once.<br />

travel to B–F–D–B–C–D–E–F–A.<br />

2 Answer the question. It is possible to specify an Eulerian<br />

path from the given graph. This is<br />

actually a special case of an Eulerian<br />

path as it is also an Eulerian circuit<br />

A–B–F–D–B–C–D–E–F–A.<br />

D


Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 169<br />

THINK WRITE<br />

ii 1 Specify a path which begins <strong>and</strong> ii Begin at vertex C; travel to<br />

ends at the same vertex but uses<br />

each edge only once.<br />

D–E–F–A–B–F–D–B–C.<br />

2 Answer the question.<br />

It is possible to specify an Eulerian<br />

Note: In this case it is possible to<br />

circuit from the given graph. One<br />

obtain an Eulerian circuit from any possible Eulerian circuit is<br />

vertex.<br />

C–D–E–F–A–B–F–D–B–C.<br />

After studying many undirected <strong>graphs</strong> dealing with Eulerian paths <strong>and</strong> circuits, it was<br />

found that for an Eulerian path <strong>and</strong> an Eulerian circuit to be obtained from a given network,<br />

the following characteristics had to be satisfied:<br />

1. An Eulerian path is possible if the number of odd-degree vertices is 0 or 2.<br />

2. An Eulerian circuit is possible if each of the vertices has even degrees.<br />

Let us see if these characteristics have been satisfied in worked example 5. Recall<br />

that in worked example 5a, only an Eulerian path was satisfied. However, in worked<br />

example 5b, both an Eulerian path <strong>and</strong> an Eulerian circuit were specified.<br />

If we examine the degree of each vertex<br />

in worked example 5a, we find that there Vertex Degree<br />

are two odd number degree vertices; that is,<br />

A <strong>and</strong> E. Therefore the characteristics for<br />

A 3 ⇒ Odd<br />

an Eulerian path have been satisfied. How- B 2<br />

ever, we were unable to specify an Eulerian<br />

circuit as each vertex did not have an even C 2<br />

degree.<br />

If we examine the degree of each vertex<br />

D 4<br />

in worked example 5b, we find that there<br />

are 0 odd number degree vertices.<br />

E 1 ⇒ Odd<br />

Vertex A B C D E F<br />

Degree 2 4 2 4 2 4<br />

This implies that each vertex has an even degree. Therefore the characteristics for<br />

both an Eulerian path <strong>and</strong> an Eulerian circuit have been satisfied.<br />

remember<br />

remember<br />

1. A path is a series of vertices connected by edges.<br />

2. A circuit (or cycle) is a path which starts <strong>and</strong> finishes at the same vertex <strong>and</strong> no<br />

edge is traversed more than once.<br />

3. An Eulerian path is a path which uses each edge in a graph only once.<br />

4. An Eulerian circuit is an Eulerian path which starts <strong>and</strong> finishes at the same<br />

vertex.<br />

5. An Eulerian path is possible if the number of odd vertices is 0 or 2.<br />

6. An Eulerian circuit is possible if each of the vertices has even degrees.


170 General Mathematics<br />

WORKED<br />

Example<br />

5<br />

Eulerian paths <strong>and</strong> circuits<br />

1 For which of the following <strong>graphs</strong> is it possible to draw an:<br />

a Eulerian path b Eulerian circuit?<br />

i A B<br />

ii A B<br />

iii<br />

2 Copy <strong>and</strong> complete this table for the <strong>graphs</strong> in question 1.<br />

Vertex<br />

A<br />

B<br />

C<br />

D<br />

E<br />

F<br />

Number<br />

of odd<br />

vertices<br />

Eulerian<br />

path<br />

(Yes/No)<br />

Eulerian<br />

circuit<br />

(Yes/No)<br />

21C<br />

D C<br />

D C<br />

D C<br />

iv A B v A D<br />

vi A C<br />

D C<br />

Degree of<br />

vertex in<br />

graph<br />

i<br />

Degree of<br />

vertex in<br />

graph<br />

ii<br />

Degree of<br />

vertex in<br />

graph<br />

iii<br />

Note: The shaded regions indicate that the particular vertex does not exist for the<br />

given graph.<br />

3 Using the results from question 2, copy <strong>and</strong> complete these rules to check if it is<br />

possible to draw an Eulerian path or an Eulerian circuit.<br />

a An Eulerian path is possible if the number of odd degree vertices is or .<br />

b An Eulerian circuit is possible if the vertices all have degrees.<br />

4 For the following <strong>networks</strong>:<br />

i state the degree of each vertex<br />

ii specify whether an Eulerian path is possible<br />

E<br />

B C<br />

Degree of<br />

vertex in<br />

graph<br />

iv<br />

A<br />

Degree of<br />

vertex in<br />

graph<br />

v<br />

E<br />

F E<br />

B<br />

B D<br />

Degree of<br />

vertex in<br />

graph<br />

vi


Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 171<br />

iii specify whether an Eulerian circuit is possible.<br />

a b c d<br />

A B<br />

G H<br />

F<br />

E<br />

D<br />

C<br />

A<br />

E<br />

5 The graph at right shows a number of roads in a town. The<br />

G<br />

council is organising a street sweeping route so that the same road<br />

is not used twice. The street sweeping truck is to start <strong>and</strong> finish<br />

A D H K<br />

at the council depot, D.<br />

B E I<br />

a Explain why it is not possible to do this without going down<br />

one street twice.<br />

C F J<br />

b If one street were to be left out, it would be possible to complete the task without<br />

going down the same street twice. Which street has to be left out?<br />

6 The network at right shows a number of paths in a park.<br />

a Is it possible to start at A <strong>and</strong> walk along each pathway once<br />

<strong>and</strong> return to A?<br />

b If it is, draw such a path. If not, which path needs to be<br />

A<br />

C<br />

F<br />

D<br />

E<br />

G<br />

H<br />

I<br />

walked along twice?<br />

B<br />

J<br />

7 multiple ultiple choice<br />

For this graph, a suitable Eulerian path would be:<br />

A B<br />

A D–B–F–C–A<br />

B A–C–F–C–D<br />

C A–B–E–D–C–A<br />

F<br />

E<br />

D C–F–B–D–C–A–B–E–D<br />

C D<br />

E C–F–B–E<br />

Questions 8 <strong>and</strong> 9 refer to the following <strong>graphs</strong>.<br />

i ii iii<br />

A D<br />

B C<br />

8 multiple ultiple choice<br />

The <strong>graphs</strong> which have an Eulerian path are:<br />

A i only B i <strong>and</strong> ii only C i, ii <strong>and</strong> iii D ii <strong>and</strong> iii only E i <strong>and</strong> iii only<br />

9 multiple ultiple choice<br />

The <strong>graphs</strong> which have an Eulerian circuit are:<br />

A i only B ii only C iii only D i <strong>and</strong> ii only E ii <strong>and</strong> iii only<br />

10 multiple ultiple choice<br />

If a graph has only even degree vertices then:<br />

A it is possible to draw an Eulerian circuit but not an Eulerian path<br />

B it is not possible to draw either an Eulerian circuit or an Eulerian path<br />

C it is possible to draw an Eulerian circuit but it depends on the graph whether an<br />

Eulerian path can be drawn<br />

D it is possible to draw an Eulerian path but not an Eulerian circuit<br />

E it is possible to draw an Eulerian path <strong>and</strong> an Eulerian circuit.<br />

B<br />

C D<br />

A B<br />

C D<br />

A F E A<br />

B D<br />

C<br />

B<br />

D<br />

C<br />

E<br />

B<br />

F<br />

A<br />

C<br />

E<br />

H<br />

D<br />

G<br />

WorkSHEET 21.1


172 General Mathematics<br />

Hamiltonian paths <strong>and</strong> circuits<br />

Eulerian paths are used when we need to find a way to travel along each edge only<br />

once. This is useful in areas such as postal or delivery routes <strong>and</strong> garbage collections.<br />

However, there are occasions when we are interested in travelling to each vertex only<br />

once, but it is not important that we travel along each edge.<br />

For example, if the vertices are five tourist areas to be visited in<br />

a town, we may be interested in visiting each area (vertex) but not<br />

in travelling along each road. A path that passes through each<br />

vertex once is called a Hamiltonian path (named after Sir William<br />

Hamilton [1805–65], a Scottish mathematician). A Hamiltonian<br />

path must pass through each vertex once, but does not have to use each edge. Usually<br />

all of the edges are not required to draw a Hamiltonian path.<br />

In the graph shown (above right), one Hamiltonian path is A–B–C–D–E. Another is<br />

A–E–D–C–B. It is possible to specify a number of Hamiltonian paths from a given graph.<br />

A Hamiltonian path that starts <strong>and</strong> finishes at the same vertex is<br />

called a Hamiltonian circuit, in this case, one vertex is used<br />

twice: for starting <strong>and</strong> finishing.<br />

In the network at right, C–D–E–A–B–C is an example of a<br />

Hamiltonian circuit.<br />

A B<br />

E D<br />

B A<br />

1. A Hamiltonian path passes through each vertex only once. It may not use all of<br />

the edges.<br />

2. A Hamiltonian circuit is a Hamiltonian path which starts <strong>and</strong> finishes at the<br />

same vertex.<br />

WORKED Example<br />

6<br />

Determine which of the following have a:<br />

i Hamiltonian path<br />

ii Hamiltonian circuit.<br />

a B b A B C D c A<br />

A<br />

C<br />

C D<br />

F E<br />

E<br />

D<br />

THINK WRITE<br />

B E<br />

a i 1 Specify a Hamiltonian path for the a i Begin at vertex C; travel to D–B–A–E.<br />

given graph.<br />

Or begin at vertex A; travel to<br />

Note: Each vertex must be used only<br />

once. However, each edge does not<br />

need to be used.<br />

There may be more than one<br />

Hamiltonian path.<br />

E–D–B–C.<br />

2 Answer the question. It is possible to specify a Hamiltonian<br />

path from the given graph. Possible<br />

Hamiltonian paths include:<br />

C–D–B–A–E or A–E–D–B–C.<br />

C<br />

D<br />

C<br />

E


Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 173<br />

THINK WRITE<br />

ii 1 Specify a Hamiltonian circuit for the ii Begin at vertex D; travel to<br />

given graph.<br />

Note: We must begin <strong>and</strong> end at the<br />

same vertex <strong>and</strong> pass each of the<br />

other vertices once only.<br />

C–B–A–E–D.<br />

2<br />

Answer the question. It is possible to specify a Hamiltonian<br />

circuit from the given graph. A<br />

possible Hamiltonian circuit is D–C–<br />

B–A–E–D.<br />

b i 1 Specify a Hamiltonian path for the b i Begin at vertex A; travel to<br />

given graph.<br />

B–C–F–E–D.<br />

2 Answer the question. It is possible to specify a Hamiltonian<br />

path from the given graph. The<br />

Hamiltonian path is<br />

A–B–C–F–E–D.<br />

ii 1 Specify a Hamiltonian circuit for the<br />

given graph.<br />

Note: To get back to vertex A, we<br />

will have to go through vertices B<br />

<strong>and</strong> C.<br />

2<br />

ii Begin at vertex A; travel to<br />

B–C–D–E–F. It is not possible to get<br />

back to A without passing through<br />

B <strong>and</strong> C again.<br />

Answer the question. It is not possible to specify a<br />

Hamiltonian circuit as we cannot get<br />

back to the start, that is, to vertex A,<br />

without passing through B <strong>and</strong> C again.<br />

c i 1 Specify a Hamiltonian path for the c i Begin at vertex A; travel to B–C.<br />

given graph.<br />

We cannot go any further as we are<br />

unable to get to vertex D <strong>and</strong> E.<br />

2 Answer the question. It is not possible to specify a<br />

Hamiltonian path as the graph is not<br />

connected.<br />

ii 1 Specify a Hamiltonian circuit for the ii Begin at vertex A; travel to B–C.<br />

given graph.<br />

Again, it is not possible to reach<br />

vertices D <strong>and</strong> E <strong>and</strong> then get back<br />

to A.<br />

2<br />

Answer the question. It is not possible to specify a<br />

Hamiltonian circuit as the graph is not<br />

connected.


174 General Mathematics<br />

The graph at right shows a delivery network with O being the<br />

central office.<br />

2 O 5<br />

Gaetano must deliver items to each of the six places labelled 1, 2,<br />

. . ., 6. The edges represent roads between the places. Plan a<br />

delivery route for Gaetano to deliver the items to each of the six<br />

1<br />

3<br />

6<br />

places, without going to the same place twice. Gaetano must<br />

return to the central office after the items have been delivered.<br />

4<br />

THINK WRITE<br />

1 Specify a Hamiltonian path for the given<br />

graph.<br />

Note: Gaetano must visit each vertex only<br />

once <strong>and</strong> start <strong>and</strong> finish at O. Therefore,<br />

we need a Hamiltonian circuit.<br />

Begin at vertex O; travel to 2–1–3–4–6–5–O.<br />

Check that each vertex (except O) has Each vertex (except O) has only been used<br />

2<br />

3<br />

WORKED Example<br />

only been used once.<br />

7<br />

Answer the question.<br />

Note: In this example there is more than<br />

one possible solution.<br />

once.<br />

One possible solution for Gaetano’s route is<br />

O–2–1–3–4–6–5–O. Another possible solution<br />

is O–5–6–4–3–1–2–O.<br />

Shortest path<br />

The shortest path in a graph has a number of applications in business: minimising the<br />

distance travelled, minimising the time for a journey or a series of jobs <strong>and</strong> minimising<br />

transport costs. In shortest path problems, we usually have a starting point (for example<br />

a depot, main office or a warehouse) <strong>and</strong> require a Hamiltonian circuit with the least<br />

distance. One method for finding the shortest path is to move along the network choosing<br />

the edge with the shortest distance or least cost until a Hamiltonian circuit is formed.<br />

WORKED Example<br />

8<br />

A distributor supplies retail outlets labelled A, B, C, D <strong>and</strong> E from<br />

a warehouse, W.<br />

The distances along the roads are shown in the network at right.<br />

Find the shortest delivery route that goes to each retail outlet <strong>and</strong><br />

6 km<br />

9 km A<br />

W 8 km<br />

3 km<br />

7 km<br />

D<br />

10 km 13 km<br />

B<br />

11 km<br />

returns to the warehouse.<br />

THINK WRITE<br />

C<br />

9 km<br />

18 km<br />

E<br />

1 Obtain a Hamiltonian circuit starting <strong>and</strong> Begin at vertex W, travel to D–A–B–E–C–W.<br />

finishing at W. Look at the possible routes<br />

6 km<br />

9 km A<br />

WA, WD <strong>and</strong> WC. Choose the route of the<br />

W 8 km<br />

3 km<br />

7 km<br />

least distance, that is, WD. Continue from D,<br />

D<br />

until a Hamiltonian circuit is formed 10 km 13 km<br />

B<br />

11 km<br />

2<br />

choosing the least distance.<br />

Highlight the selected route.<br />

C<br />

9 km<br />

18 km<br />

E<br />

3 Answer the question. The shortest delivery route, W–D–A–B–E–C–W,<br />

is highlighted in the above diagram.<br />

The distance for the shortest route is 56 km,<br />

that is, 8 + 3 + 6 + 11 + 18 + 10 = 56 km.


Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 175<br />

In other problems we may not require a Hamiltonian circuit as many shortest path<br />

situations require simply travelling in one direction from the starting point to the<br />

destination. A method similar to that used in worked example 8 may be used; choosing<br />

the shortest distance edge <strong>and</strong> moving along the network until the destination is reached.<br />

Find the shortest distance along the roads between towns A <strong>and</strong><br />

G in the given diagram.<br />

THINK WRITE<br />

1<br />

2<br />

3<br />

WORKED Example<br />

Obtain the route which gives the shortest<br />

distance from A to G.<br />

Note: We do not require a Hamiltonian<br />

circuit as we are moving directly from A to<br />

G <strong>and</strong> do not need to visit all of the towns.<br />

Start at vertex A. Look at the possible<br />

routes AB, AC <strong>and</strong> AD.<br />

Choose the route of the least distance, that<br />

is, AB.<br />

From B, look at BG, BF <strong>and</strong> BC.<br />

Again choose the route of the least distance,<br />

that is, BF.<br />

Note: The distance<br />

from towns B to G via<br />

F was shorter than the<br />

more direct route of B<br />

to G (that is, 27 km compared to 31 km).<br />

B<br />

9<br />

10 km<br />

17 km<br />

31 km<br />

Begin at vertex A;<br />

travel to B–F–G.<br />

18 km<br />

9 km 9 km 17 km<br />

B<br />

Highlight the selected route.<br />

Answer the question. The shortest delivery route from A <strong>and</strong> G,<br />

A–B–F–G, is highlighted in the above diagram.<br />

The distance for the shortest route is 38 km, that<br />

is, 11 + 10 + 17 = 38 km.<br />

There is a lot of trial <strong>and</strong> error involved in calculating the shortest distance; it is advisable<br />

to use a pencil, eraser <strong>and</strong> scrap paper for calculations to decide the shortest path.<br />

remember<br />

remember<br />

F<br />

G<br />

15 km<br />

A<br />

D<br />

25 km<br />

18 km<br />

15 km<br />

9 km 9 km 17 km<br />

C<br />

12 km<br />

14 km<br />

10 km<br />

F<br />

E<br />

22 km<br />

11 km 31 km<br />

A<br />

G<br />

D<br />

25 km<br />

C<br />

12 km<br />

14 km<br />

10 km<br />

F<br />

E<br />

22 km<br />

11 km 31 km<br />

1. A Hamiltonian path passes through each vertex only once. It may not use all of<br />

the edges.<br />

2. A Hamiltonian circuit is a Hamiltonian path which starts <strong>and</strong> finishes at the<br />

same vertex.<br />

3. To find the shortest path in a network, choose the edge of least distance <strong>and</strong><br />

move along the network until the destination is reached. This usually requires a<br />

trial <strong>and</strong> error approach.<br />

B<br />

G


176 General Mathematics<br />

WORKED<br />

Example<br />

6<br />

WORKED<br />

Example<br />

7<br />

21D<br />

Hamiltonian paths<br />

<strong>and</strong> circuits<br />

1 Determine which of the following have a:<br />

a Hamiltonian path b Hamiltonian circuit.<br />

i ii iii<br />

iv v vi<br />

2 The graph at right represents a delivery route with O being the<br />

central office. A courier must deliver items to each of the eight<br />

places labelled 1, 2, . . ., 8. The edges represent roads between<br />

1<br />

4<br />

2<br />

O<br />

3<br />

5<br />

the places. Plan a delivery route for the courier to deliver the<br />

items to each of the eight places without going to the same place<br />

6<br />

7 8<br />

twice. The courier must return to the central office after the items have been delivered.


WORKED<br />

Example<br />

8<br />

WORKED<br />

Example<br />

9<br />

Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 177<br />

3 Construct a graph for which a Hamiltonian circuit is 4–3–2–1–5–4.<br />

4 Draw a graph that does not have a Hamiltonian path.<br />

5 Which <strong>graphs</strong> in question 1 also have an Eulerian path?<br />

6 A distributor located at O supplies shops labelled A to F.<br />

The distances are in kilometres. Find the shortest delivery<br />

route from the depot at O that visits each shop <strong>and</strong> returns to<br />

the depot.<br />

7 A delivery firm has to collect goods at storage places E, F,<br />

G, H <strong>and</strong> I <strong>and</strong> deliver them to the depot at D. Find the<br />

shortest route from the depot visiting each storage place <strong>and</strong><br />

returning to the depot.<br />

20 km<br />

8 Find the length of the shortest Hamiltonian circuit in each of the following.<br />

a 4<br />

b 6<br />

c 11 d 7<br />

5<br />

3 3 7<br />

10 5 7 7<br />

5<br />

4 4 5 5<br />

4<br />

4<br />

5<br />

4 4<br />

8<br />

12 10 10<br />

7<br />

6 6<br />

9<br />

4<br />

6<br />

10<br />

4 3<br />

12<br />

8<br />

(Hint: You may find it easiest to start in the top left-h<strong>and</strong> corner of each network.)<br />

9 The table shows the distance, in km, between storage points A, B, C, E, F <strong>and</strong> G <strong>and</strong><br />

a depot D.<br />

A B C E F G<br />

D 8 12 15 16<br />

A 15 12<br />

B 10 22<br />

C 29 14<br />

E 15<br />

F 19<br />

Note: The shaded region indicates that there is no road connecting<br />

the two towns.<br />

A<br />

D E<br />

a<br />

b<br />

Transfer the information from the above table onto a copy of<br />

the graph at right.<br />

Find the shortest path from the depot, visiting each storage<br />

point <strong>and</strong> finishing at the depot.<br />

B<br />

C F<br />

G<br />

10 Find the shortest distance along the roads, between the towns S <strong>and</strong> F in each of the<br />

folowing diagrams. (Note that distances are in kilometres.)<br />

a 8<br />

A<br />

B<br />

5 6 9<br />

3 6<br />

S<br />

10<br />

6<br />

C<br />

3<br />

D F<br />

7 7<br />

8<br />

E<br />

G<br />

8<br />

b<br />

4<br />

9<br />

7<br />

5 13<br />

6<br />

18 7<br />

4<br />

7<br />

10<br />

c<br />

21<br />

A<br />

S<br />

C<br />

B<br />

10<br />

E G F<br />

10<br />

D<br />

6<br />

S<br />

6<br />

C<br />

10<br />

A<br />

25<br />

12<br />

12<br />

6<br />

E<br />

B<br />

D<br />

12<br />

19<br />

17 F<br />

10<br />

11<br />

G<br />

A<br />

6<br />

B<br />

D<br />

11 km<br />

O<br />

C<br />

D 10<br />

10<br />

3<br />

17 5 5<br />

5<br />

E<br />

11 7<br />

22<br />

16 km<br />

16<br />

F<br />

8 km<br />

15 km<br />

8 km<br />

E<br />

7 km<br />

F<br />

10 km<br />

I<br />

6 km<br />

H<br />

12 km<br />

G<br />

9 km


WorkSHEET 21.2<br />

178 General Mathematics<br />

11 For the network shown in the diagram at right, find the<br />

shortest distance between:<br />

a A <strong>and</strong> H b E <strong>and</strong> G.<br />

12 A tour of six country towns is to start <strong>and</strong> finish at<br />

Bendigo. Find the shortest distance tour.<br />

13 The distance, in km, between five towns is shown in the table below.<br />

B C D E<br />

A 300 353 417 280<br />

B 219 453 345<br />

C 291 402<br />

D 258<br />

Note: The shaded region indicates that there is no road connecting the two towns.<br />

a Transfer the information from the above table onto a copy of the A<br />

graph at right.<br />

B<br />

b A tour is planned to start <strong>and</strong> finish at A <strong>and</strong> visit all of the towns. E<br />

c<br />

Find the shortest distance for the tour.<br />

If the tour were to start <strong>and</strong> finish at C, would the shortest distance<br />

be the same?<br />

D<br />

C<br />

d A new tour, starting <strong>and</strong> finishing at A, is planned to visit all the towns <strong>and</strong> a<br />

further town, F. The distances from B to F, C to F <strong>and</strong> E to F are 476, 429 <strong>and</strong><br />

319 km respectively. Find the shortest distance tour now possible.<br />

14 multiple ultiple choice<br />

A Hamiltonian circuit for the graph at right is:<br />

A A–D–E–C–F–G–A B A–D–B–C–E–C–F–G–A<br />

C A–D–E–C–B–F–G D A–D–E–C–B–F–G–A<br />

E A–G–F–B–D–C–E–A<br />

15 multiple ultiple choice<br />

The length of the shortest Hamiltonian circuit is:<br />

A 53 km B 47 km C 56 km<br />

D 40 km E 51 km<br />

10<br />

A<br />

E<br />

14<br />

6 10<br />

C<br />

13<br />

13<br />

11<br />

12<br />

22<br />

B<br />

8<br />

G<br />

5<br />

9 H<br />

9 4 D<br />

F<br />

Mildura<br />

225 km<br />

103 km<br />

Ouyen 140 km<br />

Swan Hill<br />

60 km<br />

212 km<br />

Kerang<br />

115 km<br />

Horsham<br />

219 km Bendigo<br />

13 km<br />

E<br />

G<br />

247 km<br />

234 km<br />

A D<br />

B<br />

F C<br />

2 km<br />

D<br />

15 km<br />

A 3 km B<br />

5 km<br />

17 km<br />

F<br />

9 km<br />

12 km<br />

14 km<br />

E<br />

12 km<br />

C


Trees<br />

Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 179<br />

A tree is a connected graph without any circuits, loops or multiple edges.<br />

3<br />

B<br />

Examples of trees include: 1 2 4 <strong>and</strong> C A D<br />

5<br />

E<br />

Since a tree cannot have any circuits or loops, it contains only one region.<br />

Examples of <strong>graphs</strong> which are not trees include:<br />

<strong>and</strong><br />

A B<br />

B A<br />

2<br />

1<br />

C D D C<br />

4 5<br />

This is not a tree This is not a tree This is not a tree<br />

because it is because the graph because the graph<br />

a circuit. contains a loop. contains a multiple edge.<br />

Trees are used in transportation <strong>and</strong> communication <strong>networks</strong>, in computer programming,<br />

in planning projects to represent independent activities or structures, <strong>and</strong> in<br />

road <strong>and</strong> railway planning.<br />

WORKED Example<br />

10<br />

Which of the following are trees?<br />

a 1 2<br />

b 1 2<br />

c<br />

1 2<br />

4 3<br />

3 4<br />

3 4<br />

5 6<br />

THINK WRITE<br />

a Determine whether the graph is connected. a This graph does not represent a tree since<br />

it is not connected.<br />

b 1 Determine whether the graph is<br />

connected.<br />

b The graph is connected.<br />

2 Determine whether the graph contains This graph does not represent a tree since<br />

any circuits, loops or multiple edges. it contains a circuit, that is, 1–2–4–1.<br />

c 1 Determine whether the graph is connected. c The graph is connected.<br />

2 Determine whether the graph contains This graph does represent a tree as it<br />

any circuits, loops or multiple edges. meets each of the criteria, that is, this is a<br />

Count the number of regions.<br />

connected graph without any circuits,<br />

loops or multiple edges. There is only<br />

1 region.<br />

In order for any network to be defined as a tree, it must satisfy the following<br />

criteria:<br />

1. the graph must be connected<br />

2. the graph must not contain any circuits, loops or multiple edges<br />

3. the graph must contain only one region.<br />

3


180 General Mathematics<br />

WORKED Example<br />

11<br />

a Remove the edges from this graph to produce a tree.<br />

b Comment on the relationship between the number of edges <strong>and</strong> the<br />

number of vertices.<br />

THINK WRITE<br />

a 1 Look at the given graph <strong>and</strong> identify a There are 4 circuits: A–B–C–A,<br />

any circuits.<br />

B–D–E–B, B–E–F–B <strong>and</strong> B–D–E–F–B.<br />

2 Remove one of the edges from circuit<br />

A–B–C–A, say BC.<br />

A<br />

B<br />

D<br />

E<br />

3 Remove the edge BE from circuit<br />

A<br />

B–D–E–F–B<br />

4 Remove the edge BF from circuit<br />

A<br />

B–D–E–F–B.<br />

b 1 Count the number of vertices, V. b V = 6<br />

2 Count the number of edges, E. E = 5<br />

3 Answer the question. The difference between the vertices <strong>and</strong><br />

edges in a tree is 1; that is, V − E = 1.<br />

C<br />

C<br />

C<br />

The tree obtained in worked example 11 is one possible spanning tree for the graph. A<br />

spanning tree is a tree that includes all the vertices in the graph. Find other spanning<br />

trees in worked example 11 by removing different edges.<br />

Often it is necessary to find a minimal spanning tree; that is, a spanning tree with the<br />

minimum length (or cost, or time).<br />

To find a minimal spanning tree:<br />

1. select the edge with the minimum value. If there is more than one such edge,<br />

choose any one of them.<br />

2. select the next smallest edge, provided it does not create a cycle.<br />

3. repeat step 2 until all the vertices have been included.<br />

F<br />

D<br />

B E<br />

F<br />

D<br />

B E<br />

F<br />

A<br />

C<br />

D<br />

B E<br />

F


WORKED Example<br />

Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 181<br />

a Find the minimal spanning tree of the network shown at right.<br />

b Comment on the relationship between the number of edges <strong>and</strong><br />

the number of vertices.<br />

THINK WRITE<br />

A<br />

B<br />

8<br />

6 10<br />

C<br />

6<br />

4<br />

D<br />

3 E 5<br />

12<br />

14<br />

7<br />

F<br />

a 1 Select the edge with the smallest value a The smallest edge is CE.<br />

<strong>and</strong> highlight it.<br />

B<br />

2<br />

3<br />

4<br />

5<br />

Select the next smallest edge <strong>and</strong><br />

highlight it.<br />

Select the next smallest edge <strong>and</strong><br />

highlight it.<br />

A C D F<br />

3 E<br />

The next smallest edge is CA.<br />

A<br />

4<br />

C<br />

3 E<br />

D F<br />

The next smallest edge is ED.<br />

A<br />

4<br />

C<br />

3 E<br />

D<br />

5<br />

F<br />

Continue this process until vertices B<br />

<strong>and</strong> F are connected <strong>and</strong> highlighted.<br />

Note: BC <strong>and</strong> DF respectively are the<br />

next smallest edges.<br />

A<br />

4<br />

B<br />

6<br />

C<br />

3 E<br />

D<br />

5<br />

7<br />

F<br />

Answer the question. The minimal spanning tree is shown<br />

above. Its value is 4 + 6 + 3 + 5 + 7 = 25.<br />

b Count the number of vertices, V. b V = 6<br />

1<br />

2<br />

3<br />

12<br />

Count the number of edges, E. E = 5<br />

Answer the question. The difference between the vertices <strong>and</strong><br />

edges in a tree is 1; that is, V − E = 1.<br />

remember<br />

remember<br />

1. A tree is a connected graph without any circuits, loops or multiple edges which<br />

contains only one region.<br />

2. A spanning tree is a tree that includes all the vertices in the graph.<br />

3. A minimal spanning tree is a spanning tree with the minimum length (or cost,<br />

or time).<br />

4. To find a minimal spanning tree:<br />

(a) select the edge with the minimum value. If there is more than one such<br />

edge, choose any one of them.<br />

(b) select the next smallest edge, provided it does not create a cycle.<br />

(c) repeat step b until all the vertices have been included.<br />

5. The vertices <strong>and</strong> edges in a tree are related by the equation V − E = 1.<br />

B<br />

B


182 General Mathematics<br />

WORKED<br />

Example<br />

10<br />

WORKED<br />

Example<br />

11<br />

WORKED<br />

Example<br />

12<br />

21E<br />

Trees<br />

1 Which of the following are trees?<br />

a b c d<br />

e f g h<br />

For those <strong>networks</strong> which are not trees, give reasons why they are not.<br />

2 Change those <strong>graphs</strong> in question 1 that are not trees into trees by removing or adding<br />

edges.<br />

3 a i Draw a tree with 5 vertices. ii How many edges are there?<br />

b i Draw a tree with 11 vertices. ii How many edges are there?<br />

c Copy <strong>and</strong> complete: If a tree has V vertices, the number of edges is given by<br />

E = .<br />

4 Use the result from question 3 to find how many vertices there are in a tree with:<br />

a 8 edges b 9 edges c 16 edges d 17 edges e 20 edges<br />

5 Construct spanning trees for the following <strong>graphs</strong>:<br />

a b c d<br />

6 Find the value of the minimal spanning tree for each of the following <strong>graphs</strong>.<br />

a<br />

1<br />

2<br />

6<br />

8<br />

3<br />

5<br />

4<br />

b<br />

3<br />

6<br />

5<br />

5<br />

3<br />

2<br />

4<br />

c<br />

5<br />

2<br />

7<br />

6<br />

4<br />

8<br />

4<br />

7<br />

4<br />

d 5<br />

e 9<br />

f 6<br />

5<br />

4<br />

4<br />

3<br />

3<br />

5<br />

5<br />

5<br />

6<br />

5<br />

5<br />

4<br />

2<br />

4<br />

7<br />

6<br />

4<br />

5<br />

5<br />

5<br />

3<br />

7 4<br />

6 3<br />

6<br />

4 7<br />

5 4<br />

5 6<br />

7<br />

3<br />

4<br />

5<br />

3<br />

5<br />

7 A communication network is to be developed linking six<br />

towns. The distances (in km) between the towns are shown<br />

in the graph at right. Calculate the minimal spanning tree so<br />

that the length of cabling used to connect the towns is a<br />

minimum.<br />

58<br />

62<br />

97<br />

52<br />

47<br />

76<br />

80<br />

143<br />

84<br />

165<br />

143


8<br />

9<br />

Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 183<br />

multiple ultiple choice<br />

The following <strong>graphs</strong> which represent trees are:<br />

i ii iii iv<br />

A i <strong>and</strong> iv only B i <strong>and</strong> ii only C ii <strong>and</strong> iii only<br />

D iii <strong>and</strong> iv only E all of them<br />

multiple ultiple choice<br />

The network at right, when changed to a tree, will resemble which<br />

of the following?<br />

A C<br />

B C<br />

C<br />

A<br />

B<br />

E<br />

A<br />

B<br />

E<br />

D<br />

F<br />

D<br />

F<br />

D C<br />

E<br />

A<br />

E<br />

B<br />

D<br />

F<br />

A<br />

B<br />

C<br />

D<br />

F<br />

E<br />

A<br />

D<br />

F<br />

A<br />

F<br />

C<br />

B<br />

C<br />

D<br />

E<br />

B<br />

E


184 General Mathematics<br />

summary<br />

Vertices <strong>and</strong> edges<br />

• An undirected graph or network consists of vertices <strong>and</strong> edges.<br />

• The degree of a vertex is the number of edges leading<br />

to or from that vertex. A loop counts as 2 edges.<br />

• In a connected graph it is possible to reach each vertex<br />

from any other vertex. A connected graph must not<br />

have any isolated vertices.<br />

Planar <strong>graphs</strong><br />

• A planar graph has no crossover edges.<br />

• A planar graph divides the plane into a<br />

Multiple<br />

edges<br />

number of regions.<br />

• When counting regions, the region around A planar graph<br />

the outside of the graph is counted as 1.<br />

Not a planar graph<br />

• For any connected planar graph: V = 5<br />

Euler’s Law states that: V + R − E = 2. E = 8<br />

The sum of the degree of all the vertices = R = 5<br />

2 × number of edges. V + R − E<br />

There is always an even number of odd-degree = 5 + 5 − 8<br />

vertices.<br />

Eulerian paths <strong>and</strong> circuits<br />

• A path is a series of vertices connected by edges.<br />

= 2<br />

• A circuit (or cycle) is a path which starts <strong>and</strong> finishes at the same vertex <strong>and</strong> no edge<br />

is traversed more than once.<br />

• An Eulerian path is a path which uses each edge in a graph only once, however a<br />

vertex may be repeated.<br />

• An Eulerian circuit is an Eulerian path which starts <strong>and</strong> finishes at the same vertex.<br />

• An Eulerian path is possible if the number of odd vertices is 0 or 2.<br />

• An Eulerian circuit is possible if each of the vertices has even degrees.<br />

Hamiltonian paths <strong>and</strong> circuits<br />

• A Hamiltonian path passes through each vertex only once. It is not necessary to use<br />

all of the edges.<br />

• A Hamiltonian circuit is a Hamiltonian path that starts <strong>and</strong> finishes at the same vertex.<br />

• To find the shortest path in a network, choose the edge of least distance <strong>and</strong> move<br />

along the network until the destination is reached. This usually requires a trial <strong>and</strong><br />

error approach.<br />

Trees<br />

• A tree is a connected graph without any circuits, loops or multiple edges <strong>and</strong><br />

contains only one region.<br />

• A spanning tree is a tree that includes all the vertices in the graph.<br />

• A minimal spanning tree is a spanning tree with the minimum length (or cost, or time).<br />

• To find a minimal spanning tree:<br />

1. select the edge with the minimum value. If there is more than one such edge,<br />

choose any one of them.<br />

2. select the next smallest edge, provided it does not create a cycle.<br />

3. repeat step 2 until all the vertices have been included.<br />

• The vertices <strong>and</strong> edges in a tree are related by the equation V − E = 1.<br />

Loop<br />

Edge<br />

Vertex


CHAPTER review<br />

Multiple choice<br />

1 Which of these <strong>graphs</strong> is not a connected graph?<br />

A B C<br />

D E<br />

Questions 2 <strong>and</strong> 3 refer to the diagram at right.<br />

2 The vertices with degree 4 are:<br />

A A <strong>and</strong> B B B only C B <strong>and</strong> D<br />

D all of them E none of them<br />

Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 185<br />

3 The number of edges in total is:<br />

A 5 B 4 C 7 D 9 E 8<br />

4 For the graph at right:<br />

A V = 4, E = 6, R = 4 B V = 6, E = 4, R = 3<br />

C V = 4, E = 6, R = 3 D V = 4, E = 5, R = 4<br />

E V = 6, E = 4, R = 4<br />

5 The number of regions that a connected planar network with 12 edges <strong>and</strong><br />

8 vertices has is:<br />

A 7 B 6 C 5 D 4 E 3<br />

6 The description that does not satisfy Euler’s formula for a planar network is:<br />

A V = 6, E = 7, R = 3 B V = 9, E = 15, R = 8 C V = 12, E = 21, R = 12<br />

D V = 9, E = 12, R = 5 E V = 5, E = 11, R = 8<br />

Questions 7 <strong>and</strong> 8 refer to the following <strong>graphs</strong>.<br />

i A B<br />

ii A B<br />

iii A B<br />

C D<br />

iv v<br />

B<br />

A A B<br />

C<br />

D<br />

E F<br />

G<br />

C<br />

D E<br />

C<br />

D E<br />

B C<br />

A<br />

E C<br />

D<br />

D<br />

21A<br />

21A<br />

21A<br />

21B<br />

21B<br />

21B


21C<br />

21C<br />

21C<br />

21D<br />

21D<br />

21C,D,E<br />

21E<br />

21E<br />

186 General Mathematics<br />

7 The graph that has an Eulerian path is:<br />

A i only B ii only C iii only D iv only E v only<br />

8 The graph that has an Eulerian circuit is:<br />

A i only B ii only C iii only D iv only E v only<br />

9 If a graph has 2 vertices of odd degree <strong>and</strong> all the other vertices of even degree, then:<br />

A it is possible to draw an Eulerian path <strong>and</strong> an Eulerian circuit<br />

B it is possible to draw an Eulerian path but not an Eulerian circuit<br />

C it is possible to draw an Eulerian circuit but not an Eulerian path<br />

D it is not possible to draw either an Eulerian circuit or an Eulerian path<br />

E it is possible to draw an Eulerian circuit but it depends on the graph whether an Eulerian<br />

path can be drawn.<br />

10 A Hamiltonian circuit for the graph at right is:<br />

A 1–7–6–5–4–3–2<br />

B 6–7–5–6–1–2–3–4<br />

C 1–2–3–4–5–7–6–1<br />

D 6–7–5–4–3–2–6–1–6<br />

E 1–2–3–4–6–5–7–1<br />

11 The length of the shortest Hamiltonian circuit is:<br />

A 35<br />

B 32<br />

C 33<br />

D 17<br />

E 34<br />

12 A distributor supplies four shops from a warehouse. The distances of the shops from the<br />

warehouse range from 10 km to 20 km. The shortest delivery route from the warehouse to<br />

13<br />

all four shops <strong>and</strong> back to the warehouse could be found by using:<br />

A an Eulerian path B an Eulerian circuit C a Hamiltonian path<br />

D a Hamiltonian circuit E a minimal spanning tree.<br />

i ii iii iv<br />

The <strong>graphs</strong> that are trees are:<br />

A all of them B i only C i <strong>and</strong> ii only<br />

D i <strong>and</strong> iv only E iii only<br />

14 The minimal spanning tree of the graph at right has a length of:<br />

A 24<br />

B 26<br />

C 19<br />

D 15<br />

E 25<br />

A<br />

1<br />

7<br />

2<br />

6<br />

5<br />

3<br />

6<br />

A 8 B<br />

4<br />

E<br />

9<br />

6<br />

D<br />

5<br />

7<br />

7<br />

4<br />

C<br />

B<br />

8<br />

4<br />

6<br />

C<br />

7<br />

8<br />

11<br />

D<br />

3<br />

E<br />

14 10<br />

F<br />

5


Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 187<br />

15 When converted to a spanning tree, the network at right will resemble<br />

which of the following?<br />

A A B B<br />

E F<br />

E F<br />

C A B D A B E<br />

C<br />

C<br />

E F<br />

Short answer<br />

D<br />

D<br />

A B<br />

1 For the graph at right:<br />

a write down the number of vertices<br />

b write down the number of edges<br />

c write down the degree of each vertex<br />

d establish if the graph is connected<br />

e if it is not connected, suggest how it may become connected.<br />

2 Draw a connected graph with 10 vertices, 18 edges <strong>and</strong> 2 loops.<br />

3 Re-draw the graph at right to show clearly that it is a planar graph.<br />

4 a Using Euler’s Law, determine whether the following would produce a connected planar<br />

graph.<br />

i V = 3, R = 2, E = 3 ii V = 7, R = 4, E = 8<br />

iii V = 10, R = 12, E = 20 iv V = 6, R = 5, E = 9<br />

b Use Euler’s Law for each of the connected planar <strong>graphs</strong> below to determine the value of<br />

the unknown.<br />

i V = 10, R = 9, E = ? ii V = 8, R = 7, E = ?<br />

iii V = 4, R = ?, E = 3 iv V = ?, R = 4, E = 5<br />

5 For the graph at right:<br />

a how many vertices <strong>and</strong> edges are there in the graph?<br />

b write down the degree of each vertex<br />

c explain how your answer to b means that the graph does not<br />

have an Eulerian circuit<br />

d write down an Eulerian path for the graph.<br />

C<br />

C<br />

E F<br />

D<br />

D<br />

C<br />

C<br />

A B<br />

E F<br />

A<br />

D<br />

A B<br />

E F<br />

B<br />

E<br />

D<br />

D<br />

21A<br />

G 21A<br />

C<br />

F<br />

H<br />

I<br />

A D<br />

A<br />

B<br />

E<br />

D<br />

C<br />

F<br />

B C<br />

E<br />

F<br />

21A<br />

21B<br />

21B<br />

21C


21C<br />

21D<br />

21D<br />

21E<br />

21E<br />

188 General Mathematics<br />

6 Trish delivers the local paper after school each Tuesday afternoon.<br />

On most days she collects the papers from the printers <strong>and</strong><br />

M A<br />

H<br />

D<br />

I L<br />

distributes them along the route illustrated at right.<br />

a i If Trish is able to start from any point, is she able to deliver<br />

the papers going down each of the streets only once?<br />

ii If she is, write down one possible route she may take.<br />

B<br />

C<br />

E<br />

F<br />

J<br />

K<br />

b<br />

iii Is this the only possible route? If not, write down an alternative route.<br />

i If the papers are dropped off at Trish’s house, (vertex L), is she able to complete her<br />

round <strong>and</strong> return home going down each of the streets only once?<br />

ii If so, which type of circuit has been completed?<br />

iii Write down two possible circuits that Trish could have completed.<br />

7 a Write down two Hamiltonian circuits starting at vertex 1 for the<br />

network at right.<br />

b Calculate the least value of the Hamiltonian circuit for the graph.<br />

c Give one real-life situation for which the least value Hamiltonian<br />

circuit found above would be appropriate.<br />

d Is a Hamiltonian circuit possible for the graph in question 5?<br />

8 The distance, in km, between five towns is shown in the table below.<br />

B C D E<br />

A 400 462 489 310<br />

B 290 495 420<br />

C 320 470<br />

D 300<br />

Note: The shaded region indicates that there is no road connecting the two towns.<br />

a Transfer the information from the above table onto a copy of the<br />

graph at right.<br />

A<br />

b A tour is planned to start <strong>and</strong> finish at A <strong>and</strong> visit all of the towns.<br />

Find the shortest distance for the tour.<br />

E<br />

B<br />

c<br />

d<br />

If the tour were to start <strong>and</strong> finish at C, would the shortest distance<br />

be the same?<br />

A new tour, starting <strong>and</strong> finishing at A, is planned to visit all the<br />

D<br />

C<br />

towns <strong>and</strong> a further town, F. The distances from B to F, C to F <strong>and</strong> E to F are 480, 429<br />

<strong>and</strong> 339 km respectively. Find the shortest distance tour now possible.<br />

9 a Find a spanning tree for the graph at right.<br />

b How many edges are there in a tree with:<br />

i 6 vertices?<br />

ii 11 vertices?<br />

iii 14 vertices?<br />

c Draw an example of each of the trees in part b.<br />

10 Find the shortest distance from S to F in the following network.<br />

8<br />

1<br />

2<br />

6<br />

10<br />

9<br />

B<br />

5<br />

15<br />

3<br />

14<br />

7<br />

13<br />

8<br />

4<br />

6<br />

10<br />

A D<br />

E<br />

C<br />

10<br />

A<br />

S<br />

6<br />

12<br />

14<br />

16<br />

12<br />

B<br />

8<br />

14<br />

D<br />

E<br />

18<br />

12<br />

23<br />

F<br />

G 15<br />

C 16<br />

F


Chapter 21 <strong>Undirected</strong> <strong>graphs</strong> <strong>and</strong> <strong>networks</strong> 189<br />

Analysis<br />

The map shows six towns, labelled A to F, on an isl<strong>and</strong>. The lines<br />

F<br />

represent roads linking the towns, with distances given in<br />

kilometres. The map may be treated as a planar network with the<br />

towns as vertices <strong>and</strong> the roads as edges.<br />

a What is a planar network?<br />

A<br />

12<br />

18<br />

22<br />

21<br />

14<br />

E<br />

21<br />

D<br />

b<br />

c<br />

Explain what the statement ‘the degree of F = 3’ means.<br />

Write down the degree of each vertex.<br />

B<br />

20 C<br />

19<br />

d Calculate S, the sum of the degrees of all the vertices.<br />

e How many edges are there?<br />

f Write down a formula linking S <strong>and</strong> E for this network (E = number of edges).<br />

All the roads on the isl<strong>and</strong> are to be re-surfaced, with the work starting at F.<br />

g Give a route to be used by the workers so that each road is re-surfaced <strong>and</strong> no road is<br />

travelled twice.<br />

h Is the route above an example of:<br />

i an Eulerian circuit?<br />

ii an Eulerian path?<br />

iii a Hamiltonian circuit?<br />

iv a Hamiltonian path?<br />

i Calculate the shortest distance from A to D.<br />

A communication network is to be established on the isl<strong>and</strong>.<br />

j Explain why a minimal spanning tree for the network would be used in planning the<br />

communication network.<br />

k Calculate the minimal spanning tree for the network.<br />

A supermarket chain has stores at each of the towns. Each store is to be visited by the regional<br />

manager, starting <strong>and</strong> finishing at the main office in B.<br />

l Outline the shortest route (that is, the least distance to travel).<br />

m Is the route above an example of:<br />

i an Eulerian circuit?<br />

ii an Eulerian path?<br />

iii a Hamiltonian circuit?<br />

iv a Hamiltonian path?<br />

test<br />

test<br />

yourself<br />

ourself<br />

CHAPTER<br />

21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!