Question: Suppose that we wish to maintain the transitive closure of a directed graph G = (V, E) as we insert edges into E. That is,
a. Show how the transitive closure G* = (V, E*) of a graph G = (V, E) can be updated in O (V2) time when a new edge is added to G.
Step by Step Solution
3.42 Rating (165 Votes )
There are 3 Steps involved in it
a Let T be the V V matrix representing the transitive closure such that Ti j is 1 if there is a path from i to j and 0 if not Initialize I when there ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
C-S-A (151).docx
120 KBs Word File
