Which algorithm is used to find the shortest path between two vertices in a graph?
18 views
- Depth First Traversal
- Breadth First Traversal
- Prim`s Algorithm
- Dijkstra`s Algorithm (Correct Answer)
Explanation
Answer: d) Dijkstra`s Algorithm
Explanation: Dijkstra`s Algorithm is used to find the shortest path between two vertices in a weighted graph. It works by starting with a single vertex