Cartesian product of finite sets
The Cartesian product of two finite sets A and B, denoted by A × B, is the set of all ordered pairs (a, b) where a is an element of A and b is an element of B. Symbolically, A × B = {(a, b) | a ∈ A and b ∈ B} For example,…