Question 3
Consider a directed graph G with equal edge weights. Which of the following algorithms is most efficient to compute the shortest distance between every pair of nodes in G?
Run BFS once on every node
Run Dijkstra’s algorithm once on every node
Run Bellman Ford’s algorithm once on every node
Run Floyd-Warshall algorithm