Cartesian product Given two sets A, B we define their Cartesian product is the set of all the pairs whose first element is in A and second in B. Note that.

Slides:



Advertisements
Similar presentations
Functions Reading: Epp Chp 7.1, 7.2, 7.4
Advertisements

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.
Equivalence Relations
The Engineering Design of Systems: Models and Methods
Relations. Binary Relations a relation between elements of two sets is a subset of their Cartesian product (of ordered pairs). Note the di ff erence between.
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,
1 Section 7.1 Relations and their properties. 2 Binary relation A binary relation is a set of ordered pairs that expresses a relationship between elements.
Logics for Data and Knowledge Representation Introduction to Algebra Chiara Ghidini, Luciano Serafini, Fausto Giunchiglia and Vincenzo Maltese.
Relation. Relations Recall the definition of the Cartesian (Cross) Product: The Cartesian Product of sets A and B, A x B, is the set A x B = { : x  A.
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 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFunctions.
Relations Relations between sets are like functions, but with a more general definition (given later). presentations: a set, a binary matrix, a graph…
Functions1 Elementary Discrete Mathematics Jim Skon.
Chapter 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs BY: MISS FARAH ADIBAH ADNAN IMK.
Chapter 9 Functions Let A and B be nonempty sets. A function f from A to B, written f: A  B is a relation from A to B with the property that every element.
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 Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 1 Properties of Relations Definition: A relation R on a set A is called transitive.
Relations, Functions, and Countability
Language: Set of Strings
MAT 2720 Discrete Mathematics Section 3.1 Functions
CHAPTER 3 FUZZY RELATION and COMPOSITION. 3.1 Crisp relation Product set Definition (Product set) Let A and B be two non-empty sets, the product.
Mathematical Preliminaries
Equivalence Relations. Partial Ordering Relations 1.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Unit II Discrete Structures Relations and Functions SE (Comp.Engg.)
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.
MAT 2720 Discrete Mathematics Section 3.3 Relations
Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and B = {a,b} {( 0, a), (
Discrete Mathematics 3. MATRICES, RELATIONS, AND FUNCTIONS Lecture 6 Dr.-Ing. Erwin Sitompul
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Section 2.3. Section Summary  Definition of a Function. o Domain, Cdomain o Image, Preimage  One-to-one (Injection), onto (Surjection), Bijection 
Week 8 - Monday.  What did we talk about last time?  Properties of functions  One-to-one  Onto  Inverses  Cardinality.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
“It is impossible to define every concept.” For example a “set” can not be defined. But Here are a list of things we shall simply assume about sets. A.
Functions Goals Introduce the concept of function
Citra Noviyasari, S.Si, MT
Functions Section 2.3.
Relations, Functions, and Matrices
Atmiya Institute of Technology & Science
Applied Discrete Mathematics Week 10: Relations
Chapter 2 Sets and Functions.
Relation and function.
Chapter 3 Relation and Function Homework 4 For each of the following relations on set A = { 1,2,3,4 }, check each of them whether they are reflexive, irreflexive,
Applied Discrete Mathematics Week 9: Equivalence Relations
Functions Section 2.3.
CS201: Data Structures and Discrete Mathematics I
Discrete Math (2) Haiming Chen Associate Professor, PhD
Relations and Their Properties
8.1 Relations and Their Properties
Equivalence Relations
8.1 Relations and Their Properties
Sets. EXAMPLE 1 The set O of odd positive integers less than 10 can be expressed by O = { l, 3, 5, 7, 9}. * This way of describing a set is known as.
Mathematical Background 1
Mathematical Background 1
Relations and their Properties
Introduction to Relations and Functions
Ch 5 Functions Chapter 5: Functions
Mathematical Background
Discrete Math (2) Haiming Chen Associate Professor, PhD
9.5 Equivalence Relations
Equivalence Relations
Functions.
Functions Section 2.3.
REVISION Relation. REVISION Relation Introduction to Relations and Functions.
Agenda Lecture Content: Relations (Relasi)
Presentation transcript:

Cartesian product Given two sets A, B we define their Cartesian product is the set of all the pairs whose first element is in A and second in B. Note that (a,b) and (b,a) are different pairs.

Correspondence For two sets A, B a correspondence  between A and B is a subset of the Cartesian product of A and B, formally We say that two elements are in correspondence  We also write a  b. if B A

Examples of correspondences P is the set of all the products a company manufactures. M is the set of all the materials the company uses for manufacturing We define product p and material m to be in correspondence  if material m is used by the company to manufacture product p. Let E be the set of all chemical elements. We define the correspondence  between materials M and chemical elements E: a material m is in correspondence with an element e if m contains e.

Composition of correspondences  –correspondence between A and B  – correspondence between B and C. is a correspondence beween A and C A B C b a c

Example P is the set of all the products a company manufactures. M is the set of all the materials the company uses for manufacturing Product p and material m are in correspondence  if material m is used by the company to manufacture product p. E is the set of all chemical elements. Material m is in correspondence  with element e if m contains e. The composition may be described as the set of all the pairs (p,e) of materials and elements such that the product p contains the element e.

Relation Correspondence  between two identical copies of a set A is called a relation on A.

Example Let Z be a set of all integers, that is, then the relation of divisibility | is defined as: if a divides b.

Relations with special properties A relation is called reflexive, if transitive, if symmetric, if antisymmetric, if

Example - order Let Z be the set of all integers and let a  b be the relation "a is less than or equal to b" defined in the usual way. Then  is reflexive, transitive, and antisymmetric. Indeed, for any z1, z2, z3, we have A relation on A that is reflexive, transitive, and antisymmetric is called a partial order on A usually denoted . If, moreover, we have a  b for any a,b in A,  is called an order on A.

Example - equivalence Let A be a set and a system of subsets of A be given such that and (we say that the sets are pairwise disjunct). Such a system of subsets is called a partition of A. Define a relation  on A as follows: It is easy to prove that  is reflexive, transitive, and symmetric Any relation  on A that is reflexive, transitive, and symmetric is called an equivalence on A

Mapping Let A, B be sets and  a correspondence between A and B. If  has the following properties: we say that  is a mapping of A into B b a c

Special notation for mappings: Instead of we write Instead of we write We also say that  takes or sends a to b.

Domain, range, image: If is a mapping, then the set A is called the domain of . The set R() defined as is called the range of . If then we say that b is the image of a

One-to-one mapping (injection) A mapping is called one-to-one or an injection if a b

"Onto" mapping (surjection) We say that a mapping maps A onto (rather than into) B if Such a mapping is sometimes called surjection.

Bijection, cardinality A one-to-one mapping  of A onto B is sometimes called a bijection If, for two sets A, B, a bijection exists, we say that A and B have the same cardinality