Lecture Topic 1.2.2
Lecture Topic 1.2.2
properties
Binary Relation
• A binary relation R from set A to set B is a subset of the Cartesian
product A×B.
R⊆A×B
• As in Cartesian product of two sets A and B, is the set of all possible
ordered pairs (a, b), where a ∈ A and b ∈ B:
A×B={(a,b)∣a∈A and b∈B}
Binary Relation
• A binary relation describes a relationship between the elements of two
sets.
• If A and B are sets, then a binary relation R from A to B is a subset of
the Cartesian product of A and B (A x B).
• Let A = {1, 2, 3} and B = {4, 5, 6}. Let R be a binary relation from A
to B as follows:
given any (x, y) € A x B, (x, y) € R ↔ y/x € Z
Binary Relation
Example
Binary Relation
Example
Graph Representation of a Binary Relation
Matrix Representation of Binary Relation
Relation
• A connection between the elements of two or more sets is Relation.
The sets must be non-empty.
• A subset of the Cartesian product also forms a relation R.
• A relation may be represented either by Roster method or by Set-
builder method.
• Let A and B be two sets such that A = {2, 5, 7, 8, 10, 13} and B = {1,
2, 3, 4, 5}.
• R = {(x, y): x = 4y – 3, x ∈ A and y ∈ B} (Set-builder form)
Relation
• R = {(5, 2), (10, 3), (13, 4)} (Roster form)
Types of Relations
• Empty Relation
• Universal Relation
• Identity Relation
• Inverse Relation
• Reflexive Relation
• Symmetric Relation
• Transitive Relation
• Equivalence Relation
Empty Relation
• If no element of set X is related or mapped to any element of X, then
the relation R in A is an empty relation, i.e, R = Φ.
• Consider an example of set A consisting of only 100 hens in a poultry
farm.
• Is there any possibility of finding a relation R of getting any elephant
in the farm?
• No! R is a void or empty relation since there are only 100 hens and no
elephant.
Universal Relation
• A relation R in a set, say A is a universal relation if each element of A
is related to every element of A, i.e., R = A × A.
• It is also called Full relation.
• Suppose A is a set of all natural numbers and B is a set of all whole
numbers.
• The relation between A and B is universal as every element of A is in
set B.
• Empty relation and Universal relation are sometimes called trivial
relation.
Identity Relation
• In Identity relation, every element of set A is related to itself only.
I = {(a, a), ∈ A}
• For example,
• If we throw two dice, we get 36 possible outcomes, (1, 1), (1, 2), … ,
(6, 6).
• A relation is defined as R: {(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)}, it
is an identity relation.
Inverse Relation
• Let R be a relation from set A to set B i.e., R ∈ A × B.
• The relation R-1 is said to be an Inverse relation if R-1 from set B to A
is denoted by R-1 = {(b, a): (a, b) ∈ R}.
• Considering the case of throwing of two dice if R = {(1, 2), (2, 3)},
R-1 = {(2, 1), (3, 2)}.
• Here, the domain of R is the range of R-1 and vice-versa.
Reflexive Relation
• If every element of set A maps to itself, the relation is Reflexive
Relation.
• For every a ∈ A, (a, a) ∈ R.
• A relation R is A relation R is reflexive iff, for any x ∈ S, x R x.
• Example:
let R be defined as follows:
for all x, y ∈ S, x R y ↔ xy > 0 reflexive iff, for any x ∈ S, x R x.
Reflexive Relation
• Then R is reflexive, since:
-1 R -1 -1 * -1 > 0
1R1 1*1>0
2R2 2*2>0
Symmetric Relation
• A relation R on a set A is said to be symmetric if (a, b) ∈ R then (b, a)
∈ R, for all a & b ∈ A.
• A relation R is symmetric iff, for all x, y ∈ S, if x R y then y R x.
Symmetric Relation
Let R be defined as follows: for all x, y ∈ S, x R y ↔ x 2 + y > 0
R is symmetric as follows:
Note that this relationship is also by definition reflexive: if x R x.
then x R x.
⋃i=1nAi=A1∪A2∪…∪An=A
• The union of the subsets in P is equal to A.
An inverse relation is the inverse of a relation and is obtained by interchanging the elements of each
ordered pair of the given relation. Let R be a relation from a set A to another set B. Then R is of the form
{(x, y): x ∈ A and y ∈ B}. The inverse relationship of R is denoted by R-1 and its formula is R-1 = {(y, x): y ∈
B and x ∈ A}. i.e.,
The first element of each ordered pair of R = second element of corresponding ordered pair of R-1.
The second element of each ordered pair of R = first element of corresponding ordered pair of R-1.
In simple words, if (x, y) ∈ R, then (y, x) ∈ R-1 and vice versa. i.e., If R is from A to B, then R-1 is from B to A.
Thus, if R is a subset of A x B, then R-1 is a subset of B x A.
Example:
The following relations and their inverse relations on two sets A = {a, b, c, d, e} and B = {1, 2, 3, 4, 5}.
If R = {(a, 2), (b, 4), (c, 1)} ⇔ R-1 = {(2, a), (4, b), (1, c)}
If R = {(c, 1), (b, 2), (a, 3)} ⇔ R-1 = {(1, c), (2, b), (3, a)}
If R = {(b, 3), (c, 2), (e, 1)} ⇔ R-1 = {(3, b), (2, c), (1, e)}
Domain and Range of Inverse Function:
The domain of a relation is the set of all first elements of its ordered pairs whereas the range is the set of
all second elements of its ordered pairs. Let us consider the first example from the list of above
Inverse of Relations and Functions
For R = {(a, 2), (b, 4), (c, 1)}, domain = {a, b, c} and range = {2, 4, 1}
For R-1 = {(2, a), (4, b), (1, c)}, domain = {2, 4, 1} and range = {a, b, c}
The domain and range interchanged for R and R-1 i.e.,
the domain of R-1 = the range of R and
the range of R-1 = the domain of R.
Note: If R is a symmetric relation (i.e., if (b, a) ∈ R, for every (a, b) ∈ R), then R = R-1. For example, consider a
symmetric relation R = {(1, a) (a, 1), (2, b), (b, 2)}. The inverse of this relation is, R-1 = {(a, 1), (1, a), (b, 2), (2, b)}.
Technically, R = R-1, because the order of elements is NOT important while writing a set. In this case, the
domain of R = range of R = domain of R-1 = range of R-1 = {1, 2, a, b}.
Inverse Relation Theorem
Statement: For any relation R, (R-1)-1 = R.
Proof: Here is the proof of the inverse relation theorem.
Let (x, y) ∈ R
⇔ (y, x) ∈ R-1
⇔ (x, y) ∈ (R-1)-1
Thus, (R-1)-1 = R.
Relevant Books
• Textbooks
⮚ C.L. Liu “Elements of Discrete Mathematics". McGraw Hill, 3rd Edition.
⮚ Santha,"Discrete Mathematics with Graph Theory, Cengage Learning, 1st
Edition.
• Reference Books
⮚ B. Kolaman, and R.C. Busby, “Discrete Mathematical Structures”, PHI, 1st
Edition.
⮚ Gersting, L. Judith “Mathematical Structures for computer Science”,
Computer Science Press.
• Links for e-book:
⮚ http://discrete.openmathbooks.org/pdfs/dmoi-tablet.pdf
References
• Other Resources:
⮚ https://www.csm.ornl.gov/~sheldon/ds/sec4.5.html
⮚ https://math24.net/binary-relations.html
⮚ https://www.toppr.com/guides/maths/relations-and-functions/types-of-relations/
Link of e-book
https://www.science4all.org/article/duality-in-linear-programming/
http://discrete.openmathbooks.org/pdfs/dmoi-tablet.pdf
weblinks :
https://www.javatpoint.com/algebra-of-sets
• https://www.javatpoint.com/principle-of-duality-in-discrete-mathematics
• PPT - Discrete Mathematics SETS PowerPoint Presentation, free download - ID:4004039 (slideserve.com)
• PPT - Discrete Mathematics: Set Operations and Identities PowerPoint Presentation - ID:5559797 (slideserv
e.com)
• VEDIOLINK:
• https://www.youtube.com/watch?v=wGLTV8MgLlA&list=PLU6SqdYcYsfJ27O0dvuMwafS3X8CecqUg
• https://www.youtube.com/watch?v=RW42KXPaw_A&list=PLmXKhU9FNesRORH5XXsErmamVvUT_zbG4