3 votes 3 votes The time complexity of computing the transitive closure of a binary relation on a set of n elements is know to be a - 1) O(n) 2) O(nlogn) 3) O(n3/2) 4) O(n3) Algorithms time-complexity + – piyushkr asked Dec 31, 2015 piyushkr 1.3k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes Ans : O(n3) Transitive closure of relation can be represented using directed graph. And in that graph ,using Floyd-Warshall algorithm,one can find out transitivity in time complexity of O(n3) Shashank Kumar answered Dec 31, 2015 Shashank Kumar comment Share Follow See 1 comment See all 1 1 comment reply Dwarakesh pallagolla commented Aug 20, 2016 reply Follow Share Or you can consider transitive closure to be a form of matrix multiplication, whose order is also O(n^3) 0 votes 0 votes Please log in or register to add a comment.