Topic 1 - Relations & Types of Relations
A relation is a rule that connects elements of one set to elements of another set. In mathematics, it is defined as a subset of the Cartesian product of two sets.
Example:
If A = {1,2} and B = {3,4}, then
R = {(1,3), (2,4)} is a relation from A to B
Every element is related to itself.
Condition: (a,a) ∈ R for all a
Example: (1,1), (2,2)
If (a,b) ∈ R then (b,a) ∈ R
Example: (1,2) and (2,1)
If (a,b) and (b,c) ∈ R then (a,c) ∈ R
Example: (1,2), (2,3) ⇒ (1,3)
Relation that is reflexive, symmetric, and transitive
Very important for exams
No elements are related
R = ∅
All possible pairs are included
R = A × B