DMS Mod-2 L1 Relation
DMS Mod-2 L1 Relation
Discrete Mathematics
Module II
Relation
1
Amity School of Engineering & Technology (CSE)
Module I:
Relation and properties of relation
2
Amity School of Engineering & Technology (CSE)
OBJECTIVES
After completing this section, you will be able to
3
Amity School of Engineering & Technology (CSE)
Relation
Introduction
4
Amity School of Engineering & Technology (CSE)
Relation
Introduction
Formally, we define a relation in terms of these “ordered pairs”.
Relations, as noted above, will be defined in terms of ordered pairs (a, b)
of elements, where a is designated as the first element and b as the
second element.
Relation
Some definitions required to define relation
Relation
RELATION
Let A and B are two nonempty sets. A binary relation or, simply, relation
from A to B is a subset of A X B i.e.
R is a relation from A to B R (AB)
Example1
Let A = {1, 2,3} and B= {a, b, c}
Then AB={(1,a),(1,b),(1,c),(2,a),(2,b),(2,c),(3,a),(3,b),(3,c)}
R1={(1,a),(1,c)}
R2={(1,a),(2,a),(2,c)}
R3={(3,c)} are all examples of relations from A to B.
Relation
Domain and Range of a Relation
If R (AB) is a relation from AB, then
Domain(R)={a: (a,b)R} and
Range(R)={b: (a,b)R}.
The domain of a relation R is the set of all first elements of the ordered
pairs which belong to R, and the range of R is the set of second
elements.
Example
Let A = {1, 2,3} and B= {a, b, c}
Then AB={(1,a),(1,b),(1,c),(2,a),(2,b),(2,c),(3,a),(3,b),(3,c)}
R={(1,a),(2,a),(2,c)}
Domain(R)={1,2}
Range(R)={a,c}.
8
Amity School of Engineering & Technology (CSE)
Relation
Some Examples
Example1: Let A={1,2,3,4}. Define a relation R on A by writing (x,y)R if
x < y. Then
R = {(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)}.
Example2 Let A={1,2,3}. Define a relation R on A as
R={{a,b}: a is divisible by b. We have R = {(1,1),(2,1),(3,1),(2,2),(3,3)}.
Example3:Let A be the power set of the set {1,2} in other words, A = {,
{1},{2},{1,2}} is the set of subsets of the set {1,2}. Write a relation on A,
where (P,Q)R, if PQ.
In this case we have:
R = {(,{1}), (,{2}), (,{1,2}), ({1},{1,2}), ({2},{1,2})}.
9
Amity School of Engineering & Technology (CSE)
OBJECTIVES
Summary
Let A and B be two nonempty sets. The Cartesian product
AB = {(a,b) : aA and bB}. In other words, AB is the set of
all ordered pairs (a,b), where aA and bB.
A binary relation or, simply, relation from A to B is a subset of
A X B i.e. R is a relation from A to B R (AB)
If R (AB) is a relation from AB, then
Domain(R)={a: (a,b)R} and
Range(R)={b: (a,b)R}.
10
Amity School of Engineering & Technology (CSE)
11