Functions Lecture 12 A B f( ) =. Functions function, f, from set A to set B associates an element, with an element The domain of f is A. The codomain.

Slides:



Advertisements
Similar presentations
1.6 Functions. Chapter 1, section 6 Functions notation: f: A B x in A, y in B, f(x) = y. concepts: –domain of f, –codomain of f, –range of f, –f maps.
Advertisements

Functions, Pigeonhole Principle Lecture 14: Nov 4 A B f( ) =
Functions Section 2.3 of Rosen Fall 2008
Functions Lecture 12 A B f( ) =. Functions function, f, from set A to set B associates an element, with an element The domain of f is A. The codomain.
Terminology Domain: set which holds the values to which we apply the function Co-domain: set which holds the possible values (results) of the function.
Discrete Mathematics Lecture 7 Alexander Bukharovich New York University.
Lecture 3 Set Operations & Set Functions. Recap Set: unordered collection of objects Equal sets have the same elements Subset: elements in A are also.
CSE115/ENGR160 Discrete Mathematics 02/16/12 Ming-Hsuan Yang UC Merced 1.
Terminology Domain: set which holds the values to which we apply the function Co-domain: set which holds the possible values (results) of the function.
Functions f( ) = A B Lecture 15: Nov 4.
Functions Goals Introduce the concept of function Introduce injective, surjective, & bijective functions.
1 Section 1.8 Functions. 2 Loose Definition Mapping of each element of one set onto some element of another set –each element of 1st set must map to something,
Functions.
Chapter 7 Functions Dr. Curry Guinn. Outline of Today Section 7.1: Functions Defined on General Sets Section 7.2: One-to-One and Onto Section 7.3: The.
1 CMSC 250 Chapter 7, Functions. 2 CMSC 250 Function terminology l A relationship between elements of two sets such that no element of the first set is.
Functions, Sequences, and Sums
Discrete Structures Functions Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
Section 1.8: Functions A function is a mapping from one set to another that satisfies certain properties. We will first introduce the notion of a mapping.
Functions A B f( ) =. This Lecture We will define a function formally, and then in the next lecture we will use this concept in counting. We will also.
Sets Set Operations Functions. 1. Sets 1.1 Introduction and Notation 1.2 Cardinality 1.3 Power Set 1.4 Cartesian Products.
2.1 Sets 2.2 Set Operations 2.3 Functions ‒Functions ‒ Injections, Surjections and Bijections ‒ Inverse Functions ‒Composition 2.4 Sequences and Summations.
FUNCTION Discrete Mathematics Asst. Prof. Dr. Choopan Rattanapoka.
Relations and Functions Another Foundational Concept Copyright © 2014 – Curt Hill.
Functions Domain and range The domain of a function f(x) is the set of all possible x values. (the input values) The range of a function f(x) is the set.
My Introduction Name: Prakash ADHIKARI Academic Qualification: Master’s Degree Research, Universite Lumiere-IUT Lumiere, Lyon - 2(ULL-2), France Master’s.
Functions. Copyright © Peter Cappello2 Definition Let D and C be nonempty sets. A function f from D to C, for each element d  D, assigns exactly 1 element.
Week 7 - Friday.  What did we talk about last time?  Set disproofs  Russell’s paradox  Function basics.
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (2)
Fall 2002CMSC Discrete Structures1 … and the following mathematical appetizer is about… Functions.
10/26/20151 … and the following mathematical appetizer is about… Functions.
1 Annoucement n Skills you need: (1) (In Thinking) You think and move by Logic Definitions Mathematical properties (Basic algebra etc.) (2) (In Exploration)
FUNCTIONS.
Discrete Mathematics CS 2610 September 12, Agenda Last class Functions  Vertical line rule  Ordered pairs  Graphical representation  Predicates.
Functions Section 2.3 of Rosen Spring 2012 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions: Use Piazza.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
1 Discrete Structures – CNS 2300 Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 1 The Foundations: Logic, Sets,
Chapter 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs BY: MISS FARAH ADIBAH ADNAN IMK.
MAT 3749 Introduction to Analysis Section 1.3 Part I Countable Sets
Example Prove that: “IF 3n + 2 is odd, then n is odd” Proof by Contradiction: -p = 3n + 2 is odd, q = n is odd. -Assume that ~(p  q) is true OR -(p 
Functions Reading: Chapter 6 (94 – 107) from the text book 1.
Basic Structures: Functions Muhammad Arief download dari
CSE 2353 – October 1 st 2003 Functions. For Real Numbers F: R->R –f(x) = 7x + 5 –f(x) = sin(x)
Sets and Functions Contents  Set language  Basic knowledge on sets  Intervals  Functions (Mappings)
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 7 Functions Instructor: Hayk Melikyan Today we will review sections 7.1 and 7.2.
Agenda Week 10 Lecture coverage: –Functions –Types of Function –Composite function –Inverse of a function.
MAT 2720 Discrete Mathematics Section 3.1 Functions
CSC102 - Discrete Structures Functions
1 Functions CS 202 Epp section ??? Aaron Bloomfield.
FUNCTIONS COSC-1321 Discrete Structures 1. Function. Definition Let X and Y be sets. A function f from X to Y is a relation from X to Y with the property.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
Functions CSRU1400 Spring 2008Ellen Zhang 1 CISC1400, Fall 2010 Ellen Zhang.
Discrete Mathematics Lecture # 19 Inverse of Functions.
 If f is a one-to-one function with domain D and range R, then the inverse function of f, denoted f -1, is the function with domain R and range D defined.
1 Lecture 5 Functions. 2 Functions in real applications Curve of a bridge can be described by a function Converting Celsius to Fahrenheit.
Section 2.3. Section Summary  Definition of a Function. o Domain, Cdomain o Image, Preimage  One-to-one (Injection), onto (Surjection), Bijection 
FUNCTIONS.
Discrete Mathematics Functions
Russell’s Paradox Is W in W? In words, W is the set that contains all the sets that don’t contain themselves. If W is in W, then W contains itself. But.
Functions Goals Introduce the concept of function
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
Relation and function.
Function Hubert Chan (Chapter 2.1, 2.2) [O1 Abstract Concepts]
Discrete Math (2) Haiming Chen Associate Professor, PhD
CS100: Discrete structures
Functions CS 202 Epp section 7.1.
Functions.
Activity 2.8 Study Time.
Ch 5 Functions Chapter 5: Functions
Functions Rosen 6th ed., §2.3.
Functions Rosen 2.3, 2.5 f( ) = A B Lecture 5: Oct 1, 2.
Presentation transcript:

Functions Lecture 12 A B f( ) =

Functions function, f, from set A to set B associates an element, with an element The domain of f is A. The codomain of f is B. For every input there is exactly one output.

Functions

f(S) = |S| f(string) = length(string) f(student) = student-ID f(x) = is-prime(x)

≤ 1 arrow in A B f( ) = Injections (one-to-one) is an injection iff every element of B is f of at most 1 thing |A| ≤ |B|

Surjections (Onto) A B  1 arrow in is a surjection iff every element of B is f of something f( ) = |A| ≥ |B|

Bijections A B is a bijection iff it is surjection and injection. f( ) = exactly one arrow in |A| = |B|

Functions a. One-to-one,b. Onto,c. One-to-one,d. neitherd. Not a Not ontonot one-to-one and ontofunction a1aa1a1 1 b2b1b2b2a2b2b1b2b2a2 c3c2c3c3b3c3c2c3c3b3 4d3d4d4c44d3d4d4c4 8

FunctionDomainCodomainInjective?Subjective?Bijective? f(x)=sin(x)Real f(x)=2 x RealPositive real f(x)=x 2 RealPositive real Reverse string Bit strings of length n In-Class Exercises

Inverse Sets A B Given an element y in B, the inverse set of y := f -1 (y) = {x in A | f(x) = y}.

Inverse Function A B f( ) = exactly one arrow in Informally, an inverse function f -1 is to “undo” the operation of function f. There is an inverse function f -1 for f if and only if f is a bijection.

Composition of Functions Two functions f:X->Y’, g:Y->Z so that Y’ is a subset of Y, then the composition of f and g is the function g 。 f: X->Z, where g 。 f(x) = g(f(x)). X Y Z Y’

Function fFunction gInjective?Subjective?Bijective? f:X->Y f subjective g:Y->Z g injective f:X->Y f subjective g:Y->Z g subjective f:X->Y f injective g:Y->Z g subjective f:X->Y f bijective g:Y->Z g bijective f:X->YF -1 :Y->X In-Class Exercises