GRAPH THEORY Presentation July192k16
GRAPH THEORY Presentation July192k16
TRAVERSING THE
SHORTEST PATH
PROBLEM
h
KIA PF
GPBP
SMB
adjacent from 𝑣.
of vertices that are
In-degree of a Vertex
The indegree of 𝑣
denoted by 𝑖𝑑(𝑣) is
the number of
adjacent to 𝑣.
vertices that are
Walk…Trail…Path…Cycle
A walk between vertices u and z of
2. (e,c,a,b)
3. (c,a,b,c,d)
4. (c,a,b,c)
Euler Trails
• A trail which includes each edge of G is
called an Euler trail of G.
Theorem (Euler, 1736).
A connected graph G with edges is eulerian if
and only if G does not have a vertex of odd
degree.
Corollary. A connected graph G with edges
contains an Euler trail if and only if G has
Hamilton Circuit and Hamilton Path
• A Hamilton circuit in a graph is a simple circuit containing every vertex
of the graph.
• An Halmilton path is a simple path containing every vertex of the
graph.
A B
A B
C
E
G1 : D E
G2 :
D C
Subgraph and Spanning Subgraph
Let G and H be graphs.
3 8
4
1
s 6 7 c
4 4
e f
5
Find the shortest distance from the leftmost vertext to the
rightmost vertex in the network below.
w 5 x
5 4
3 1
v z y
9 6
Try this one!!
Which vertex A, H, and G is nearest to vertex
D??
Steps in Dijkstra’s Algorithm
1.Initialization
2.Distance value update
3.Current vertex update
4.Termination criterion
Some real life applications of Shortest Path Algorithm
Study Author
Use of Shortest Path Renalyn C. Edlagan (2012)
Algorithm in the Laguna
Fourth District Tourist
Destinations
Escaping The Danger Zone: Arjay Altovar (2016)
Proposed Earthquake
Evacuation Route For
Selected Southern Luzon
State University Buildings
"Education's purpose is to replace an empty
mind with an open one."
-Malcolm Forbes