Professional Documents
Culture Documents
Application of Graph Theory To Tours
Application of Graph Theory To Tours
JUNE, 2017.
Abstract
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: /TO
Dr.2 S. O.
29M
Limitations and Scope of study
Scope:
This work is limited in scope to:
concepts that are basic to graph theory;
types of graphs; and
applications (i.e. The Chinese Postman and Route Inspector
problems).
Limitation: This project work is limited to some theoretical
applications of graph theory as it is very wide, some practical findings
are excluded.
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: /TO
Dr.3 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
Definition Of Graph
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: /TO
Dr.4 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: /TO
Dr.5 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
Similarly, we often label the edges with letters (for example: a, b, c, ...
or e1 , e2 , ... ) or numbers 1, 2, ... for simplicity. So E = {e1 , ..., e5 }. For
an edge {x, y}, graph theorists usually use the somewhat shorter
notation xy.
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: /TO
Dr.6 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
Types of Graph
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: /TO
Dr.7 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: /TO
Dr.8 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: /TO
Dr.9 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
10 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
11 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
• Walk:
A walk of length k in the graph G = (V , E) is an alternating sequence
of vertices V and edges E of G of the form
w = (v0 , e1 , v1 , e2 , . . . , ek , vk )
which begins and ends with vertices. Vertices vt−1 and vt are end
vertices of et (where t = 1, ..., k). The initial vertex is v0 and vk is the
terminal vertex. The number of edges k is the length of the walk. A
zero length walk is just a single vertex v0 . It is allowed to visit a vertex
or go through an edge more than once. A walk is open if v0 6= vk ,
otherwise it is closed.
Example 1: In the graph
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
12 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
13 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
• Trail:
A walk is a trail if any edge is traversed at most once. Let G = (V , E)
be a graph, a trail in G is a walk in which all the edges e1 , e2 , . . . , ek
are distinct.
Example 2:
The walk (v1 , e8 , v5 , e9 , v1 , e1 , v2 , e7 , v5 , e6 , v4 , e5 , v4 , e4 , v4 ) in the
graph in example 1 is a trail.
• Path: A path is a trail in which all the vertices (except possibly the
first and last) are distinct. It is of the form:
v0 , e0 , v1 , e1 , v2 , . . . , vk−1 , ek−1 , vk ,
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
14 S. O.
29M
BASIC CONCEPTS OF GRAPH THEORY
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
15 S. O.
29M
EULARIAN GRAPH
Eularian Graph
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
16 S. O.
29M
APPLICATIONS
tep 3 For each pairing, find the edges that connect the vertices with
minimum weights.
tep 4 Find the pairings such that the sum of the weight is minimised.
tep 5 Add the edges that have been found in Step 4 to the original graph.
tep 6 The length of an optimal Chinese postman route is the sum of all
the edges added to the total length found in Step 4.
tep 7 A route corresponding to this minimum weight can then be easily
found.
Example
A postman has to start at a post office A, walk along 13 streets, deliver
mails and return to A. The numbers on each edges represent the length
(in metres), of each street. Find a trail that passes through all the
edges of the graph with minimum length.
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
18 S. O.
29M
APPLICATIONS
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
19 S. O.
29M
APPLICATIONS
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
20 S. O.
29M
APPLICATIONS
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
21 S. O.
29M
APPLICATIONS
tep 6 The optimal length of the postman’s route is the sum of all the
edges in the original graph, which is 840m added to the minimum
length found in Step 4 which was 160m. Hence, the optimal length
of the postman’s route is 1000m.
tep 7 Many possible routes corresponding to this minimum length can be
found, one of them is ADCGHCABDFBEFHFBA.
With these, we have been able to show that
ADCGHCABDFBEFHFBA is an optimal tour that the postman leaves
the post office, passes through all the 13 streets, delivers all His mails
and returns to the post office with an optimum length of 1000m.
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
22 S. O.
29M
APPLICATIONS
Example
A route inspector of a popular bus company was interested in
inspecting all the routes of their buses in order to save the cost of fuel.
The inspector modelled the bus stop as the vertex and the roads were
modelled as the edges in the bus route, and after applying the earlier
stated algorithm, he was able to find an optimal route that met his
target for the buses to consume minimal fuel after passing through
every road at least once. See a representation of the road network
below.
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
23 S. O.
29M
APPLICATIONS
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
24 S. O.
29M
APPLICATIONS
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
25 S. O.
29M
APPLICATIONS
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
26 S. O.
29M
APPLICATIONS
tep 6 The optimal length of the buses route to meet the target of
consuming minimal fuel across every road, at least once is the sum
of all the edges in the original graph, which is 31m added to the
minimum length found in Step 4 which was 6m. Hence, the
optimal length of the buses route is 37m.
tep 7 Many possible routes corresponding to this minimum length can be
found, one of them is xuywvzwyxuwvxzyx.
Hence, we have been able to find an optimal route xuywvzwyxuwvxzyx
with an optimal length of 37m that could help the bus company to
increase the quality of their services whilst saving the cost of fuel.
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
27 S. O.
29M
CONCLUSION
Conclusion
This study titled “Application of Graph Theory to Tours" has been able
to show how graph theory can be used to optimize problems that can
be modelled as road networks, and shows how simple such problems
can be solved to reduce the length of tours to the optimal minimum.
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
28 S. O.
29M
REFERENCES
References
BELLO, ABDUL-WALIYYU
APPLICATION
ONAOLAPO13/56EB058
OF GRAPH
JUNE,
THEORY
2017. TO
(SUPERVISOR: Dr. /TO
29 S. O.
29M