Professional Documents
Culture Documents
Discrete Math Lecture #04 (2020) PDF
Discrete Math Lecture #04 (2020) PDF
ITCS 1313
2020 / 2021
SET THEORY
Lecture #04
Discrete MATH by Yahya AMER
Outlines
◼ Representing Relations
using Digraphs
◼ Closures of Relations
Reflexive closure
Symmetric closure
Transitive closure
◼ Equivalence Relations
◼ Partial Orderings Relations
◼ Functions & Function types
One-to-One Functions
Onto Functions
One-to-One & Onto Function
◼ Inverse Functions
◼ Floor & Ceiling Functions
Discrete MATH by Yahya AMER
d c d c
Discrete MATH by Yahya AMER
Solution : Solution :
◼ reflexive,
◼ not symmetric, ◼ not reflexive,
◼ not antisymmetric, ◼ symmetric
◼ not transitive ◼ not antisymmetric
(a→b, b→c, a→c) ◼ not transitive
(b→c, c→a, b→a) (b→a, a→c, b→c)
Discrete MATH by Yahya AMER
∴Rt = {(1,2),(2,3),(3,4),(4,5),
(1,3), (2,4), (3,5),
(1,4), (2,5),
5 (1,5)}
2 4
Discrete MATH by Yahya AMER
Equivalence Relations
Definition. A relation R on a set A is called an equivalence
relation if it is reflexive, symmetric, and transitive.
Partial Orderings
Definition. A relation R on a set S is called a partial ordering or
partial order if it is reflexive, antisymmetric, and transitive.
Example. Show that the “greater than or equal” () is a partial ordering on the
set of integers.
Solution : x x xZ reflexive
If x y and y x then x = y. antisymmetric
x y, y z x z transitive
Definition of Function
◼ Given any sets A, B, a relation from A to B is a function if every
element of set A has one and only one image in set B
Function Terminologies
◼ If f:A→B, and f(a)=b (where aA & bB), then:
A is the domain of f.
B is the codomain of f.
b is the image of a under f.
a is a pre-image of b under f.
Example: The Relation S from the set D ={1,2,3,4} to the set C={a,b,c,d},
where S= {(1,a), (2,c), (3,d), (4,b)}. Is S function? If so, determine the
domain, codomain, image , preimages.
- The domain of S = {1,2,3,4} = D
- The codomain of S = {a,b,c,d} = C
- a is the image of 1, c is the image of 2, d is the image of 3, b is the
image of 4
- 1 is the preimage of a, 2 is the preimage of c, 3 is the preimage of d, 4
is the preimage of b
Discrete MATH by Yahya AMER
a 1 a 1 a a 1
b b 1 b
2 2 b 2
c 3 c 3 c 2 c 3
d 4 4 d 3 d 4
Discrete MATH by Yahya AMER
Inverse Functions
Definition: Let f be a bijection from A to B. Then the inverse of
f, denoted , is the function from B to A defined as
Example : Let f be the function from {a,b,c} to {1,2,3} such that f(a) = 2, f(b) = 3,
and f(c) = 1. Is f invertible and if so what is its inverse?
Solution:. The inverse function f -1 reverses the correspondence given by f,
so f -1 (1) = c, f -1 (2) = a, and f -1 (3) = b.
Discrete MATH by Yahya AMER
END OF
SET THEORY