WELCOME TO MY
PRESENTATION
SHORTEST
PATH
Md. Harun Or Rashid
ID: 193-15-2966
Section: PC A
Shortest path algorithm
• An algorithm that is designed essentially to
find of minimum length between two
specified vertices of a connected weighted
graph.
Dijkstra’s algorithm
• Dijkstra's algorithm is a greedy algorithm for
solving single source shortest path problem that
provide us with the shortest path from one
particular source node to all other nodes in the
given graph.
Rules of Dijkstra's algorithm
• It can be applied on both directed an undirected
graph.
• It is applied on weighted graph.
• For the algorithm to be applicable the graph must be
connected.
• Delete all parallel edges with higher cost.
Dijkstra’s algorithm example:
Dijkstra’s algorithm example:
Dijkstra’s algorithm example:
Dijkstra’s algorithm example
Result:
Nodes visited order: a->f->b->c->e->d
Solution path: a->f->b->c->e->d
Solution cost:13
Shortest Path.pptx

Shortest Path.pptx