SlideShare a Scribd company logo
Relations and Operations
Prepared by: MARIELA A. CAMBA
Concepts of Relations
• Theory of relations is introduced by Augustus De Morgan. We deal
with relational operators, namely, ≤, <, >, ≥, ≠, and = are
commonly used defining the relations.
• In set theory, the concept subset represents the relationship
between the two sets.
DEFINITION 2.1: A relation R on a set S (more precisely, a binary
relation on S, since it will be
a relation between pairs of elements of S) is a subset of SxS.
Cartesian Product
• Let A and B be two sets. The ordered pairs of the
type (a,b) are obtained in the new set by taking
Cartesian product of the given two sets.
• A x B = {(a,b) | a ε A and b ε B}
• Example: Consider A = { 1, 2, 3} and B = {x, y}.
• Obtain the Cartesian product set A x B.
• A x B = {( 1, X), ( 1, y), ( 2, X), ( 2, y), ( 3, X), (3, y)}.
Identity Relation
• It is also called Equality relation, wherein
every element of the set is related to
itself. If A is the set, then the identity
relation IA is given as under:
• IA = {(a, a) | for all a ε A }
• Given a set A = {1,2,3} the relation IA is {(1,1),
(2,2),(3,3)}.
Inverse Relation
• Let R be a relation from set A to set B, R: A B. the
inverse relation of R is denoted as R -1
and represents
the relation B to A. it is defined as under.
•
• This is equivalent to saying that ( a R b ) if and only if
(b R -1
a ). It is also equivalent to saying that (a, b) ε R
(b, a) R -1
. The domain of R is identical to the
range of R -1
and vice versa. Consider a set A = { 1,2,3}
and the relation R = {(1,2), (2,3), (3,3)}. The relation=
{(2,1), (3,2), (3,3)}.
Properties of Binary Relations
• In computer science, most often we deal with relations on
a given set rather than the relation across two sets. These
relations satisfy certain properties. The properties include
Reflexivity, Irreflexivity, Symmetry, Anti-symmetry and
Transitivity.
Reflexivity and Irreflexivity
• The relation R on a set A is said to be reflexive if a is
related to a (a R a) for all a ε A. Similarly, the relation R on
a set A is said to be irreflexive if a is not related to a (a R a)
for all a ε A.
relation and operations power point presentation
Symmetry, not symmetric and asymmetry
• A relation R on a set A is said to be symmetric, whenever
• a R b then b R a. The relation R is said to be not symmetric
whenever we have some a and b belonging to A and (aRb) but b is
not related to a, (bRa) is not true. The relation R is said to be
asymmetric, whenever aRb for all a,b ε A, b is not related to a.
These are defined as under.
• (a, b) ε R (b, a ) ε R for a, b ε A, the relation is symmetric
• (a, b) ε R and (b, a ) R for a, b ε A, the relation is not symmetric
• (a, b) ε R (b, a ) R for a, b ε A, the relation is asymmetric
Consider the relation parallel
defined over a set of lines. If
line A is parallel to line B and
line B is parallel to C then the
line A is parallel to C.
Therefore, the relation
parallel is transitive. The
same is not true for the
relation perpendicular.
A relation R is said to be transitive, if (aRb) and (bRc ) implies that
(aRc). In other words, the relation is said to be not transitive if (aRb)
and (bRc ) but (aRc).
EXAMPLES
Consider the sets A,
B and C and the
relation subset
defined over a
universal set. If A B
and B C then A
C. Therefore, the
relation is
transitive.
Equivalence Relation and Partitions
• A given relation is said to be an Equivalence relation when it is
reflexive, symmetric and transitive.
Example :
• Consider the set of triangles in a plane. The relation similarity of
triangles is an equivalence relation. Let A,B and C represent the
triangles in a plane. From the property of similarity triangles, we can
ascertain the following:
• A, B and C are similar to them selves. Reflexive property
• If triangle A is similar to triangle B then triangle B is similar to
triangle A. symmetric property.
• If triangle A is similar to triangle B and triangle B is similar to triangle
C then triangle A is similar to triangle C. Transitive property.
Partitions
relation and operations power point presentation
relation and operations power point presentation
Composition of Relations
relation and operations power point presentation
Matrix representation of relations
Types of Binary operations
• We take the set of numbers on which the binary operations
are performed as X. The operations (addition, subtraction,
division, multiplication, etc.) can be generalized as a binary
operation is performed on two elements (say a and b) from
set X. The result of the operation on a and b is another
element from the same set X.
• Thus, the binary operation can be defined as an operation x
which is performed on a set A. The function is given by x: A
x A → A. So the operation x performed on
operands a and b is denoted by a x b.
•Let us show that addition is
a binary operation on real
numbers (R) and
natural numbers (N). So if we
add two operands which are
natural numbers a and b, the
result will also be a natural
number. The same holds
good for real numbers.
Hence,
•Let us show that multiplication is
a binary operation on real
numbers (R) and natural numbers
(N). So if we multiply two operands
which are natural
numbers a and b, the result will
also be a natural number. The
same holds good for real numbers.
Hence,
Examples
•Let us show that subtraction is
a binary operation on real
numbers (R). So if we subtract
two operands which are real
numbers a and b, the result will
also be a real number. The same
does not hold good for natural
numbers. It is because if we
take two natural numbers, 3
and 4 as a and b, then 3 – 4 = -1,
which is not a natural number.
Hence,
•Similarly, the division
cannot be defined on
real numbers. This is
because / : R x R R is
→
given by (a, b) aa/b.
→
Now if we take b as 0
here, a/b is not
defined.
Examples
Thank you

More Related Content

PPTX
relation and operations 204 presentation
PPTX
relation and operations power point presentation
PPTX
relation and operations power point presentation
PPTX
Relational Algebra (1).pptx
PPTX
realtion ppt for disteane maths for engg
PPTX
Binary Relation-1 ssssssssssssssssssssssss
PPTX
Relations
DOC
Final relation1 m_tech(cse)
relation and operations 204 presentation
relation and operations power point presentation
relation and operations power point presentation
Relational Algebra (1).pptx
realtion ppt for disteane maths for engg
Binary Relation-1 ssssssssssssssssssssssss
Relations
Final relation1 m_tech(cse)

Similar to relation and operations power point presentation (20)

DOC
Final relation1 m_tech(cse)
DOC
Final relation1 m_tech(cse)
PPTX
RELATION_20231006_151843_0000.hhahahpptx
PPT
Set theory
PPTX
dm_13_RelationsAndTheirProperties (1).pptx
PDF
dm_13_RelationsAndTheirProperties (1).pdf
PPTX
Unitjhdksjfksdjfksjfhikdlfjiksdfds 1.pptx
PPT
inbound38351872686383732942924290993.ppt
PDF
Chapter 2: Relations
PPTX
Relation and function
PPTX
Discrete Structures_Relations_Lec 1.pptx
PPT
Relations
PPTX
Presentation2 vijayan pillai
PPT
Introductions to Relations
PPSX
Relations
PDF
Lecture 3 (4).pdfbbbbbbbbbbbbbbbbbbbvvvvvvvvvvvvvvvvvvvvvvvvv
PDF
Lecture 3 (2).pdf,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
PDF
Relations
PPT
PPTX
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
RELATION_20231006_151843_0000.hhahahpptx
Set theory
dm_13_RelationsAndTheirProperties (1).pptx
dm_13_RelationsAndTheirProperties (1).pdf
Unitjhdksjfksdjfksjfhikdlfjiksdfds 1.pptx
inbound38351872686383732942924290993.ppt
Chapter 2: Relations
Relation and function
Discrete Structures_Relations_Lec 1.pptx
Relations
Presentation2 vijayan pillai
Introductions to Relations
Relations
Lecture 3 (4).pdfbbbbbbbbbbbbbbbbbbbvvvvvvvvvvvvvvvvvvvvvvvvv
Lecture 3 (2).pdf,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Relations
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
Ad

More from MarielaAlapapCamba1 (20)

PPTX
plane and solid geometry power point presentation
PPTX
activity 1 power point presentations in geometry
PPT
math 208 report fundamental theorem of arithmetic
PPTX
geometry presentation power point presentation
PPTX
ANEKDOTA power point presentation filipino 10
PPTX
Pokus sa layon tagaganap grade 10 filipino
DOCX
class activity in grade 10 mathematics JHS
PPTX
the set of natural numbers in mathematics
PPTX
Prime Numbers.power point presentations
PPTX
The Real Numbers power point presentations
PPTX
GROUPS-QOUTIENT, PRODUCT OF SUBGROUP, COMPOSITION SERIES.pptx
PPTX
mitolohiya Power point presentation in filipino
PPTX
Ang matanda at ang dagat power point presentation
PPTX
in the set z on integers mathematics 208.pptx
PPTX
Rational Numbers_MATH 204_Ethelyn Alvarez (2).pptx
PPTX
in the set z on integers, we define addition and multiplicatio
PPTX
gregor mendel's principles of inheritance
PPTX
consumer behavior analysis and marketing strategy
DOCX
Week-2-August-30-September-2-2022-RAISEplusweek-1-f2f.docx
PPT
AP Cell Cycle-Mitosis and Meiosis.presentation
plane and solid geometry power point presentation
activity 1 power point presentations in geometry
math 208 report fundamental theorem of arithmetic
geometry presentation power point presentation
ANEKDOTA power point presentation filipino 10
Pokus sa layon tagaganap grade 10 filipino
class activity in grade 10 mathematics JHS
the set of natural numbers in mathematics
Prime Numbers.power point presentations
The Real Numbers power point presentations
GROUPS-QOUTIENT, PRODUCT OF SUBGROUP, COMPOSITION SERIES.pptx
mitolohiya Power point presentation in filipino
Ang matanda at ang dagat power point presentation
in the set z on integers mathematics 208.pptx
Rational Numbers_MATH 204_Ethelyn Alvarez (2).pptx
in the set z on integers, we define addition and multiplicatio
gregor mendel's principles of inheritance
consumer behavior analysis and marketing strategy
Week-2-August-30-September-2-2022-RAISEplusweek-1-f2f.docx
AP Cell Cycle-Mitosis and Meiosis.presentation
Ad

Recently uploaded (20)

PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Classroom Observation Tools for Teachers
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Insiders guide to clinical Medicine.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
master seminar digital applications in india
PDF
Pre independence Education in Inndia.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Lesson notes of climatology university.
PDF
RMMM.pdf make it easy to upload and study
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Pharma ospi slides which help in ospi learning
PDF
Sports Quiz easy sports quiz sports quiz
PPH.pptx obstetrics and gynecology in nursing
Classroom Observation Tools for Teachers
2.FourierTransform-ShortQuestionswithAnswers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Complications of Minimal Access Surgery at WLH
102 student loan defaulters named and shamed – Is someone you know on the list?
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Insiders guide to clinical Medicine.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
TR - Agricultural Crops Production NC III.pdf
master seminar digital applications in india
Pre independence Education in Inndia.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Module 4: Burden of Disease Tutorial Slides S2 2025
Lesson notes of climatology university.
RMMM.pdf make it easy to upload and study
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Pharma ospi slides which help in ospi learning
Sports Quiz easy sports quiz sports quiz

relation and operations power point presentation

  • 1. Relations and Operations Prepared by: MARIELA A. CAMBA
  • 2. Concepts of Relations • Theory of relations is introduced by Augustus De Morgan. We deal with relational operators, namely, ≤, <, >, ≥, ≠, and = are commonly used defining the relations. • In set theory, the concept subset represents the relationship between the two sets. DEFINITION 2.1: A relation R on a set S (more precisely, a binary relation on S, since it will be a relation between pairs of elements of S) is a subset of SxS.
  • 3. Cartesian Product • Let A and B be two sets. The ordered pairs of the type (a,b) are obtained in the new set by taking Cartesian product of the given two sets. • A x B = {(a,b) | a ε A and b ε B} • Example: Consider A = { 1, 2, 3} and B = {x, y}. • Obtain the Cartesian product set A x B. • A x B = {( 1, X), ( 1, y), ( 2, X), ( 2, y), ( 3, X), (3, y)}.
  • 4. Identity Relation • It is also called Equality relation, wherein every element of the set is related to itself. If A is the set, then the identity relation IA is given as under: • IA = {(a, a) | for all a ε A } • Given a set A = {1,2,3} the relation IA is {(1,1), (2,2),(3,3)}.
  • 5. Inverse Relation • Let R be a relation from set A to set B, R: A B. the inverse relation of R is denoted as R -1 and represents the relation B to A. it is defined as under. • • This is equivalent to saying that ( a R b ) if and only if (b R -1 a ). It is also equivalent to saying that (a, b) ε R (b, a) R -1 . The domain of R is identical to the range of R -1 and vice versa. Consider a set A = { 1,2,3} and the relation R = {(1,2), (2,3), (3,3)}. The relation= {(2,1), (3,2), (3,3)}.
  • 6. Properties of Binary Relations • In computer science, most often we deal with relations on a given set rather than the relation across two sets. These relations satisfy certain properties. The properties include Reflexivity, Irreflexivity, Symmetry, Anti-symmetry and Transitivity. Reflexivity and Irreflexivity • The relation R on a set A is said to be reflexive if a is related to a (a R a) for all a ε A. Similarly, the relation R on a set A is said to be irreflexive if a is not related to a (a R a) for all a ε A.
  • 8. Symmetry, not symmetric and asymmetry • A relation R on a set A is said to be symmetric, whenever • a R b then b R a. The relation R is said to be not symmetric whenever we have some a and b belonging to A and (aRb) but b is not related to a, (bRa) is not true. The relation R is said to be asymmetric, whenever aRb for all a,b ε A, b is not related to a. These are defined as under. • (a, b) ε R (b, a ) ε R for a, b ε A, the relation is symmetric • (a, b) ε R and (b, a ) R for a, b ε A, the relation is not symmetric • (a, b) ε R (b, a ) R for a, b ε A, the relation is asymmetric
  • 9. Consider the relation parallel defined over a set of lines. If line A is parallel to line B and line B is parallel to C then the line A is parallel to C. Therefore, the relation parallel is transitive. The same is not true for the relation perpendicular. A relation R is said to be transitive, if (aRb) and (bRc ) implies that (aRc). In other words, the relation is said to be not transitive if (aRb) and (bRc ) but (aRc). EXAMPLES Consider the sets A, B and C and the relation subset defined over a universal set. If A B and B C then A C. Therefore, the relation is transitive.
  • 10. Equivalence Relation and Partitions • A given relation is said to be an Equivalence relation when it is reflexive, symmetric and transitive. Example : • Consider the set of triangles in a plane. The relation similarity of triangles is an equivalence relation. Let A,B and C represent the triangles in a plane. From the property of similarity triangles, we can ascertain the following: • A, B and C are similar to them selves. Reflexive property • If triangle A is similar to triangle B then triangle B is similar to triangle A. symmetric property. • If triangle A is similar to triangle B and triangle B is similar to triangle C then triangle A is similar to triangle C. Transitive property.
  • 17. Types of Binary operations • We take the set of numbers on which the binary operations are performed as X. The operations (addition, subtraction, division, multiplication, etc.) can be generalized as a binary operation is performed on two elements (say a and b) from set X. The result of the operation on a and b is another element from the same set X. • Thus, the binary operation can be defined as an operation x which is performed on a set A. The function is given by x: A x A → A. So the operation x performed on operands a and b is denoted by a x b.
  • 18. •Let us show that addition is a binary operation on real numbers (R) and natural numbers (N). So if we add two operands which are natural numbers a and b, the result will also be a natural number. The same holds good for real numbers. Hence, •Let us show that multiplication is a binary operation on real numbers (R) and natural numbers (N). So if we multiply two operands which are natural numbers a and b, the result will also be a natural number. The same holds good for real numbers. Hence, Examples
  • 19. •Let us show that subtraction is a binary operation on real numbers (R). So if we subtract two operands which are real numbers a and b, the result will also be a real number. The same does not hold good for natural numbers. It is because if we take two natural numbers, 3 and 4 as a and b, then 3 – 4 = -1, which is not a natural number. Hence, •Similarly, the division cannot be defined on real numbers. This is because / : R x R R is → given by (a, b) aa/b. → Now if we take b as 0 here, a/b is not defined. Examples