Professional Documents
Culture Documents
Sets
Sets
Definitions
SET is an unordered collection of
distinct and distinguishable object
Venn diagrams
Venn diagrams or set diagrams are
diagrams that show all hypothetically
possible logical relations between a finite
collection of sets (groups of things). Venn
diagrams were conceived around 1880 by
John Venn. They are used in many fields,
including set theory, probability, logic,
statistics, and computer science.
Venn diagrams
U
A
Membership Relationships
Subset.
We say A is a subset of B if , i.e., all
the members of A are also members of
B.
Subsets
finite sets, infinite sets, cardinality of a set,
subset
A={1,3,5,7,9}
B={x|x is odd}
C={1,3,5,7,9,...}
cardinality of A=5 (|A|=5)
A is a proper subset of B.
C is a subset of B.
Power set of A
The set of all subsets of A
A={1,2}, P(A)={, {1}, {2}, {1,2}}
If |A|=n, then |P(A)|=2n.
Intersection
A intersect B is the set of all elements
that
are in both A and B.
This is similar to the logical and
Set Complement
A complement, or not A is the set
of all elements not in A.
A
Set Complement
The complement operator is similar to
the logical not, and is reflexive, that is,
A =A
Set Difference
AB
The set difference A minus B is the
set of elements that are in A, with those
that are in B subtracted out.
Another way of putting it is, it is the set
of elements that are in A, and not in B,
so
AB=AB