Definition
Relation (between two sets)
Let and be sets, a binary relation from to is a subset of . Given an ordered pair in , is related to by , or is -related to .
Relation on a Set
A relation on set is a relation from to It is a subset of () Note: the arrow diagram of such a relation can be modified so that it becomes a directed graph
Notation
is related to by means means
Domain, Co-domain, Range
Let and be sets and be a relation from to
Domain
is the set
Elements in that are βpart ofβ
Co-domain
is the set
Range
is the set
Elements in A that are βpart ofβ
Inverse Relation
If is a relation from to , then a relation from to can be defined by interchanging the elements of all the ordered pairs of Either Or
Composition of Relations
Relations can be composed: Set Relation Composition
N-ary Relations
A -ary relation involves sets. Given sets , an -are relation on is a subset of 2-ary, 3-ary and 4-ary relations are called binary, ternary and quatenary relations respectively
Diagrams
Reflexivity, Symmetry and Transivity
Examples
1: Relation
Let and Suppose we define the relation R such that iff Then, but
2: Defining Relations
Let and Relation is defined from to as: State explicitly which ordered pairs are in and which are in
3: Domain, Co-domain, Range
Let and , and define a relation from to as follows: