Lec 10 Discrete Structures
Lec 10 Discrete Structures
Lec 10 Discrete Structures
f x f (x)
What is Function?
What is Function?
What is Function?
Function Defined as an Arrow
Diagram
• If X and Y are finite sets, you can define a function f from
X to Y by drawing an arrow diagram. You make a list of
elements in X and a list of elements in Y, and draw an
arrow from each element in X to the corresponding
element in Y. The arrow diagram define a function
1. Every element of X has an arrow coming out of it.
2. No element of X has two arrows coming out of it
that point to two different elements of Y.
Example
• Which of the arrow diagrams in the following Figure
define functions from X = {a, b, c} to Y = {1,2,3,4}?
Note:
1. Every element of X has an arrow coming out of it.
2. No element of X has two arrows coming out of it
that point to two different elements of Y.
Solution
• Which of the arrow diagrams in the following Figure
define functions from X = {a, b, c} to Y = {1,2,3,4}?
Example
Solution
Example
Example
Equality of Functions
Example
Solution
Example
Solution
Properties of Functions
Properties of Functions
Example
• State the following Functions F, G, Either Onto or Not?
Why Not?
•
(a)
Example
• State the following Functions H, K, Either Onto or Not?
Why Not?
Properties of Functions
Example
Properties of Functions
Example
(A)
(B)
Example
To graph a function:
(2)
Solutions
(1)
Solutions
(2)
Text Book
This lecture covered Section 5.4 of Judith Book.
Exercises 5.4.