Unit-III Part-I (Relations)
Unit-III Part-I (Relations)
|𝐴 × 𝐵| = No. of elements of 𝐴 × 𝐵 = 𝑚𝑛
Subsets.
Binary Relation
Let 𝑨 and B be two non- empty sets. If 𝑹 ⊆ 𝑨 × 𝑩 , then 𝑹 is said to be a binary
relation from 𝑨 to 𝑩.
𝑨×𝑩
R
𝑹 ⊆ 𝑨×𝑩
Domain of R : The set {𝑎 ∈ 𝐴: (𝑎, 𝑏)𝜖 𝑅 𝑓𝑜𝑟 𝑠𝑜𝑚𝑒 𝑏𝜖𝐵 } is called the domain of R
and is denoted by 𝐷𝑅 or dom(R )
(OR)
The set of all first elements of the ordered pairs in a relation R from a set A to a set
B is called domain of R.
Range of R : The set {𝑏 ∈ 𝐴: (𝑎, 𝑏)𝜖 𝑅 𝑓𝑜𝑟 𝑠𝑜𝑚𝑒 𝑎 𝜖 𝐴 } is called the range of R
The set of all second elements in a relation R from a set A to a set B is called range
of R.
MVS Page 2
If R is a relation from a set A to itself, we say that is a relation on A .
i.e 𝑹 ⊆ 𝑨 × 𝑨
(OR)
In other words, a binary relation from A to B is a set R of ordered pairs where the first
element of each ordered pair comes from A and the second element comes from B. We
use the notation 𝑎 𝑅 𝑏 to denote that (𝑎, 𝑏) ∈ 𝑅 and 𝑎 𝑅 𝑏 to denote that (𝑎, 𝑏) ∉ 𝑅.
Moreover, when (𝑎, 𝑏) ∈ 𝑅, 𝑎 is said to be related to 𝑏 by 𝑅. Binary relations represent
relationships between the elements of two sets.
Example-1
Example-2
Let A = {a, b, c} B = {r, s, t}
Then R = {(a, r), (b, r), (b, t), (c, s)} is a relation from A to B.
MVS Page 3
ii) Let A = {1, 2, 3} and B = A
R = {(1, 1), (2, 2), (3, 3)}
is a relation (equal) on A.
Example-3
Answer : Here, R = {(5, 7), (6, 8), (7, 9), (8, 10), (9, 11)}.
Domain of R = {5, 6, 7, 8, 9}
MVS Page 4
Example-4
Let 𝐴 ={3,6,9 } , 𝐵 = {4,8,12 }
Example-5
Then R = {(chicken, fish), (chicken, rice), (dog, fish), (dog, rice), (cat, fish), (cat,
rice)}. Its adjacency matrix is
Example-1
Define a relation R from A = {chicken, dog, cat} to B = {fish, rice, cotton} by
Then R = {(chicken, fish), (chicken, rice), (dog, fish), (dog, rice), (cat, fish), (cat, rice)}. Its
adjacency matrix is
MVS Page 5
Example -2
(OR)
0 1 1
𝑀𝑅 = [0 0 1]
0 0 0
MVS Page 6
Example-2
Solution:
If A and B are finite sets and R is a relation from A to B. Relation R can be represented as
an arrow diagram as follows.
Draw two ellipses for the sets A and B. Write down the elements of A and elements of B
column-wise in these ellipses. If (𝑎, 𝑏) ∈ 𝑅 where 𝑎 ∈ A and 𝑏 ∈ B, then we draw an
arrow from an element 𝑎 in A to an element 𝑏 in B .
Example
Answer : Here, R = {(5, 7), (6, 8), (7, 9), (8, 10), (9, 11)}.
MVS Page 7
Relation as a Directed Graph:
There is another way of picturing a relation R when R is a relation from a finite set
to itself. Let R be a relation on the set A
We denote every element of 𝐴 by a point, called a vertex or node, and each ordered pair
(𝒂, 𝒃) in R by a directed arc or a directed line segment, called an edge , from 𝒂 to b. The
resulting diagram is a directed graph or simply a digraph. If an edge (𝒂, 𝒃) exists,we say
that vertex 𝒃 is adjacent to vertex 𝒂.
An edge of the form (𝒂, 𝒂) is represented using an arc from the vertex 𝒂 back to
itself. Such an edge is called a loop.
Example-1
R = {(1, 1),(1, 3),(2, 1),(2, 3),(2, 4),(3, 1),(3, 2),(4, 1)} on the set {1, 2, 3, 4}
MVS Page 8
Example-2
What are the ordered pairs in the relation R represented by the directed graph
shown in Figure
Solution:
Ans: R = {(1, 3),(1, 4),(2, 1),(2, 2),(2, 3),(3, 1),(3, 3),(4, 1),(4, 3)}.
Example-3
Let A = {1, 2, 3, 4}
R = {(1, 2) (2, 2) (2, 4) (3, 2) (3, 4) (4, 1) (4, 3)} is a relation on A
Example-4
Solution: Given
R ={ (2,2),2,4),2,6),(3,3),(4,4),(6,6)}
MVS Page 9
Example-5:
Consider the relation R whose digraph is given below.
R={(1,2),(2,1),(1,3),(3,1),(2,3),(3,3)}
MVS Page 10
Properties of Relations
Relations can have several properties which help to classify them.
1.
A relation R on a set A is said to be reflexive if
Example-2
If A = {1, 2, 3, 4} then R = {(1, 1) (2, 2), (1, 3), (2, 4), (3, 3), (3, 4), (4, 4)}.
Is R a relation reflexive?
Solution: The relation is reflexive as for every a ∈ A. (a, a) ∈ R, i.e. (1, 1), (2, 2),
(3, 3), (4, 4) ∈ R.
H.W
MVS Page 11
A relation R on set A is said to be irreflexive if (a, a) ∉ R for every a ∈ A.
Example-1
Let A = {1, 2, 3} and R = {(1, 2), (2,3 ), (3, 1), (1, 3)}
Example-2
Let A = {1, 2, 3} and R = {(1, 2), (2, 2), (3, 1), (1, 3)}. Is the relation R reflexive or irreflexive?
R is Symmetric: If any one element is related to any other element, then the second
is related to the first
Example-1
Let A = {1, 2, 3} and R = {(1, 1), (2, 2), (1, 2), (2, 1), (2, 3), (3, 2)}. Is a relation R symmetric or not?
i.e., (1, 2), (2, 1), (2, 3), (3, 2) ∈ R but not reflexive because (3, 3) ∉ R.
Example-2
Let A = {1, 2, 3} and R = {(1, 1), (2, 2), (1, 2), (2, 1), (2, 3)}
MVS Page 12
Example-3
Let A= set of all male persons and define R={ (a,b)/ a is a brother of b}
Example-4
then a = b. (OR)
Example1: Let A = {1, 2, 3} and R = {(1, 1), (2, 2)}. Is the relation R antisymmetric?
Solution: The relation R is antisymmetric as a = b when (a, b) and (b, a) both belong to R.
Example2: Let A = {4, 5, 6} and R = {(4, 4), (4, 5), (5, 4), (5, 6), (4, 6)}. Is the relation R
antisymmetric?
MVS Page 13
:
Example: Let A = {4, 5, 6} and R = { (4, 5), (5, 6), (4, 6)}.
R is Transitive: If any one element is related to a second and that second element is
related to a third, then the first element is related to the third.
R is not transitive: If there are elements 𝑥, 𝑦 and 𝑧 in 𝐴 such that (𝑥, 𝑦) ∈ 𝑅 and
(𝑦, 𝑧) ∈ 𝑅 but (𝑦, 𝑧) ∉ 𝑅
MVS Page 14
Example-1
Example 2: Let A = {1, 2, 3} and R = {(1, 2), (2, 1), (1, 1), (2, 2)}. Is the relation transitive?
Solution: The relation R is transitive as for every (a, b) (b, c) belong to R, we have (a, c) ∈ R i.e, (1,
2) (2, 1) ∈ R ⇒ (1, 1) ∈ R.
Example:
𝑅5 = {(1, 1),(1, 2),(1, 3),(1, 4),(2, 2),(2, 3),(2, 4),(3, 3),(3, 4),(4, 4)},
MVS Page 15
𝑅6 = {(3, 4)}.
MVS Page 16
Let R be a relation on the set A .
1.Reflexive : (𝒂, 𝒂) ∈ 𝑹, ∀ 𝒂 ∈ 𝑨
2.Symmetric: If (𝒂, 𝒃) ∈ 𝑹 and (𝒃, 𝒂) ∈ 𝑹 ∀ 𝒂 , 𝒃 ∈ 𝑨
3.Transitive: If (𝒂, 𝒃) ∈ 𝑹 and (𝒃, 𝒄) ∈ 𝑹 then (𝒂, 𝒄) ∈ 𝑹, ∀ 𝒂 , 𝒃, 𝒄 ∈ 𝑨
4.Antisymmetric : If (𝒂, 𝒃) ∈ 𝑹 and (𝒃, 𝒂) ∈ 𝑹 then 𝒂 = 𝒃 ∀ 𝒂 , 𝒃 ∈ 𝑨
5.Irreflexive: (𝒂, 𝒂) ∉ 𝑹, ∀𝒂 ∈ 𝑨
6.Asymmetric: If (𝒂, 𝒃) ∈ 𝑹 then (𝒃, 𝒂) ∉ 𝑹, ∀ 𝒂 , 𝒃 ∈ 𝑨
Give an example of a nonempty set and a relation on the set that satisfies each of the
following combinations of properties; draw a digraph of the relation.
MVS Page 17
Ans:
EQUIVALENCE RELATION
A relation R on a set A is called an equivalence relation if it satisfies following three properties:
MVS Page 18
Example-1 Let A = {1, 2, 3, 4} and R = {(1, 1), (1, 3), (2, 2), (2, 4), (3, 1), (3, 3), (4, 2), (4, 4)}.
Solution:
Reflexive: Relation R is reflexive as (1, 1), (2, 2), (3, 3) and (4, 4) ∈ R.
Transitive: Relation R is transitive because whenever (a, b) and (b, c) belongs to R, (a, c) also
belongs to R.
Example-2
Example: A = {1, 2, 3}
R1 = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1)}
R2 = {(1, 1), (2, 2), (3, 3), (2, 3), (3, 2)}
R1∩ R2 = {(1, 1), (2, 2), (3, 3)}
MVS Page 19
Example-3:
Then 𝑅 is equivalence on 𝐴
Solution:
∴ R is reflexive
⇒ 𝑏 − 𝑎 is also divisible by 3
⇒ 𝑎 − 𝑐 = (𝑎 − 𝑏) + (𝑏 − 𝑐 ) = 3𝑘 + 3𝑙 = 3(𝑘 + 𝑙) = 3𝑚 where, 𝑘 + 𝑙 = 𝑚
⇒ 𝑎 − 𝑐 is divisible by 3
∴𝑅 is transitive
Example-4
Let Z denote the set of integers and the relation R in Z be defined by 𝑎𝑅𝑏 iff
Solution:
MVS Page 20
⇒ 𝑏 − 𝑎 is an even integer
𝑎 − 𝑐 = (𝑎 − 𝑏) + (𝑏 − 𝑐)
∴ (𝑎 − 𝑐) is an even integer.
∴R is transitive
Example-5
Show that the ”divides” relation is the set of positive integers in not an equivalence
relation.
Solution: We show that the ”divides” relation is reflexive and transitive and is not
symmetric. We conclude that the ”divides” relation on the set of positive integers is not an
equivalence relation.
𝑎
(i)Reflexive: i.e 𝑎 divides 𝑎 ,
𝑎
𝑎 𝑅𝑎 ∀𝑎 ∈ 𝑁 ∴ R is reflexive
⇒ a divides c
MVS Page 21
∴𝑅 is transitive
Example-6
defined as (𝑥, 𝑦)𝑅 (𝑢, 𝑣 ) if and only if 𝑥𝑣 = 𝑦𝑢. Then show that 𝑅 is an equivalence
relation on 𝑃.
Solution.
MVS Page 22
𝑥𝑣
We have ( ) 𝑛 = 𝑣𝑚
𝑦
⇒ 𝑥𝑛 = 𝑦𝑚
∴ 〈𝑢, 𝑣〉𝑅〈𝑚, 𝑛〉
Example-7
a) 𝑅 ∩ 𝑆 also equivalent
b) 𝑅 ∪ 𝑆 need not be an equivalence relation.
Solution:
MVS Page 23
⇒ 〈𝑥, 𝑧〉 ∈ 𝑅 ∵R is transitive
⇒ 〈𝑥, 𝑧〉 ∈ 𝑆 ∵S is transitive
∴ 〈𝑥, 𝑧〉 ∈ 𝑅 ∩ 𝑆
Thus, 𝑅 ∩ 𝑆 is transitive .
𝑅 ∩ 𝑆 is an equivalence relation.
Example: A = {1, 2, 3}
R1 = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1)}
R2 = {(1, 1), (2, 2), (3, 3), (2, 3), (3, 2)}
R1∪ R2 = {(1, 1), (2, 2), (3, 3) (1,2),(2,1),(2,3),(3,2)}
Congruence Modulo n
This is written as
𝑎 ≡ 𝑏 (𝑚𝑜𝑑 𝑛)
For example,
3 = 7 (𝑚𝑜𝑑4) etc
MVS Page 24
where k ,ℓ are some integers.
i.e (𝑎 − 𝑐) is divisible by 𝑛.
It follows from here that 𝑎 ≡ 𝑏 (mod 𝑛). This proves the transitivity of R
MVS Page 25
Equivalence Class
Let R be an equivalence relation on a set A and let a ∈ A. The equivalence class of a,
denoted by [𝑎] or [𝑎] 𝑅 is defined as [𝒂] = {𝒙 ∈ 𝑨 |𝒙 𝑹 𝒂}. It consists of all elements in A
that are linked to 𝑎 by the relation R. If 𝑥 ∈ [𝑎], then 𝑥 is a representative of the class [𝑎].
[𝑎] = {𝑥 ∈ 𝐴 |𝑥 𝑅 𝑎}.
[4] = {𝑥 ∈ 𝐴 |𝑥 𝑅 4} = {4,6}
[5] = {𝑥 ∈ 𝐴 |𝑥 𝑅 5} = {5}
[7] = {𝑥 ∈ 𝐴 |𝑥 𝑅 7} = {7}
Example:
[𝑎] = {𝑥 ∈ 𝐴 |𝑥 𝑅 𝑎}.
[4] = {𝑥 ∈ 𝐴 |𝑥 𝑅 4} = {4,9}=[9]
Example:
𝐴3 = {5}. Define the relation R on A by 𝑥𝑅𝑦 iff 𝑥 and 𝑦 are in the same
𝑅 = {(1,1), (1,2), (2,1), (2,2), (2,4), (3,2), (3,3), (3,4), (4,2), (4,3), (4,4), (5,5)}
MVS Page 27
A partition of a set S is a sub-division of the set into subsets that are disjoint and
exhaustive,i.e every element of S belong to one and only one element of the subsets
Def: Let S be a non -empty set and 𝐴 = {𝐴1, 𝐴2, … … 𝐴𝑛 } where, 𝐴𝑖 ⊆ 𝑆for all 𝑖 = 1,2, . . 𝑛
(OR)
Let S be a non empty set .Then the collection of nonempty subsets of S , say
𝐴1, 𝐴2, … … 𝐴𝑛 is said to be a partition of a set S
1. 𝐴1 ∪ 𝐴2 ∪ … ∪ 𝐴𝑛 = 𝑆 and
2. 𝐴1, 𝐴2, … … 𝐴𝑛 are mutually disjoint.
i,e 𝐴𝑖 ∩ 𝐴𝑗 = ∅ for 𝑖 ≠ 𝑗
MVS Page 28
Let S be a non empty set . A collection of nonempty sets 𝑨𝟏, 𝑨𝟐, … … 𝑨𝒏 is said to be a
covering of a set S if 𝑨𝟏 ∪ 𝑨𝟐 ∪ … ∪ 𝑨𝒏 = 𝑺
Example:
S = {1,2,3,4,5,6,7,8,9}
(i) {{1,3,5}, {2,6}, {4,8,9}} , Neither partition nor a cover of set S(since 7 in S does
not belong to any of the subsets)
(ii) {{1,3,5}, {2,4,6,8}, {5,7,9}}, only cover of set S
(iii) {{1,3,5}, {2,4,6,8}, {7,9}} ,Partition of set S.
(iv) {{1,3, {2,5}, {4,6,8}, {7,9} Partition of set S.
Note : If R is an equivalence relation on the set A, its equivalence classes form a partition
of A. In each equivalence class, all the elements are related and every element in A
belongs to one and only one equivalence class.
Example:
MVS Page 29
Solution: we have equivalence class of the element ‘ 𝑎’ is
[𝑎] = {𝑥 ∈ 𝐴 |𝑥 𝑅 𝑎}.
[4] = {𝑥 ∈ 𝐴 |𝑥 𝑅 4} = {4,6}
[5] = {𝑥 ∈ 𝐴 |𝑥 𝑅 5} = {5}
[7] = {𝑥 ∈ 𝐴 |𝑥 𝑅 7} = {7}
Example-2
[𝑎] = {𝑥 ∈ 𝐴 |𝑥 𝑅 𝑎}.
MVS Page 30
[5] = {𝑥 ∈ 𝐴 |𝑥 𝑅 5} = {5,10} = [10]
Example 1:
𝑅1 o 𝑅2 = {(1, 𝑥 ), (1, 𝑧), (2, 𝑦), (3, 𝑦), (3, 𝑧), (3, 𝑥 )}
Example:
MVS Page 31
Partial Order Set (POSET):
A relation 𝑹 on a set 𝑨 is called a partial ordering or partial order if it satisfies the
following three properties:
A set 𝐴 together with a partial ordering 𝑅 is called a partially ordered set, or poset, and
is denoted by (𝐴, 𝑅). Members of 𝐴 are called elements of the poset.
∴ (𝑍, ≥) is a Poset
Example-2
Consider set
R = {(1, 1), (1, 3), (1, 4), (2, 2), (2, 1), (2, 3), (2, 4), (3, 3), (3, 4), (4, 4), (4, 3)}
(i)Pairs (1, 1), (2, 2), (3, 3), (4, 4) exist:
⇒ This satisfies the reflexive condition.
(ii) The transitive condition is also satisfied.
(iii) For the pairs (4, 3):
⇒ The relation (3, 4) exists
⇒ This does not satisfy the anti-symmetric condition.
So the relation is not anti-symmetric.
Hence the relation R is not a partial order relation.
MVS Page 32
Example3:
Show whether the relation (x, y) ∈ R, if, x ≥ y defined on the set of +ve integers is a
partial order relation.
Solution: Consider the set A = {1, 2, 3, 4} containing four +ve integers. Find the
relation for this set such as
R = {(2, 1), (3, 1), (3, 2), (4, 1), (4, 2), (4, 3), (1, 1), (2, 2), (3, 3), (4, 4)}.
Transitive: The relation is transitive as whenever (a, b) and (b, c) ∈ R, we have (a, c) ∈ R.
As the relation is reflexive, antisymmetric and transitive. Hence, it is a partial order relation.
Example4:
Antisymmetric: Let a, b, c ∈N, such that a divides b. It implies b divides a iff a = b. So, the
relation is antisymmetric.
Then a divides c. Hence the relation is transitive. Thus, the relation being reflexive,
antisymmetric and transitive, the relation 'divides' is a partial order relation.
MVS Page 33
Example-5:
(a) The relation ⊆ of a set of inclusion is a partial ordering or any collection of sets since
set inclusion has three desired properties:
(b) The relation ≤ on the set R of real no that is Reflexive, Antisymmetric and transitive.
Note: Relations Divides , ⊆ (subset) and ≤ (less than or equal to) are partial ordering
relations on N (natural number)
Example: Show that the relation '<' (less than) defined on N, the set of +ve
integers is neither an equivalence relation nor partially ordered relation but is a
total order relation
As, the relation '<' (less than) is not reflexive, it is neither an equivalence relation nor the
partial order relation.
But, as ∀ a, b ∈ N, we have either a < b or b < a or a = b. So, the relation is a total order
relat
MVS Page 34
Procedure for constructing Hasse diagram
• To represent a finite poset (𝑷, ≤ ) using a Hasse diagram, start with the
directed graph of the relation:
MVS Page 35
Example -2 Draw the Hasse diagram of the Poset (𝐷12, ∕), where
𝑅 =/ ={(𝑎, 𝑏) / 𝑎 𝑑𝑖𝑣𝑖𝑑𝑒𝑠 𝑏} =
Example -3 Draw the Hasse diagram of the Poset (𝐷24 , ∕), where
𝑅 =/ ={(𝑎, 𝑏) / 𝑎 𝑑𝑖𝑣𝑖𝑑𝑒𝑠 𝑏}
MVS Page 36
Hasse diagram of Poset (𝐷24 , ∕)
MVS Page 37
MVS Page 38
Example -4 Draw the Hasse diagram of the Poset (𝐷30 , ∕), where
𝑅 =/ ={(𝑎, 𝑏) / 𝑎 𝑑𝑖𝑣𝑖𝑑𝑒𝑠 𝑏}
MVS Page 39
Example
The Hasse diagram for divisibility on the set
{1,2,4,8,16,32,64}
Example
MVS Page 40
Here every two elements are comparable. Therefore it is a total ordering or chain
Example:
MVS Page 41
Draw Hasse diagram for ({3, 4, 12, 24, 48, 72}, /)
MVS Page 42
Solution:
Example:
𝑎, 𝑏 ∈ 𝐴 , 𝑎𝑅𝑏 ⇔ 𝑎/𝑏
Totally Ordered Sets • If (S, ) is a poset and every two elements of S are comparable, S is
called a totally ordered set or linearly ordered set. • It is also called a chain. • The
Poset(Z,≤) is a chain. • The Poset (Z+,|) is not a chain.
MVS Page 43
Example: Hasse diagram of the poset ({𝑎, 𝑏, 𝑐, 𝑑, 𝑒}, 𝑅 )is shown below :
(1) Determine the relation matrix (ii) Construct the digraph for R
Solution:
(𝑎, 𝑎), (𝑏, 𝑏), (𝑐, 𝑐 ), (𝑑, 𝑑 ), (𝑒, 𝑒), (𝑎, 𝑏), (𝑎, 𝑐 ). (𝑎, 𝑑 ), (𝑎, 𝑒)(𝑏, 𝑑 ),
𝑅={ }
(𝑏, 𝑒), (𝑐, 𝑑 ), (𝑐, 𝑒), (𝑑, 𝑒)
1 1 1 1 1
0 1 0 1 1
𝑀𝑅 = 0 0 1 1 1
0 0 0 1 1
[0 0 0 0 1]
MVS Page 44
Consider a relation R on a set A. The transitive closure of a relation R is the smallest
transitive relation containing R and it is denoted by 𝑅 +
𝑅+ = 𝑅 ∪ 𝑅2 ∪ 𝑅3 ∪ … … ∪ 𝑅𝑛
𝑅+ = 𝑅 ∪ 𝑅2 ∪ 𝑅3 ∪ … … ∪ 𝑅𝑛
MVS Page 45
Example1:
Consider the relation R = {(1, 2), (2, 3), (3, 3)} on A = {1, 2, 3}. Then find the transitive
closure of R .
Solution:
R2 = R◦ R = {(1, 3), (2, 3), (3, 3)} and
Transitive of R =𝑅 + = 𝑅 ∪ 𝑅 2 ∪ 𝑅 3 ∪ … … ∪ 𝑅 𝑛 = 𝑅 ∪ 𝑅 2 ∪ 𝑅 3 =
Example-2
𝑅3 = 𝑅2 ∘ 𝑅 = ∅
Transitive of R =𝑅 + = 𝑅 ∪ 𝑅 2 ∪ 𝑅 3 ∪ … … ∪ 𝑅 𝑛 = 𝑅 ∪ 𝑅 2 ∪ 𝑅 3
Example-3
Let the relation R be defined on the set A={1,2,3} as R={(1,2), (2,3), (3,3),(3,2)}.
Transitive of R =𝑅 + = 𝑅 ∪ 𝑅 2 ∪ 𝑅 3 ∪ … … ∪ 𝑅 𝑛 = 𝑅 ∪ 𝑅 2 ∪ 𝑅 3
MVS Page 46
Example-4
If 𝑅 = {(0,1), (1,2), (2,3)} is a relation on set 𝐴 = {0,1,2,3} then find the transitive closure
of the relation R.
Solution: Transitive of R =𝑅 + = 𝑅 ∪ 𝑅 2 ∪ 𝑅 3 ∪ … … ∪ 𝑅 𝑛
𝑹+ = {(𝟎, 𝟏), (𝟎, 𝟐), (𝟎, 𝟑), (𝟏, 𝟐), (𝟏, 𝟑), (𝟐, 𝟑)}
Example-5
Find the transitive closure of the relation R whose digraph is given below.
Solution
Example-
𝑅 = {(𝑎, 𝑎), (𝑎, 𝑏), (𝑏, 𝑐), (𝑐, 𝑑), (𝑐, 𝑒), (𝑑, 𝑒)}.
MVS Page 47
Compute transitive closure of R
Here, 𝑹𝟒 = 𝑹𝟓
Transitive of R = 𝑹+ = 𝑹 ∪ 𝑹𝟐 ∪ 𝑹𝟑 ∪ 𝑹𝟒
MVS Page 48
Example-1
Let A = {4, 6, 8, 10} and R = {(4, 4), (4, 10), (6, 6), (6, 8), (8, 10)} is a relation on
set A. Determine transitive closure of R.
𝑀𝑅4 = 𝑀𝑅3
MVS Page 49
𝑀𝑅+ = 𝑀𝑅 ∨ 𝑀𝑅2 ∨ 𝑀𝑅3
Thus, 𝑅 + = {(4, 4), (4, 10), (6, 8), (6, 6), (6, 10), (8, 10)}.
1∨1= 1 1∧1 =1
0∨0= 0 0∧0 =0
MVS Page 50
Boolean Product
MVS Page 51
Boolean Power of a Matrix
MVS Page 52