Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is the time complexity of Warshall's Algorithm?
Consider the number of nodes involved and the operations performed.
Define what an intermediate node is.
Think about the structure of the paths in a directed graph.
What is the output of Warshall's Algorithm?
Consider what the transitive closure represents.
In Warshall's Algorithm, how do we handle a path when the entry is 0 in the previous matrix?
Focus on the update rules for transitioning between matrices.
Given a directed graph with edges A-B, B-C, and C-D, write the matrices for W(0), W(1), and W(2).
Start with the original edges and follow the definitions for intermediate paths.
Construct the W(k) matrices from a given relationship and illustrate any new paths formed due to an intermediate node.
Consider the role of each node added as an intermediate in the paths.
5 more questions in this section. Enroll free to practise them all.
Enroll free