SlideShare a Scribd company logo
1 of 4
BASIC CONCEPT OF RELATIONS
Objectives:
At the end of the lessons, students are expected/should be able to;
1. Determine the different basic set identities.
2. Identify the different ways of proving set identities.
3. Show the step by step procedure in proving statements using basic set
identities.
If we want to describe a relationship between elements of two sets A and B, we can
use ordered pairs with their first element taken from A and their second element
taken from B.
Since this is a relation between two sets, it is called a binary relation.
Definition: Let A and B be sets. A binary relation from A to B is a subset of AB.
In other words, for a binary relation R we have
R  AB. We use the notation aRb to denote that (a, b)R and aRb to denote that
(a, b)R.
When (a, b) belongs to R, a is said to be related to b by R.
Example: Let P be a set of people, C be a set of cars, and D be the relation
describing which person drives which car(s).
P = {Carl, Suzanne, Peter, Carla},
C = {Mercedes, BMW, tricycle}
D = {(Carl, Mercedes), (Suzanne, Mercedes),
(Suzanne, BMW), (Peter, tricycle)}
This means that Carl drives a Mercedes, Suzanne drives a Mercedes and a BMW,
Peter drives a tricycle, and Carla does not drive any of these vehicles.
Functions as Relations
You might remember that a function f from a set A to a set B assigns a unique
element of B to each element of A.
The graph of f is the set of ordered pairs (a, b) such that b = f(a).
Since the graph of f is a subset of AB, it is a relation from A to B.
Moreover, for each element a of A, there is exactly one ordered pair in the graph that
has a as its first element.
Conversely, if R is a relation from A to B such that every element in A is the first
element of exactly one ordered pair of R, then a function can be defined with R as its
graph.
This is done by assigning to an element aA the unique element bB such that (a,
b)R.
Relations on a Set
Definition: A relation on the set A is a relation from A to A.
In other words, a relation on the set A is a subset of AA.
Example: Let A = {1, 2, 3, 4}. Which ordered pairs are in the relation R = {(a, b) | a <
b}?
Solution: R = {(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)}
R 1 2 3 4
1 x x x
2 x x
3 x
4
How many different relations can we define on a set A with n elements?
A relation on a set A is a subset of AA.
How many elements are in AA ?
There are n2 elements in AA, so how many subsets (= relations on A) does AA
have?
The number of subsets that we can form out of a set with m elements is 2m.
Therefore, 2n^2 subsets can be formed out of AA.
Answer: We can define 2n^2 different relations on A.
Let A={a1, a2, ..ak} and B={b1,b2,..bm}.
The Cartesian product A x B is defined by a set of pairs {(a1 b1), (a1, b2), … (a1, bm),
…, (ak,bm)}.
Cartesian product defines a product set, or a set of all ordered arrangements of
elements in sets in the Cartesian product
Binary Relation
Definition: Let A and B be two sets. A binary relation from A to B is a subset of a
Cartesian product A x B.
Let R  A x B means R is a set of ordered pairs of the form (a,b) where a  A and b
 B.
We use the notation a R b to denote (a,b)  R and a R b to denote (a,b)  R. If a R
b, we say a is related to b by R.
Example: Let A={a,b,c} and B={1,2,3}.
Is R={(a,1),(b,2),(c,2)} a relation from A to B? Yes.
Is Q={(1,a),(2,b)} a relation from A to B? No.
Is P={(a,a),(b,c),(b,a)} a relation from A to A? Yes
Properties of Relations
Definitions:
A relation R on a set A is called symmetric if (b, a)R
whenever (a, b)R for all a, bA.
A relation R on a set A is called antisymmetric if a = b
whenever (a, b)R and (b, a)R.
A relation R on a set A is called asymmetric if (a, b)R
implies that (b, a)R for all a, bA.
Example:
For the following relations on {1, 2, 3, 4}.
1. R = {(1,1),(1,2),(2,1),(3,3),(4,4)} symmetric
2. R = {(1,1)} symmetric & antisymmetric
3. R = {(1,3),(3,2),(2,1)} antisymmetric & asymmetric
4. R = {(4,4),(3,3),(1,4)} asymmetric
Definition: A relation R on a set A is called transitive if whenever (a, b)R and
(b, c)R, then (a, c)R for a, b, cA.
Example:
For the following relations on {1, 2, 3, 4}.
1. R = {(1, 1), (1, 2), (2, 2), (2, 1), (3, 3)} Transitive
2. R = {(1, 3), (3, 2), (2, 1)} Not Transitive
3. R = {(2, 4), (4, 3), (2, 3), (4, 1)} Not Transitive
Definition (reflexive relation) : A relation R on a set A is called reflexive if (a,a)  R
for every element a  A.
Example 1: Assume relation R ={(a b), if a |b} on A = {1,2,3,4} , Is R reflexive?
R = {(1,1), (1,2), (1,3), (1,4), (2,2), (2,4), (3,3), (4,4)}
Answer: Yes. (1,1), (2,2), (3,3), and (4,4)  A.

More Related Content

What's hot

operations on sets
operations on setsoperations on sets
operations on setsJuhi Kumari
 
Discrete-Chapter 08 Relations
Discrete-Chapter 08 RelationsDiscrete-Chapter 08 Relations
Discrete-Chapter 08 RelationsWongyos Keardsri
 
sets and venn diagrams
sets and venn diagramssets and venn diagrams
sets and venn diagramsShahmir Ali
 
Relations digraphs
Relations  digraphsRelations  digraphs
Relations digraphsIIUM
 
2.7 prove angle pair relationships
2.7 prove angle pair relationships2.7 prove angle pair relationships
2.7 prove angle pair relationshipsdetwilerr
 
How to Prove and Apply De Morgan's Laws
How to Prove and Apply De Morgan's LawsHow to Prove and Apply De Morgan's Laws
How to Prove and Apply De Morgan's LawsDon Sevcik
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relationsnszakir
 
MIT Math Syllabus 10-3 Lesson 4: Rational exponents and radicals
MIT Math Syllabus 10-3 Lesson 4: Rational exponents and radicalsMIT Math Syllabus 10-3 Lesson 4: Rational exponents and radicals
MIT Math Syllabus 10-3 Lesson 4: Rational exponents and radicalsLawrence De Vera
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Himanshu Dua
 
Lattices AND Hasse Diagrams
Lattices AND Hasse DiagramsLattices AND Hasse Diagrams
Lattices AND Hasse DiagramsDebarati Das
 
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...Abu Bakar Soomro
 

What's hot (19)

operations on sets
operations on setsoperations on sets
operations on sets
 
Discrete-Chapter 08 Relations
Discrete-Chapter 08 RelationsDiscrete-Chapter 08 Relations
Discrete-Chapter 08 Relations
 
Sets and relations
Sets and relationsSets and relations
Sets and relations
 
Per5 relasi
Per5 relasiPer5 relasi
Per5 relasi
 
Drbmn relations
Drbmn relationsDrbmn relations
Drbmn relations
 
Sets Class XI Chapter 1
Sets Class XI Chapter 1Sets Class XI Chapter 1
Sets Class XI Chapter 1
 
sets and venn diagrams
sets and venn diagramssets and venn diagrams
sets and venn diagrams
 
Sadat sumon
Sadat sumonSadat sumon
Sadat sumon
 
Set operations
Set operationsSet operations
Set operations
 
Relations digraphs
Relations  digraphsRelations  digraphs
Relations digraphs
 
2.7 prove angle pair relationships
2.7 prove angle pair relationships2.7 prove angle pair relationships
2.7 prove angle pair relationships
 
How to Prove and Apply De Morgan's Laws
How to Prove and Apply De Morgan's LawsHow to Prove and Apply De Morgan's Laws
How to Prove and Apply De Morgan's Laws
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
 
MIT Math Syllabus 10-3 Lesson 4: Rational exponents and radicals
MIT Math Syllabus 10-3 Lesson 4: Rational exponents and radicalsMIT Math Syllabus 10-3 Lesson 4: Rational exponents and radicals
MIT Math Syllabus 10-3 Lesson 4: Rational exponents and radicals
 
2.2 Set Operations
2.2 Set Operations2.2 Set Operations
2.2 Set Operations
 
Set Operations
Set OperationsSet Operations
Set Operations
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Lattices AND Hasse Diagrams
Lattices AND Hasse DiagramsLattices AND Hasse Diagrams
Lattices AND Hasse Diagrams
 
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
Set Operations Topic Including Union , Intersection, Disjoint etc De Morgans ...
 

Similar to Week 5 ( basic concept of relation )

Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Himanshu Dua
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Himanshu Dua
 
Relational Algebra (1).pptx
Relational Algebra (1).pptxRelational Algebra (1).pptx
Relational Algebra (1).pptxSarowarSuman
 
dm_13_RelationsAndTheirProperties (1).pptx
dm_13_RelationsAndTheirProperties (1).pptxdm_13_RelationsAndTheirProperties (1).pptx
dm_13_RelationsAndTheirProperties (1).pptxRockyIslam5
 
dm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdfdm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdfSanjanaAdri
 
CMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their PropertiesCMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their Propertiesallyn joy calcaben
 
basics of autometa theory for beginner .
basics of autometa theory for beginner .basics of autometa theory for beginner .
basics of autometa theory for beginner .NivaTripathy1
 
Relations and function class xii copy
Relations and function class xii   copyRelations and function class xii   copy
Relations and function class xii copycsanjeive
 
Power point for Theory of computation and detail
Power point for Theory of computation and detailPower point for Theory of computation and detail
Power point for Theory of computation and detailNivaTripathy1
 
JEE+Crash+course+_+Phase+I+_+Session+1+_+Sets+and++Relations+&+Functions+_+7t...
JEE+Crash+course+_+Phase+I+_+Session+1+_+Sets+and++Relations+&+Functions+_+7t...JEE+Crash+course+_+Phase+I+_+Session+1+_+Sets+and++Relations+&+Functions+_+7t...
JEE+Crash+course+_+Phase+I+_+Session+1+_+Sets+and++Relations+&+Functions+_+7t...7anantsharma7
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfMaryAnnBatac1
 
Relation in Discrete Mathematics
Relation in Discrete Mathematics Relation in Discrete Mathematics
Relation in Discrete Mathematics NANDINI SHARMA
 
Relation and function
Relation and functionRelation and function
Relation and functionRoyan786
 

Similar to Week 5 ( basic concept of relation ) (20)

Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Relations
RelationsRelations
Relations
 
Relational Algebra (1).pptx
Relational Algebra (1).pptxRelational Algebra (1).pptx
Relational Algebra (1).pptx
 
dm_13_RelationsAndTheirProperties (1).pptx
dm_13_RelationsAndTheirProperties (1).pptxdm_13_RelationsAndTheirProperties (1).pptx
dm_13_RelationsAndTheirProperties (1).pptx
 
dm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdfdm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdf
 
Relation and function_xii
Relation and function_xiiRelation and function_xii
Relation and function_xii
 
Relations
RelationsRelations
Relations
 
Relations in Discrete Math
Relations in Discrete MathRelations in Discrete Math
Relations in Discrete Math
 
CMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their PropertiesCMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their Properties
 
basics of autometa theory for beginner .
basics of autometa theory for beginner .basics of autometa theory for beginner .
basics of autometa theory for beginner .
 
G-1-SETS.pdf
G-1-SETS.pdfG-1-SETS.pdf
G-1-SETS.pdf
 
Set theory
Set theorySet theory
Set theory
 
Lemh101
Lemh101Lemh101
Lemh101
 
Relations and function class xii copy
Relations and function class xii   copyRelations and function class xii   copy
Relations and function class xii copy
 
Power point for Theory of computation and detail
Power point for Theory of computation and detailPower point for Theory of computation and detail
Power point for Theory of computation and detail
 
JEE+Crash+course+_+Phase+I+_+Session+1+_+Sets+and++Relations+&+Functions+_+7t...
JEE+Crash+course+_+Phase+I+_+Session+1+_+Sets+and++Relations+&+Functions+_+7t...JEE+Crash+course+_+Phase+I+_+Session+1+_+Sets+and++Relations+&+Functions+_+7t...
JEE+Crash+course+_+Phase+I+_+Session+1+_+Sets+and++Relations+&+Functions+_+7t...
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdf
 
Relation in Discrete Mathematics
Relation in Discrete Mathematics Relation in Discrete Mathematics
Relation in Discrete Mathematics
 
Relation and function
Relation and functionRelation and function
Relation and function
 

Recently uploaded

MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 

Week 5 ( basic concept of relation )

  • 1. BASIC CONCEPT OF RELATIONS Objectives: At the end of the lessons, students are expected/should be able to; 1. Determine the different basic set identities. 2. Identify the different ways of proving set identities. 3. Show the step by step procedure in proving statements using basic set identities. If we want to describe a relationship between elements of two sets A and B, we can use ordered pairs with their first element taken from A and their second element taken from B. Since this is a relation between two sets, it is called a binary relation. Definition: Let A and B be sets. A binary relation from A to B is a subset of AB. In other words, for a binary relation R we have R  AB. We use the notation aRb to denote that (a, b)R and aRb to denote that (a, b)R. When (a, b) belongs to R, a is said to be related to b by R. Example: Let P be a set of people, C be a set of cars, and D be the relation describing which person drives which car(s). P = {Carl, Suzanne, Peter, Carla}, C = {Mercedes, BMW, tricycle} D = {(Carl, Mercedes), (Suzanne, Mercedes), (Suzanne, BMW), (Peter, tricycle)} This means that Carl drives a Mercedes, Suzanne drives a Mercedes and a BMW, Peter drives a tricycle, and Carla does not drive any of these vehicles. Functions as Relations You might remember that a function f from a set A to a set B assigns a unique element of B to each element of A. The graph of f is the set of ordered pairs (a, b) such that b = f(a). Since the graph of f is a subset of AB, it is a relation from A to B. Moreover, for each element a of A, there is exactly one ordered pair in the graph that has a as its first element. Conversely, if R is a relation from A to B such that every element in A is the first element of exactly one ordered pair of R, then a function can be defined with R as its graph.
  • 2. This is done by assigning to an element aA the unique element bB such that (a, b)R. Relations on a Set Definition: A relation on the set A is a relation from A to A. In other words, a relation on the set A is a subset of AA. Example: Let A = {1, 2, 3, 4}. Which ordered pairs are in the relation R = {(a, b) | a < b}? Solution: R = {(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)} R 1 2 3 4 1 x x x 2 x x 3 x 4 How many different relations can we define on a set A with n elements? A relation on a set A is a subset of AA. How many elements are in AA ? There are n2 elements in AA, so how many subsets (= relations on A) does AA have? The number of subsets that we can form out of a set with m elements is 2m. Therefore, 2n^2 subsets can be formed out of AA. Answer: We can define 2n^2 different relations on A. Let A={a1, a2, ..ak} and B={b1,b2,..bm}. The Cartesian product A x B is defined by a set of pairs {(a1 b1), (a1, b2), … (a1, bm), …, (ak,bm)}. Cartesian product defines a product set, or a set of all ordered arrangements of elements in sets in the Cartesian product Binary Relation Definition: Let A and B be two sets. A binary relation from A to B is a subset of a Cartesian product A x B. Let R  A x B means R is a set of ordered pairs of the form (a,b) where a  A and b  B.
  • 3. We use the notation a R b to denote (a,b)  R and a R b to denote (a,b)  R. If a R b, we say a is related to b by R. Example: Let A={a,b,c} and B={1,2,3}. Is R={(a,1),(b,2),(c,2)} a relation from A to B? Yes. Is Q={(1,a),(2,b)} a relation from A to B? No. Is P={(a,a),(b,c),(b,a)} a relation from A to A? Yes Properties of Relations Definitions: A relation R on a set A is called symmetric if (b, a)R whenever (a, b)R for all a, bA. A relation R on a set A is called antisymmetric if a = b whenever (a, b)R and (b, a)R. A relation R on a set A is called asymmetric if (a, b)R implies that (b, a)R for all a, bA. Example: For the following relations on {1, 2, 3, 4}. 1. R = {(1,1),(1,2),(2,1),(3,3),(4,4)} symmetric 2. R = {(1,1)} symmetric & antisymmetric 3. R = {(1,3),(3,2),(2,1)} antisymmetric & asymmetric 4. R = {(4,4),(3,3),(1,4)} asymmetric Definition: A relation R on a set A is called transitive if whenever (a, b)R and (b, c)R, then (a, c)R for a, b, cA. Example: For the following relations on {1, 2, 3, 4}. 1. R = {(1, 1), (1, 2), (2, 2), (2, 1), (3, 3)} Transitive 2. R = {(1, 3), (3, 2), (2, 1)} Not Transitive 3. R = {(2, 4), (4, 3), (2, 3), (4, 1)} Not Transitive
  • 4. Definition (reflexive relation) : A relation R on a set A is called reflexive if (a,a)  R for every element a  A. Example 1: Assume relation R ={(a b), if a |b} on A = {1,2,3,4} , Is R reflexive? R = {(1,1), (1,2), (1,3), (1,4), (2,2), (2,4), (3,3), (4,4)} Answer: Yes. (1,1), (2,2), (3,3), and (4,4)  A.