The Floyd-Warshall algorithm computes the shortest paths between _______ pairs of vertices in a weighted graph.

  • Adjacent, Important
  • All possible, All possible
  • Connected, Selected
  • Specific, Critical
The Floyd-Warshall algorithm computes the shortest paths between all possible pairs of vertices in a weighted graph. It uses dynamic programming to find the shortest paths and is suitable for graphs with both positive and negative edge weights.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *