Question 21
In the Floyd–Warshall algorithm, which of the following are true?
It uses dynamic programming.
It can detect negative cycles.
It maintains a predecessor matrix for path reconstruction (when implemented with one).
It cannot be applied to undirected graphs.