Which of the following algorithms is used to find the shortest path in a weighted graph?
Depth-first search
Prim's algorithm
Dijkstra's algorithm
Breadth-first search

Data Structures and Algorithms Exercises are loading ...