Seminar Topics & Project Ideas On Computer Science Electronics Electrical Mechanical Engineering Civil MBA Medicine Nursing Science Physics Mathematics Chemistry ppt pdf doc presentation downloads and Abstract

Full Version: Shortest Path Problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[attachment=71764]



Directed weighted graph.
• Path length is sum of weights of edges on path.
• The vertex at which the path begins is the
source vertex.
• The vertex at which the path ends is the
destination vertex.



Single Source Single Destination
Possible greedy algorithm:
ƒ Leave source vertex using cheapest/shortest edge.
ƒ Leave new vertex using cheapest edge subject to the
constraint that a new vertex is reached.
ƒ Continue until destination is reached.