1.

The time taken to compute the transitive closure of a graph is Theta(n^2).(a) True(b) FalseI have been asked this question in final exam.Asked question is from Shortest Path topic in section Shortest Path of Data Structures & Algorithms II

Answer»

Right choice is (B) False

Explanation: The time taken to compute the transitive CLOSURE of a GRAPH is THETA(n^3). Transitive closure can be computed by assigning weight of 1 to each edge and by running Floyd Warshall Algorithm.



Discussion

No Comment Found

Related InterviewSolutions