Professional Documents
Culture Documents
Example:
EXAMPLE: How many relations are there on a set with ‘n’ elements?
Definition: A relation R on a set A is called reflexive if (a, a) ∈ R for every
element a ∈ A.
Remark: Using quantifiers we see that the relation R on the set A is
reflexive if ∀a((a, a) ∈ R), where the universe of discourse is the set of all
elements in A.
EXAMPLE: How many reflexive relations are there on a set with ‘n’
elements?
EXAMPLE: How many symmetric relations are there on a set with ‘n’
elements?
EXAMPLE: How many antisymmetric relations are there on a set with ‘n’
elements?
EXAMPLE: How many relations are there on a set with ‘n’ elements are
reflexive and symmetric?
EXAMPLE: How many transitive relations are there on a set with ‘n’
elements?
2
n ( n +1) n ( n−1) n ( n−1 )
2n −n n
2 2
2 3 2
2 2
Definition:
EXAMPLE:
EXAMPLE:
EXAMPLE:
EXAMPLE:
EXAMPLE: Let R be the relation on the set of real numbers such that xRy
if and only if x and y are real numbers that differ by less than 1, that is,
|x − y| < 1. Is R an equivalence relation?
EXAMPLE:
Theroem:
Theorem:
EXAMPLE: Show that the greater than or equal to relation (≥) is a partial
ordering on the set of integers.
integers.)
EXAMPLE: Show that the inclusion relation ⊆ is a partial ordering on the
power set of a set S.
EXAMPLE: Let R be the relation on the set of people such that xRy if x and
y are people and x is older than y. Then R is…………………..?
(a) not a partial ordering.
(b) a partial ordering.
Definition:
Remark.
(1) The smallest relation on a set A is ϕ
(2) The largest relation on a set A is A × A .
S ◦ R = {(1, 0), (1, 1), (2, 1), (2, 2), (3, 0), (3, 1)}.
Remark: Let A={1,2,3} and ‘R’ be the relation {(1,1),(2,2),(3,3)} defined on
A. Then this relation is reflexive, symmetric, antisymmetric and transitive.
So this relation is an equivalence relation and a partial order relation.
Representing Relations
Solution: Because there are loops at every vertex of the directed graph of
S1, it is reflexive. The relation S1 is neither symmetric nor antisymmetric
because there is an edge from a to b but not one from b to a, but there
are edges in both directions connecting b and c. Finally, S1 is not
transitive because there is an edge from a to b and an edge from b to c,
but no edge from a to c. Because loops are not present at all the vertices
of the directed graph of S2, this relation is not reflexive. It is symmetric
and not antisymmetric, because every edge between distinct vertices is
accompanied by an edge in the opposite direction. It is also not hard to
see from the directed graph that S2 is not transitive, because (c, a) and (a,
b) belong to S2, but (c, b) does not belong to S2.
Rectification: If element ‘10’ is added to the poset {1,2,3,4,6,8,12} along
with “division” then in the Hasse diagram of the new poset, rather than
the edge from ‘1’ to ‘10’ there will be an edge from ‘2’ to ‘10’. The edge
from ‘1’ to ‘10’ is not required in the Hasse diagram due to transitivity
(i.e.’1’ divides ‘2’ and ‘2’ divides ‘10’).
Example:
Example:
Example:
Example:
Ex
ample:
Example:
Example:
Example:
A standard deck of 52 cards has 13 kinds of cards, with four cards of
each of kind, one in each of the four suits, hearts, diamonds, spades,
and clubs.
Example:
Example:
Example:
Example:
A total of 1232 students have taken a course in Spanish, 879 have taken a
course in French, and 114 have taken a course in Russian. Further, 103
have taken courses in both Spanish and French, 23 have taken courses in
both Spanish and Russian, and 14 have taken courses in both French and
Russian. If 2092 students have taken at least one of Spanish, French, and
Russian, how many students have taken a course in all three languages?