Skip to content
Related Articles

Related Articles

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

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :