Tutorial 5
Location-based Services
GE2338 Internet Applications and Security
Q1: Dijkstra’s Shortest Path Algorithm
➢ Given a graph of 8 vertices (i.e., a, b, …, h), each edge with its distance
between its connected vertices. Vertex a is the source. Find out all
shortest paths from vertex a to other vertices.
4 2
b d f
6 9
a 7 4 3 h
2 6
c e g
6 3