Another fundamental concept indispensable to our
coming investigation is that of a set, which we regard to
be simply a collection of objects.2.3
Sets, as you doubtless know, can have
members, or elements. For example, the set of all natural numbers
,
denoted hereafter as
N, has the number 7 as an element; in symbols:
So far all our examples of sets have been both number-related and
infinite.
These are not properties all of the sets of interest to us must have.
For example, the set of all characters in the English alphabet (and, indeed,
the characters in any so-called natural language),
though non-numerical and non-infinite (= finite), is often
of interest to computer scientists, mathematicians, engineers,
etc. To return to the realm of the numerical,
the set of all natural numbers
less than 5000 is a finite set; it can be denoted by
Alert readers will have noticed that we have invoked the concepts of infinite
and finite set without providing definitions. Precise definitions of
these concepts are outside our purview, but we can rest on the following
characterizations. A set that can be displayed in the form of a list
from first element to last element--as in the example
above--is finite; a set that connot be
so displayed--as in the case of N, which has no last or final
element--is infinite. The set containing no objects, the empty
set or null set, denoted by
,
will also be considered
finite. We often use the elipsis,
,
to indicate that we are dealing
with a set that cannot be listed from first element to final element.
You may remember that we used the elipsis for this effect in the very
first paragraph of this section, when indicating
the elements of N.
We also used these small but powerful ``three dots" when displaying
,
in order to remind you that this number's decimal expansion
is infinitely long.
It will be convenient to refer to sets by way of other sets and certain
properties. For example, the finite set
{1, 2, 4, 5, 6, 7} could
be denoted by the expression `the set of all elements in N which
are less than or equal to seven and not equal to zero.' Such expressions,
as you may suspect, can quickly get rather unwieldy. Accordingly, some
notation (sometimes called set-builder notation) is in order.
With respect to the previous example, this notation looks like this:
Notice that every element of E is also an element of N. When
such a situation holds, we say that the first set is a subset of
the second. In symbols, the present case is represented as
.
Notice that the converse is not true; that is,
.
In this case
we say that E is a proper subset of N, written
.
Two sets A and B are subsets of each other if and only if A = B.
It will expedite matters if we agree, from this point on,
that the empty set is a subset of all sets, and that all sets are
subsets of themselves. Two sets that have no elements in common
are said to be disjoint.2.4
There are three well-known and useful operations on sets worth isolating at this point, namely
The three operations obey certain ``laws,"
all of which are rather easily proved. One such law is ``Commutativity,"
which consists in the following two identities (where A and B are arbitrary
sets).
Another operator is the power set operator; it generates the
set of all subsets of a given set. Let
A = {1, 2, 3}; then the power
set of A, denoted by 2A (or , is
Notice that two sets with the same elements, regardless of how those
elements are ordered, are one and the same. Hence,
for instance,
However, in the case of an n-tuple, order
is important. We denote n-tuples by flanking them
not with the curly brackets we have used to signify sets, but rather
with parentheses. So, for example, (a, b, c) is an ordered 3-tuple,
or simply a triple (a pair is an ordered 2-tuple).
Note that while
,