Set Theory - Review

Recall that the notation:

{12, 3, 20, 1, 8}

refers to a set whose elements are the integers 12, 3, 20, 1, 8. Remember that the order in which the elements are listed is irrelevant and so the following all represent the same set:

{12, 3, 20, 1, 8}
{12, 1, 3, 20, 8}
{1, 8, 20, 12, 3}

Operations on Sets

Let A = {12, 3, 20, 1} and B = {22, 20, 8, 1} denote sets. We may perform the following, basic operations:

 

Relation

Given n sets A1, A2, ... , An, consider the Cartesian product A1X A2X ... , An. Any subset of this Cartesian product is referred to as an n-ary relation (where the term n-ary indicates the n sets involved in the product). For example the Cartesian product example above involves two sets A and B. Any subset of the sixteen elements of this set constitutes a binary relation. One such relation would be the following subset:

{(12, 22), (3, 22), (3, 8), (20, 22), (1, 8), (1, 1)}

We sometimes present the relation in tabular form:

              -----------
               12  |  22 
                3  |  22 
                3  |   8 
               20  |  22 
                1  |   8 
                1  |   1 

where each row corresponds to a tuple.