Counting Relations
In this lesson, we will be looking at counting relations with different properties.
Recall that a binary relation R from set A to set B is defined as a subset of the Cartesian product A × B. If these sets are finite and have cardinality |A| = n and |B| = m, then the cardinality of their Cartesian product is given by
Hence, the number of subsets of A × B or the number of relations from A to B is
In particular, the number of relations defined on one set A of cardinality n is equal to
Binary relations may have different properties such as reflexivity, symmetry, transitivity and so on. Further, we consider how many relations of different type exist on a set A consisting of n elements.
Reflexive Relations
A reflexive relation on set
reflexive relations on a set with cardinality
An irreflexive relation is the opposite of a reflexive relation. It contains no identity elements
Symmetric Relations
As we know a binary relation corresponds to a matrix of zeroes and ones. A symmetric relation is described by a symmetric matrix such as the one in figure below.
In a symmetric matrix,
Antisymmetric Relations
Antisymmetric relations have no restrictions on the diagonal elements
Asymmetric Relations
A binary relation is called asymmetric if it is both antisymmetric and irreflexive. Thus an asymmetric relation does not contain the diagonal elements
Transitive Relations
Finding the number of transitive relations on a set with
Equivalence Relations
The number of equivalence relations on a set is equal to the number of partitions. These numbers are known as Bell numbers. The first few Bell numbers are given by
For example, the set
Bell numbers can be computed using the following recursive equation:
where
Partial Orders
Similarly to transitive relations, there is no closed formula to count the number of partial orders on a set. This number is represented by the sequence OEIS A001035. The first several values are
Total Orders
The number of total orders on a set of cardinality