Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

ISRO | ISRO CS 2017 – May | Question 78

  • Last Updated : 21 Mar, 2018

The time complexity of computing the transitive closure of a binary relation on a set of n elements is known to be
(A) O(nlogn)
(B) O(n3/2)
(C) O(n3)
(D) O(n)


Answer: (C)

Explanation: Transitive closure generally uses Floyd-Warshall Algorithm which gives a time complexity of O(n3)
Refer: Transitive closure of a graph

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :