Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is Warshall's Algorithm used for?
Think about connectivity between vertices.
What is the typical initial state of an adjacency matrix?
Consider how edges are represented.
What does Warshall's Algorithm compute?
Think about how reachability is defined.
True or False: Floyd-Warshall's algorithm can handle graphs with negative cycles.
Consider the implications of a negative cycle.
Given a directed graph with weights, apply the Floyd-Warshall algorithm to find all pairs shortest paths. Write down each step leading to the final matrix.
Keep track of how weights update as you consider intermediate vertices.
Construct an example with a negative cycle and demonstrate what happens when using Floyd-Warshall.
Think about what happens if a path gets shorter with each iteration through the cycle.
6 more questions in this section. Enroll free to practise them all.
Enroll free