Dijkstra Algorithm (AAD)
Dijkstra Algorithm (AAD)
Shortest Path
Algorithm
Presented by:
Sushma Karki
Introduction
Applications:
● Network routing
● GPS Navigation
● Telecommunications
Key concepts:
Graph: A collection of vertices (nodes) connected by edges
(links).
Shortest Path: The path with the minimum total weight from the
source to the destination.
Algorithm:
Initialization: Start from the source node. Set its
distance to 0, and all other nodes to infinity.
Where:
● V = Number of vertices (nodes)
● E = Number of edges
● Advantages:
○ Efficient for graphs with non-negative weights.
○ Finds the shortest path from one source to all
other nodes.
● Limitations:
○ Doesn’t work with negative edge weights.
○ Can be slower for very large graphs.
Thank you!!
Have a nice day:)