Topics: Discrete Mathematics - Algebra
A (binary) relation associates elements of one set with elements of another (or the same) set.
There are three types of relations:
Relations can also be seen as a set. They have a domain and a range. Relations can have several properties and they can also have inverses. Relations can be represented graphically with a digraph, and they can also be represented with a matrix.
Examples
Trivial Examples
Examples of trivial binary relations are “greater than” (), “equal to” () or “less than” (). Notice how these relations establish an association between two (and only two) elements of two sets.
Example 1
Let . We have that:
There are possible relations in :
We can say the following about some of these relations:
Example 2
Let , . We define the relation as:
The relation seen as a set is:
…and we can also see that: