Relations. Ipoh Kota Bharu Alor Star Seremban Pasir Mas Perak Kelantan Kedah Neg. Sembilan citiesstates isin.

Slides:



Advertisements
Similar presentations
Relations Functions Definition: Definition:
Advertisements

Functions.
Operations with Functions.
Domain Restriction on Relation domain restriction operator,, restricts a relation to only those members whose domain is in a specified set. domain restriction.
12 April 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Formal.
The Engineering Design of Systems: Models and Methods
Chapter 2 Functions and Linear Functions
Chapter 5 Section 1 Sets Basics Set –Definition: Collection of objects –Specified by listing the elements of the set inside a pair of braces. –Denoted.
Relations. Ipoh Kota Bharu Alor Star Seremban Pasir Mas Perak Kelantan Kedah Neg. Sembilan citiesstates isin.
Sequences. What is sequence? A sequence is an ordered collection of objects. We use sequences to model collections in which order or multiplicity is important.
Functions Goals Introduce the concept of function Introduce injective, surjective, & bijective functions.
Operations on Functions Composite Function:Combining a function within another function. Written as follows: Operations Notation: Sum: Difference: Product:
Functions. A function between two sets is a relation between those sets that has a special property, namely that each member of the from-set is related.
Linear Functions.
Exercise Find the opposite (additive inverse) of 4.3. – 4.3.
The Z Notation: relations and functions Compiled By Tariq R. Soomro, Ph.D. Reference: Text Book Week-7.
12 April 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Formal.
§ 2.1 Introduction to Functions and sets from 1.1.
Foundations of Discrete Mathematics Chapter 3 By Dr. Dalia M. Gil, Ph.D.
Do Now: Plot the following coordinates in a coordinate plane: HW: Page ,68,69,70.
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.
SECTION 1.5: COMBINATIONS OF FUNCTIONS. TARGET 1C: EVALUATE AND PERFORM OPERATIONS WITH FUNCTION NOTATION.
FUNCTIONS.
Chapter 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs BY: MISS FARAH ADIBAH ADNAN IMK.
Functions Definition: A relation ‘ f ’ from set X to set Y is a function if each element in set X is mapped to exactly one element in set Y
Agenda Week 10 Lecture coverage: –Functions –Types of Function –Composite function –Inverse of a function.
MAT 2720 Discrete Mathematics Section 3.1 Functions
Do Now Find the domain & range:. Answers to Homework
Chapter 8 Equivalence Relations Let A and B be two sets. A relation R from A to B is a subset of AXB. That is, R is a set of ordered pairs, where the first.
What is Calculus? To a Roman in the days of the empire, a “calculus” was a pebble used in counting and gambling. Centuries later, “calculare” came to mean.
Functions (Mappings). Definitions A function (or mapping)  from a set A to a set B is a rule that assigns to each element a of A exactly one element.
MUSIC CASTLE LET’S GO INSIDE. HERE ARE SOME MUSICAL INSTRUMENTS piano violin drum cello trumpet saxophone guitar.
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.
Review Functions. Function A function is a special type of relation in which each element of the domain is paired with exactly one element of the range.
1.6 Inverse Functions. Objectives Find inverse functions informally and verify that two functions are inverse functions of each other. Determine from.
“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.
Objectives: 1)Students will be able to find the inverse of a function or relation. 2)Students will be able to determine whether two functions or relations.
Notes:Relations and Functions Section 1-6 Student Objective: The students will be able to identify relations and functions and evaluate functions. 1.Definitions:
Functions Goals Introduce the concept of function
Quadratic and Square Root Inverse Relationships with Restrictions
Relations and Functions
Chapter 2 Sets and Functions.
6.1 One-to-One Functions; Inverse Function
One-to-One Functions and Inverse Functions
Introduction to Functions
Objectives The student will be able to:
EXPONENTIAL FUNCTIONS: DIFFERENTIATION AND INTEGRATION
8.1 Relations and Their Properties
Chapter 1 – Linear Relations and Functions
Learning Target 4.3 I can identify domain and range of relations and functions SOL: A.7bf Designed by Skip Tyler, Varina High School.
4.1 One-to-One Functions; Inverse Function
Functions.
6.1 One-to-One Functions; Inverse Function
Aim: What is the function notation?
Relations - Exercises.
Composition OF Functions.
Relations for functions.
Composition OF Functions.
Objectives The student will be able to:
{(1, 1), (2, 4), (3, 9), (4, 16)} one-to-one
Relations, Domain and Range
Objectives The student will be able to:
Exercise Give the domain and range of the following relation.
Functions.
Chapter 2 Functions and Linear Functions
Objectives The student will be able to:
Combinations of Functions
REVISION Relation. REVISION Relation Introduction to Relations and Functions.
Math 0332 Subsets Name ________________________
Objectives The student will be able to:
Presentation transcript:

Relations

Ipoh Kota Bharu Alor Star Seremban Pasir Mas Perak Kelantan Kedah Neg. Sembilan citiesstates isin

Relations Defining isin relation isin == {(Ipoh,Perak), (Kota Bharu, Kelantan), (Alor Star, Kedah), (Seremban, Neg Sembilan), (Pasir Mas, Kelantan)} From the above we that (Ipoh,Perak)  isin but (Ipoh, Kelantan)  isin we can deduce that, the type of isin is ℙ( cities  states)

Notation for Relation

Examples

Declaring Relations Examples isin : cities  states Another example let [Author] and [Title] are given sets, then we will have wrote : ℙ (Author  Title) wrote : Author  Title

Representing pairs that make up a relation (x,y), we can use maplet notation x ↦ y Using maplet notation for isin relation {Ipoh ↦ Perak, Kota Bharu ↦ Kelantan, …} Ipoh ↦ Perak  isin {Ipoh ↦ Perak, Kota Bharu ↦ Kelantan}  isin

Domains and Ranges Domain of a relation is the set of first elements of the pairs (source) in the relation suppose R : X  Y then dom R = { x : X |  y : Y x ↦ y  R} Range of a relation is the set of second elements of the pairs (target) in the relation ran R = {y : Y |  x : X x ↦ y  R}

Example

Exercise Assume that the definition of two relations involving the sets People, and Instruments as follows: plays == {Ash ↦ piano, William ↦ guitar, David ↦ violin, Huw ↦ trumpet, Alice ↦ flute, Alice ↦ piano, Kate ↦ piano} what are the domain and range of plays?

Restriction Domain restriction getting attention to those pairs in relation whose first members are members of some other set of interest Example: to confine the relation wrote to those pair whose first members are in the set female --- female ⊳ wrote An abbreviation of either of the following { a: female; t : Title | a wrote t a ↦ t } (female  Title)  wrote

Restriction Range restriction getting attention to those pairs in relation whose second members are members of some other set of interest Example: restrict on second members as set of novel which is a set of titles --- wrote ▷ novel An abbreviation of either of the following { a: Author; t : Novel | a wrote t a ↦ t } (Author  Novel)  wrote

Subtraction Domain subtraction Getting attention to those pair in a relation whose first members are not members of some other set of interest Example: denote set of ordered pairs in wrote whose first members are not in female female wrote

Subtraction Range subtraction Getting attention to those pair in a relation whose second members are not members of some other set of interest Example: denote set of ordered pairs in wrote whose second members are not in novel wrote novel

Inverse

Relational Image Given any set of domain-type elements of a relation, we can get the subset of range elements to which they are related

Relational Composition

Given two relations such that the range type of the first is the same as the domain type of the second Able to put ‘end-to-end’ to form a single relation containing all pairs joined by some common elements Example: wrote : Author  Title issued-by : Title  Publisher composition published-by : wrote ; issued-by