Question: Which of the following algorithms uses dynamic programming to find the optimal solution?
Options:
Correct Answer: Floyd-Warshall algorithm
Solution:
The Floyd-Warshall algorithm uses dynamic programming to find the shortest paths between all pairs of vertices in a weighted graph.