Let A={1,2,3,4,5} and R be the relation on A such that R={(1,1),(1,4),(2,2),(3,4),(3,5),(4,1),(5,2),(5,5)}. Find the transitive …
Archangel Macsika
Let A={1,2,3,4,5} and R be the relation on A such that R={(1,1),(1,4),(2,2),(3,4),(3,5),(4,1),(5,2),(5,5)}. Find the transitive closure of R by Warshall's Algorithm
Let A={1,2,3,4,5} and R be the relation on A such that R={(1,1),(1,4),(2,2),(3,4),(3,5),(4,1),(5,2),(5,5)}. Let us find the transitive closure of R by Warshall's Algorithm:
W(0)=MR=⎝⎛1001001001000001010000101⎠⎞
W(1)=⎝⎛1001001001000001011000101⎠⎞
W(2)=⎝⎛1001001001000001011000101⎠⎞
W(3)=⎝⎛1001001001000001011000101⎠⎞
W(4)=⎝⎛1011001001000001011000101⎠⎞
MR∗=W(5)=⎝⎛1011001101000001011000101⎠⎞
It follows that the transitive closure R∗ of R is the following: