Unit 3 Sec 1 (1)
Unit 3 Sec 1 (1)
DISCRETE
MATHEMATICS
Mary Ann Ritzell P. Vega, Ph.D.
Department of Mathematics and Statistics
CSM, MSU-Iligan Institute of Technology
RELATIONS
Reference: Discrete Mathematics and its Applications (7 th Ed) by Kenneth H. Rosen
Relationships between elements of sets occur in many contexts. Every
day we deal with relationships such as those between a business and its
telephone number, an employee and his or her salary, a person and a
relative, and so on. In mathematics we study relationships such as those
between a positive integer and one that it divides, a real number and
one that is larger than it, and so on. Relationships such as that between a
program and a variable it uses, and that between a computer language
and a valid statement in this language often arise in computer science.
Relationships between elements of sets are represented using the
structure called a relation, which is just a subset of the Cartesian
product of the sets. Relations can be used to solve problems such as
determining which pairs of cities are linked by airline flights in a
network, finding a viable order for the different phases of a complicated
project, or producing a useful way to store information in computer
databases.
BINARY RELATIONS
◦ The most direct way to express a relationship between elements of two
sets is to use ordered pairs made up of two related elements. For this
reason, sets of ordered pairs are called binary relations.
◦ DEFINITION Let A and B be sets. A binary relation from A to B is a subset of
A × B.
◦ 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
(𝑎, 𝑏) belongs to R, 𝑎 is said to be related to 𝑏 by R.
RELATIONS
◦ Binary relations represent relationships between the elements of two sets.
Moreover, n-ary relations express relationships among elements of more
than two sets. We omit the word binary when there is no danger of
confusion. Thus, we simply use the word relation and have the following
definition and examples.
A subset R of the Cartesian product A × B is called a relation
◦ DEFINITION.
from the set A to the set B. The elements of R are ordered pairs, where the
first element belongs to A and the second to B.
Example R = {(a, 0), (a, 1), (a, 3), (b, 1), (b, 2), (c, 0), (c, 3)} is a relation from
the set {a, b, c} to the set {0, 1, 2, 3}.
REPRESENTING RELATIONS
◦ EXAMPLE Let A = {0, 1, 2} and B = {a, b}. Then {(0, a), (0, b), (1, a), (2, b)}
is a relation from A to B. This means, for instance, that 0Ra, but that
◦ Relations can be represented graphically, as shown in Figure 1, using
arrows to represent ordered pairs. Another way to represent this relation
is to use a table, which is also done in Figure 1.
RELATIONS ON A SET
◦ DEFINITION A relation on a set A is a relation from A to A.
◦ In other words, a relation on a set A is a subset of A × A.
◦ EXAMPLES 1. What are the ordered pairs in the less than or equal to relation,
which contains (a, b) if a ≤ b, on the set {0, 1, 2, 3}?
◦ Solution: The ordered pair (a, b) belongs to R if and only if both a and b belong to
{0, 1, 2, 3} and a ≤ b. Consequently, the ordered pairs in R are (0,0), (0,1), (0,2),
(0,3), (1,1), (1,2), (1,3), (2,2), (2, 3), and (3, 3).
◦ 2. Let A be the set {1, 2, 3, 4}. Which ordered pairs are in the relation
◦ R = {(a, b) | a divides b} ?
◦ Solution: Because (a, b) is in R if and only if a and b are positive integers not
exceeding 4 such that a divides b, we see that
◦ R = {(1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 4), (3, 3), (4, 4)}.
RELATIONS on an INFINITE SET (Example)
PROPERTIES OF RELATIONS
There are several properties that are used to classify relations on a set. We
will introduce the most important of these here. In some relations an
element is always related to itself. For instance, let R be the relation on the
set of all people consisting of pairs (x, y) where x and y have the same
mother and the same father. Then xRx for every person x.
A relation R on a set A is called reflexive if (𝑎, 𝑎) ∈ 𝑅 for every
DEFINITION
element 𝑎 ∈ 𝐴.
Using quantifiers we see that the relation R on the set A is reflexive if ∀𝑎((𝑎, 𝑎) ∈ 𝑅),
where the universe of discourse is the set of all elements in A.
We see that a relation on A is reflexive if every element of A is related to itself.
REFLEXIVE RELATIONS
REFLEXIVE RELATIONS
◦ EXAMPLE Is the “divides” relation on the set of positive integers reflexive?
◦ Solution: Because a | a whenever a is a positive integer, the “divides” relation is
reflexive. (Note that if we replace the set of positive integers with the set of all
integers the relation is not reflexive because by definition 0 does not divide 0.)
EXAMPLE Which of the following relations on the set of integers are reflexive?
◦ Answer: 𝑅1 , 𝑅3 , 𝑅4 .
SYMMETRIC and ANTISYMMETRIC RELATIONS
In some relations an element is related to a second element if and only if the
second element is also related to the first element. The relation consisting of pairs
(x, y), where x and y are students at your school with at least one common class
has this property. Other relations have the property that if an element is related to
a second element, then this second element is not related to the first. The relation
consisting of the pairs (x, y), where x and y are students at your school, where x
has a higher grade point average than y has this property.
A relation R on a set A is called symmetric if (𝑏, 𝑎) ∈ 𝑅
◦ DEFINITIONS
whenever (𝑎, 𝑏) ∈ 𝑅, for all 𝑎, 𝑏 ∈ 𝐴.
◦ A relation R on a set A such that for all 𝑎, 𝑏 ∈ 𝐴, if (𝑎, 𝑏) ∈ 𝑅 and (𝑏, 𝑎) ∈ 𝑅,
then 𝑎 = 𝑏 is called antisymmetric.
SYMMETRIC and ANTISYMMETRIC RELATIONS