Consider a relation R=\ (1,1),(1, ), (0,2), (2,3) (3,1)) on the set A=\ 1,2,3\ Find transitive closure of the relation R using algorithm Warshall's
The Answer to the Question
is below this banner.
Can't find a solution anywhere?
NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?
Get the Answers Now!You will get a detailed answer to your question or assignment in the shortest time possible.
Here's the Solution to this Question
Let us state the steps of the Warshall's algorithm:
Step 1. Let
Step 2. Put
Step 3. For all such that and for all let
Step 4. If then STOP: else go to Step 2.
Consider a relation on the set .
Let us find transitive closure of the relation using Warshall's algorithm:
It follows that is a universal relation on the set