Let R={(1,2),(2,1),(2,3),(3,4),(4,1) } be a relation on the A={1,2,3,4}. Find the transitive closure of R using Warshall’s algorithm.
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
Consider a relation on the set .
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.
Let us find transitive closure of the relation using Warshall's algorithm:
It follows that is a universal relation on the set