DM-relations-theory (1)
DM-relations-theory (1)
2.1. INTRODUCTION
In the
previous chapter, we have discussed various
setsfrom given sets. We now operations on sets to generato.
products of sets which will helpdiscuss
one more
us in
property of sets which is known as eat
understanding the concept of relations. rtesianw
2.2. ORDERED PAR
Let A amd B be
where any two sets. Then by
xe A. ye B. an ordered pair of elements, we mean a
For pair (t
exanmple, the ordered
pairs (1, 1), (2, 3), (3, 5)
2.3. represent different points in a plane
CARTESIAN PRODUCT OF SETSs
Let A and B be
any two
is the set of non-empty sets.
all
ordered pairs («, y) such that xeThen the cartesian
A and product of the sets A and 5
AxB= {(x, y): x yeB and it is denoted by
For example, e Aand y e B}. A xB. Thus
consider A =(1, 2), B =(3, 4, 5). We
Here AxB {(1, 3), (1, 4), (1,
= find AxB, Bx A, Ax A, B XB.
5), (2, 3), (2, 4), (2,
BxA ={3, 1), (8, 2), (4, 1), 5)}
(4, 2), (5, 1), (5, 2)}
AxA={(1, 1), (1, 2), (2, 1), (2,
BxB={3, 3), 2)}
(8, 4), (8, 5), (4,
2.4. RELATION (or Binary 3), (4, 4), (4, 5), (5, 3), (5, 4), (0:
Relation)
Let A and B be
any two
from A to B is a subset of
A x B. non-empty sets. Then
R is relation from Ato
a
Thus, biunary relationa
or ply aa
simply relalion
j
50
RELATIONS
51
2.5. TOTAL NUMBER OF RELATIONS
A
Let and B be two
Then the number non-empty finite sets containing and n elements respeely
m
of ordered pairs in Ax B=
is 2mn mu, Therefore, total number or ubo
from AtoB
A 2mn (inel
is 2"
toB1s includingAB
the
defines a relation from A to B, so total number of relations
empty relation o and the universal relation A D:
Similarly, if a set A *
Then relation
Also,
R-1 {(b, a): be B, ae A}
Domain of R-1 Range of R =
is denoted by A,or A
For example, consider A {a, b, c} and define relations R, and R, as follows,
=
8, is a reflexive relation on A.
3), (1. 3). (2, 1)}
The relation R, defined by R, = {(1, 1), (3, 3), (2, 1). (3, 2)} is not a reflexive relation on A
R.
inequality on the set A, thus R is irreflexive since for every a E A, (a, a)£
Example. non-empty set and R be a relation
Let A be a on A ={a:ais a computer
science student) defined by R={(a, b): a scored less than b}
Then for all a e A, (a, a) e R i.e., R is an irreflexive relation.
reflexive relation, but not conversely.
Every identity relation on a non-empty set Ais
a
Remark.
b), (c, c), (a, b)}. Then R is a reflexive
{a, b, c} and define a relation R by R {a, a), (b,
=
Consider A =
2.10. EQUIVALENCE RELATION (P.TU.B.Tech. May 2013, May 2012, May 2010, Dec. 2007)
set. Then A iff it
LetA be any
satisfies the following
a relation R on A is said to be an equivalence relation on
) It is reflexive
(ii) It is symmetric
(ii) It is transitive.
Theorem I. IfR a d S are tuwo equivalence relations on a setA, then
() RoS is also an equirvalence
relation o A. P.T.U. M.C.A. Dec. 2006)
(6) RUS may or may not be an equivalence relation on A.
(P.T.U. B.Tech. Dec. 2013; P.T.U. M.C.A. Déc. 2006)
Proof. Given R is a relation on A. It means R is a subset of Ax A. It implies
RCAxA ... (1)
Also, SCAXA ...(2
(1) and (2) gives R o ScAxAie., RnS is a subset of A x A. Hence R nS is a relation
on A.
We show RnS is an equivalencerelation on A.
() Reflexivity. Let xe A be any arbitrary element of A.
As R and S are equivalence relations on A. It implies R and S are reflexive relations on A.
symmetric relations on A.
As R and S are
o, x) e R and ), 1) ES
y, a) e RnS.
Hence (x, y) E RnS 0, 1) ¬ RnS for all x, y E A.
Therefore R n S is symmetric on A. Rn S.
z e A such
that (x, y) e RnS, y, 2) ¬
Now, (x, y) e
on A
As R, S are transitive
, y) E R, V, z) e R (r, 2) ¬R
(r, 2) E S
(x, y) E S, (y, z) S
¬
Also,
(x, z) E Rn S. relation on A.
Sis an equivalence relation.
Hence Rn
or may not be an equivalence
show RUS may relations R andS by
Further, we Define the
A= {a, b, c}. (6, a)}
Consider b), (¢, c), (a, b),
R={(a, a), (6, b)}
S {(a, a), (6, b), (c, c), (6, c), (c,
DISCRETE STR
54 UCTURES
relations on A.
Clearly. R and S a r e equivalence (c, c), (a, b), (6, a), (6, c), (c, b)}
a), (b, b,),
But RUS={(a, E RUS.
Here (a, b) e R US, (6, c)
RUSis not transitive.
But (a,c)e RUS A.
equivalence relation on
Hence RUS cannot be
2.11. COMPATIBLE RELATION
2.12. PARTIAL ORDER RELATION P.T.U. B. Tech. Dec. 2013, May 2006)
A relation R on a set A is called a partial relation if it is
) reflexive
(ii) anti-symmetrie
(iii) transitive.
For example, define a relation 'C on A. We show the relation ' is a partial order
relaticn on A.
) Let B e P(A). Then BcB is true. Therefore, ' i s reflexive.
(ii) Let B,, B, e P(A) and if B, SB,, B,cB,. Then B, = B, is true.
' S is anti-symmetric.
(iii) Let B, B, B E P(A) and if B, c B, B, c B,. then B, cB, is true.
Hence the relation 'C is transitive.
The relation 'C is a partial order relation.
2.13. PRODUCT OF SETSs
Let A, Az.., A,, are n sets. Then the set of all ordercd n-tuples («1, ag
E A, u E A,.., a, E
A is called the product of the
..,
a w A
sels A, Ag, . . .
Hence, we write
AxA=A2
Ax Ax A = A3
**************:***
Ax Ax... A = A"
Let A, B. C be any three sets. Let R be a relation from A to B and S be a relation from B
to C. ie., R is a subset of A x B and S is a subset of B x C. Then R and S give rise to a relation
from A to C denoted by RoS and defined by
a(RoS)e if for some be B, we have aRb and bSc. Thus,
RoS {(a, c): There exists b e B for which (a, b) e R and (b, e) e S}
A= (1, 2, 3), B = (a, b, e), C = (x, y, 2).
e.g, Let
Consider the following relation: R from A to B and S from B to C, given by
R {(1, b), (2, ), (2, e)};S={«, ), (6, ), (C, ), (c, 2)}
We find the composition relation RoS
Draw the arrow diagram of R and S as shown Fig. 2.1. There is an arrow from 1 to b
which is followed by an arrow from b to x, Thus 1(RoS)x or (1, )e RoS.
Similarly, 2, ), 2, 2) E RoS. No
other pairs belong to RoS. Thus, RoS =
{(1, ), C,
(2,
Fig. 2.1
Remark. In genoral RoS SoR. Also, (RoS)-l S-loR-1 =
Theorem II. Let A, B and C be three sets and R be a relation from A to B, S are , S a r e l a t i o n
79
But R is symmetric, therefore.
(b, 1) e R (x, b) e R
Aaain, (a, x) E R, (*, b) ER and R is
transitive, we must have
(a, b) e R
la]= [b] I Using Part (i)