Which of the following algorithm solves the all-pair shortest path problem?
1
Prim’s algorithm
2
Dijikstra’s algorithm
3
Bellman-Ford’s algorithm
4
Floyd-Warshall’s algorithm
Which of the following algorithm solves the all-pair shortest path problem?