Consider a relation R= {(1, 1) (1, 3), (2, 2), (2,3) (3,123 on the set A = {1,2,37 Find transitive using warshalls algorithm... closure of the relation R consider
1
Expert's answer
2021-12-21T12:38:05-0500
the transitive closure of a binary relation R on a set X is the smallest relation on X that contains R and is transitive
steps of Warshall’s Algorithm:
Step 1: Execute W:=MR,k:=0
Step 2: Execute k:=k+1
Step 3: For all i=k such that wik=1, and for all j execute the operation wij:=wij∨wkj
Step 4: If k=n, then stop: the solution is W=MR∗, else go to step 2.
Comments
Leave a comment