SlideShare a Scribd company logo
2
Most read
4
Most read
17
Most read
RELATIONS
PearlRoseCajenta
REPORTER
What is a 'relation'?
In math, a relation is just a set of
ordered pairs.
- is a pair of numbers used to
locate a point on a coordinate plane;
the first number tells how far to move
horizontally and the second number
tells how far to move vertically.
*OrderedPair
*Set
- is a collection.
Note:
{ } are the symbol for "set“
Some Examples of Relations include:
{ (0,1) , (55,22), (3,-50) }
{ (0, 1) , (5, 2), (-3, 9) }
{ (-1,7) , (1, 7), (33, 7), (32, 7) }
Given a sets A and B, a binary relation from A to
B is a set of ordered pairs (a,b), whose entries a ϵ
A and b ϵ B. Each orderedpair (a,b) in a
relation is a memberof the Cartesian set A x
B. Hence,arelation from A to B is a
subset of A x B.
Clickfor some Examples
Domain and Range of a
‘Relation’
The Domain:
Is the set of all the first numbers of the ordered
pairs.In other words, the domain is all of the x-
values.
The Range:
Is the set of the second numbers in each pair,
or the y-values
Example 1:
of the Domain and Range
RELATION {(0,1) , (3,22) , (90, 34)}
Domain : 0 3 90
Range: 1 22 34
Example 2:
Domain and rangeof a relation
RELATION {(2,-5) , (4,31) , (11, -11), (-
21,3)}
Domain: 2 4 11 -21
Range: -5 31 -11 3
Example3
What is the domain and range of the followingrelation?
ANSWER:
Arrow Diagram
-is use by describingthe
relationfrom A into B sets.
Example:
Let A = { 1, 2, 3} and B = { 6, 7, 8, 9}. We defined the
relationR by the set of orderedpairs
R= {( 1, 6),( 1, 7),( 2, 6),( 2, 8),( 2, 9),( 3, 9)}
1
2
3
6
7
8
9
DirectedGraph
Is a set of vertices and a collection
of directed edges that each
connects an ordered pair of
vertices.
Let A = {1,2,3}. Let R be the relationdefined by the
followingsets.
R= { (1,1), (1,2), (2,1),(3,1), (3,3)}
Let us construct the digraphof the relation.
3
1 2
NEXT
Relations in Discrete Math
Examples
1.We can take the set A of students and the set
B of programs. We Can relate the elements of A
to the elements of B by defining that an element a
of A is related to an element b of B if a takes b.
A= { Beth, Mita, Recca, Jean}
B={Computer Science, Information Technology,
Information Science, Civil Engineering}
Answer:
R={(Beth,ComputerScience),(Mita,InformationTechn
ology),(Recca,InformationScience),(Jean,Civil
Engeneering)
More Examples
Let A = {1,2,3,}, then each of the following is a
relation in A:
R1 ={(a,b)| a < b} = {(1,2),(1,3),(2,3)}
R2={(a,b)| a = b} = {(1,1),(2,2),(3,3)}
R3={(a,b)| a > b} = {(2,1),(3,1),(3,2)}
R4 ={(a,b)| a + b =4} = {(1,3),(2,2),(3,1)}
R5={(a,b)| b = 4a} = 0
R6={(1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),
(3,2),(3,3)}
R2 is called the identity relation. R5 is called trivial
relation or void relation or empty relation. The
universal relation on a set consist of all possible
ordered pairs of elements of a set, example is R6.
NEXT
Relations in Discrete Math
2. Let A = {1,2,3,4} and B = {u,v,w}, Let
R = {(1,u),(2,u),(3,v),(4,w)}
Then R is a subset of A x B so R is a relation from
A to B. Notice 1Ru but 3R u.
3.Let A = {1,2,3,4} and B = {1,2 ,3,4}, where R is a
relation from A to B defined by a|b, “a divides b,
(a,b) ϵ R. We see that
R = {(1,1),(1,2),(1,3),(1,4),(2,2),(2,4),(3,3),(4,4)}
NEXT
Let A={ 1, 3 } and B= { 2, 5 }. Then we
ask how elements in A are related to
elements in B via the inequality `` ''.
The answer is
1 2,1 5, 3 2, 3 5 .
R= { (1, 2), (1, 5), (3 ,5) } ,
NEXT
Let A ={ 1,2} and B={ 1,2,3} and define a binary
relation R from A to B by for any (x,y) AxB: (x,y)
R iff x-y is even
(a) Give R by its explicit elements.
(b) Is 1R1 ? Is 2R3 ? Is 1R3 ?
Solution
(a) For any (x,y) pair in AXB ={ (1,1), (1,2), (1,3),
(2,1), (2,2), (2,3) }, we must check if xRy or if x-y
is even. This is done in the following table
NEXT
(x,y) property of x-y conclusion
(1,1) 1-1 even (1,1) R
(1,2) 1-2 odd (1,2) R
(1,3) 1-3 even (1,3) R
(2,1) 2-1 odd (2,1) R
(2,2) 2-2 oven (2,2) R
(2,3) 2-3 odd (2,3) R
Hence R={ (1,1), (1,3), (2,2)}.
(b)
Yes. 1R1 since (1,1) R.
No. 2R3 since (2,3) R.
Yes. 1R3 since (1,3) R.
NEXT
Let A={1,2,3} and a binary relation E be defined by
(x,y) E iffx-y is even and x,y A. Then E={ (1,1),
(2,2), (3,3), (1,3), (3,1)} can be represented by the
following digraph
(2,2):
2-2=0 even, hence the loop at vertex labelled by 2
A.
(1,3):
1-3=-2 even, hence the arrow from vertex 1 to
vertex 3. >>>>>

More Related Content

PPT
Relations
PPTX
Relations
PPT
Partial-Orderings in Discrete Mathematics
PDF
Discrete maths questions
PPT
Properties of relations
PPTX
Discrete mathematic
PPTX
Relations and Its Applications
PPTX
Sets and relations
Relations
Relations
Partial-Orderings in Discrete Mathematics
Discrete maths questions
Properties of relations
Discrete mathematic
Relations and Its Applications
Sets and relations

What's hot (20)

PDF
Chapter 2: Relations
PPTX
Set Theory Presentation
PPT
Set in discrete mathematics
PPT
Set theory
PPTX
Sets PowerPoint Presentation
PPTX
Principle of mathematical induction
PPT
Final maths presentation on sets
PPTX
Sequences and Series
PPTX
Set theory
PPT
systems of linear equations & matrices
PDF
Relation matrix & graphs in relations
PPT
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
PPT
Trees
PPT
1. set theory
PPT
Set theory-ppt
PPTX
Unit 1 rules of inference
PPT
Linear transformation.ppt
PPT
Matrix basic operations
PPTX
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
PDF
Linear algebra-Basis & Dimension
Chapter 2: Relations
Set Theory Presentation
Set in discrete mathematics
Set theory
Sets PowerPoint Presentation
Principle of mathematical induction
Final maths presentation on sets
Sequences and Series
Set theory
systems of linear equations & matrices
Relation matrix & graphs in relations
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Trees
1. set theory
Set theory-ppt
Unit 1 rules of inference
Linear transformation.ppt
Matrix basic operations
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
Linear algebra-Basis & Dimension
Ad

Similar to Relations in Discrete Math (20)

DOC
Final relation1 m_tech(cse)
DOC
Final relation1 m_tech(cse)
DOC
Final relation1 m_tech(cse)
PDF
Lecture 3 (4).pdfbbbbbbbbbbbbbbbbbbbvvvvvvvvvvvvvvvvvvvvvvvvv
PDF
Lecture 3 (2).pdf,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
PPT
PPTX
dm_13_RelationsAndTheirProperties (1).pptx
PDF
dm_13_RelationsAndTheirProperties (1).pdf
PPTX
Key Guidelines for Low-Income Housing.ptx
PPT
inbound38351872686383732942924290993.ppt
PPSX
PPTX
realtion ppt for disteane maths for engg
PPTX
Presentation2 vijayan pillai
PPTX
Discrete Structures_Relations_Lec 1.pptx
PDF
4.1 Defining and visualizing binary relations
PPTX
Relational Algebra (1).pptx
DOCX
Week 5 ( basic concept of relation )
PPTX
CMSC 56 | Lecture 13: Relations and their Properties
PPTX
Binary Relation-1 ssssssssssssssssssssssss
PDF
Relations
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
Lecture 3 (4).pdfbbbbbbbbbbbbbbbbbbbvvvvvvvvvvvvvvvvvvvvvvvvv
Lecture 3 (2).pdf,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
dm_13_RelationsAndTheirProperties (1).pptx
dm_13_RelationsAndTheirProperties (1).pdf
Key Guidelines for Low-Income Housing.ptx
inbound38351872686383732942924290993.ppt
realtion ppt for disteane maths for engg
Presentation2 vijayan pillai
Discrete Structures_Relations_Lec 1.pptx
4.1 Defining and visualizing binary relations
Relational Algebra (1).pptx
Week 5 ( basic concept of relation )
CMSC 56 | Lecture 13: Relations and their Properties
Binary Relation-1 ssssssssssssssssssssssss
Relations
Ad

Recently uploaded (20)

PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PDF
Lecture1 pattern recognition............
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PDF
Foundation of Data Science unit number two notes
PDF
Business Analytics and business intelligence.pdf
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PDF
annual-report-2024-2025 original latest.
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
Introduction to Knowledge Engineering Part 1
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
IBA_Chapter_11_Slides_Final_Accessible.pptx
Lecture1 pattern recognition............
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
Clinical guidelines as a resource for EBP(1).pdf
Miokarditis (Inflamasi pada Otot Jantung)
Foundation of Data Science unit number two notes
Business Analytics and business intelligence.pdf
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx
annual-report-2024-2025 original latest.
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
Reliability_Chapter_ presentation 1221.5784
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Data_Analytics_and_PowerBI_Presentation.pptx

Relations in Discrete Math

  • 2. What is a 'relation'? In math, a relation is just a set of ordered pairs. - is a pair of numbers used to locate a point on a coordinate plane; the first number tells how far to move horizontally and the second number tells how far to move vertically. *OrderedPair *Set - is a collection.
  • 3. Note: { } are the symbol for "set“ Some Examples of Relations include: { (0,1) , (55,22), (3,-50) } { (0, 1) , (5, 2), (-3, 9) } { (-1,7) , (1, 7), (33, 7), (32, 7) }
  • 4. Given a sets A and B, a binary relation from A to B is a set of ordered pairs (a,b), whose entries a ϵ A and b ϵ B. Each orderedpair (a,b) in a relation is a memberof the Cartesian set A x B. Hence,arelation from A to B is a subset of A x B. Clickfor some Examples
  • 5. Domain and Range of a ‘Relation’ The Domain: Is the set of all the first numbers of the ordered pairs.In other words, the domain is all of the x- values. The Range: Is the set of the second numbers in each pair, or the y-values
  • 6. Example 1: of the Domain and Range RELATION {(0,1) , (3,22) , (90, 34)} Domain : 0 3 90 Range: 1 22 34
  • 7. Example 2: Domain and rangeof a relation RELATION {(2,-5) , (4,31) , (11, -11), (- 21,3)} Domain: 2 4 11 -21 Range: -5 31 -11 3
  • 8. Example3 What is the domain and range of the followingrelation? ANSWER:
  • 9. Arrow Diagram -is use by describingthe relationfrom A into B sets.
  • 10. Example: Let A = { 1, 2, 3} and B = { 6, 7, 8, 9}. We defined the relationR by the set of orderedpairs R= {( 1, 6),( 1, 7),( 2, 6),( 2, 8),( 2, 9),( 3, 9)} 1 2 3 6 7 8 9
  • 11. DirectedGraph Is a set of vertices and a collection of directed edges that each connects an ordered pair of vertices.
  • 12. Let A = {1,2,3}. Let R be the relationdefined by the followingsets. R= { (1,1), (1,2), (2,1),(3,1), (3,3)} Let us construct the digraphof the relation. 3 1 2 NEXT
  • 14. Examples 1.We can take the set A of students and the set B of programs. We Can relate the elements of A to the elements of B by defining that an element a of A is related to an element b of B if a takes b. A= { Beth, Mita, Recca, Jean} B={Computer Science, Information Technology, Information Science, Civil Engineering} Answer: R={(Beth,ComputerScience),(Mita,InformationTechn ology),(Recca,InformationScience),(Jean,Civil Engeneering) More Examples
  • 15. Let A = {1,2,3,}, then each of the following is a relation in A: R1 ={(a,b)| a < b} = {(1,2),(1,3),(2,3)} R2={(a,b)| a = b} = {(1,1),(2,2),(3,3)} R3={(a,b)| a > b} = {(2,1),(3,1),(3,2)} R4 ={(a,b)| a + b =4} = {(1,3),(2,2),(3,1)} R5={(a,b)| b = 4a} = 0 R6={(1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1), (3,2),(3,3)} R2 is called the identity relation. R5 is called trivial relation or void relation or empty relation. The universal relation on a set consist of all possible ordered pairs of elements of a set, example is R6. NEXT
  • 17. 2. Let A = {1,2,3,4} and B = {u,v,w}, Let R = {(1,u),(2,u),(3,v),(4,w)} Then R is a subset of A x B so R is a relation from A to B. Notice 1Ru but 3R u. 3.Let A = {1,2,3,4} and B = {1,2 ,3,4}, where R is a relation from A to B defined by a|b, “a divides b, (a,b) ϵ R. We see that R = {(1,1),(1,2),(1,3),(1,4),(2,2),(2,4),(3,3),(4,4)} NEXT
  • 18. Let A={ 1, 3 } and B= { 2, 5 }. Then we ask how elements in A are related to elements in B via the inequality `` ''. The answer is 1 2,1 5, 3 2, 3 5 . R= { (1, 2), (1, 5), (3 ,5) } , NEXT
  • 19. Let A ={ 1,2} and B={ 1,2,3} and define a binary relation R from A to B by for any (x,y) AxB: (x,y) R iff x-y is even (a) Give R by its explicit elements. (b) Is 1R1 ? Is 2R3 ? Is 1R3 ? Solution (a) For any (x,y) pair in AXB ={ (1,1), (1,2), (1,3), (2,1), (2,2), (2,3) }, we must check if xRy or if x-y is even. This is done in the following table NEXT
  • 20. (x,y) property of x-y conclusion (1,1) 1-1 even (1,1) R (1,2) 1-2 odd (1,2) R (1,3) 1-3 even (1,3) R (2,1) 2-1 odd (2,1) R (2,2) 2-2 oven (2,2) R (2,3) 2-3 odd (2,3) R Hence R={ (1,1), (1,3), (2,2)}. (b) Yes. 1R1 since (1,1) R. No. 2R3 since (2,3) R. Yes. 1R3 since (1,3) R. NEXT
  • 21. Let A={1,2,3} and a binary relation E be defined by (x,y) E iffx-y is even and x,y A. Then E={ (1,1), (2,2), (3,3), (1,3), (3,1)} can be represented by the following digraph (2,2): 2-2=0 even, hence the loop at vertex labelled by 2 A. (1,3): 1-3=-2 even, hence the arrow from vertex 1 to vertex 3. >>>>>