Question: Which algorithm is an example of dynamic programming used for optimization?
Options:
Correct Answer: Floyd-Warshall algorithm
Solution:
The Floyd-Warshall algorithm is an example of dynamic programming used for finding the shortest paths in a weighted graph.