Discrete Structure JHCSC
Discrete Structure JHCSC
denotes the set B whose elements are the positive integers. Note that
a letter, usually x, is used to denote a typical member of the set; and
the vertical line | is read as such that and the comma as and.
Sets And Elements, Subsets
EXAMPLE 1.1
a) The set A above can also be written as A = {x | x is an odd
positive integer, x < 10}.
b) We cannot list all the elements of the above set B although
frequently we specify the set by
B = {2, 4, 6, . . .}
where we assume that everyone knows what we mean.
Observe that 8 B, but 3 B.
Sets And Elements, Subsets
c) Let E = {x | x2 3x + 2 = 0}, F = {2, 1}
and G = {1, 2, 2, 1}. Then E = F = G.
We emphasize that a set does not depend on the way in
which its elements are displayed.
A set remains the same if its elements are repeated or
rearranged.
Even if we can list the elements of a set, it may not be
practical to do so. That is, we describe a set by listing its
elements only if the set contains a few elements; otherwise
we describe a set by the property which characterizes its
elements.
Sets And Elements, Subsets
Subsets
Suppose every element in a set A is also an element of a set
B, that is, suppose a " A implies a " B. Then A is called a
subset of B.We also say that A is contained in B or that B
contains A. This relationship is written
A B or B A
Two sets are equal if they both have the same elements or,
equivalently, if each is contained in the other. That is:
Then A and B are disjoint, and A and C are disjoint. But B and
C are not disjoint since B and C have elements in common,
e.g., 5 and 6.We note that if A and B are disjoint, then neither is
a subset of the other (unless one is the empty set).
VENN DIAGRAMS
A Venn diagram is a pictorial representation of sets in which
sets are represented by enclosed areas in the plane.
The universal set U is represented by the interior of a
rectangle, and the other sets are represented by disks lying
within the rectangle.
If A B, then the disk representing A will be entirely within
the disk representing B as in Fig. 1-1(a).
If A and B are disjoint, then the disk representing A will be
separated from the disk representing B as in Fig. 1-1(b).
VENN DIAGRAMS
However, if A and B are two arbitrary sets, it is possible that
some objects are in A but not in B, some are in B but not in
A, some are in both A and B, and some are in neither A nor
B; hence in general we represent A and B as in Fig. 1-1(c).
EXAMPLE 1.3 Show that the following argument (adapted from a book on
logic by Lewis Carroll, the author of Alice in Wonderland) is valid:
VENN DIAGRAMS
However, if A and B are two arbitrary sets, it is possible that
some objects are in A but not in B, some are in B but not in
A, some are in both A and B, and some are in neither A nor
B; hence in general we represent A and B as in Fig. 1-1(c).
EXAMPLE 1.3 Show that the following argument (adapted from a book on
logic by Lewis Carroll, the author of Alice in Wonderland) is valid:
VENN DIAGRAMS
VENN DIAGRAMS
The statements S1, S2, and S3 above the horizontal line
denote the assumptions, and the statement S below the line
denotes the conclusion. The argument is valid if the
conclusion S follows logically from the assumptions S1, S2,
and S3.
By S1 the tin objects are contained in the set of saucepans,
and by S3 the set of saucepans and the set of useful things
are disjoint. Furthermore, by S2 the set of your presents is
a subset of the set of useful things. Accordingly, we can
draw the Venn diagram in Fig. 1-2.
The conclusion is clearly valid by the Venn diagram because
the set of your presents is disjoint from the set of tin
objects.
VENN DIAGRAMS