Set Theory
Set Theory
Set Theory
Ahsan Azhar
Introduction
Much of discrete mathematics is devoted to the study of discrete
structures, used to represent discrete objects. Many important discrete
structures are built using sets, which are collections of objects. Among
the discrete structures built from sets are combinations, unordered
collections of objects used extensively in counting; relations, sets of
ordered pairs that represent relationships between objects; graphs, sets of
vertices and edges that connect vertices; and finite state machines, used
to model computing machines.
Sets
Sets are used to group objects together. Often the objects in a set have
similar properties.
DEFINITION
A set is an unordered collection of objects.
Sets
DEFINITION
The objects in a set are called the elements, or members, of the
set. A set is said to contain its elements.
EXAMPLE 4 The set of positive integers less than 100 can be denoted
by {1, 2, 3, … , 99}.
Roster Method
EXAMPLE 3 Although sets are usually used to group together
elements with common properties, there is
nothing that prevents a set from having seemingly unrelated elements. For
instance, {a, 2, Fred, New Jersey} is the set containing the four elements a, 2,
Fred, and New Jersey. Sometimes the roster method is used to describe a set
without listing all its members. Some members of the set are listed, and then
ellipses (…) are used when the general pattern of the
elements is obvious.
EXAMPLE 4 The set of positive integers less than 100 can be denoted
by {1, 2, 3, … , 99}.
Set Builder Notation
Another way to describe a set is to use set builder notation. We characterize all
those elements in the set by stating the property or properties they must have to
be members. The general form of this notation is {x ∣ x has property P} and is
read “the set of all x such that x has
property P.” For instance, the set O of all odd positive integers less than 10 can be
written as
O = {x ∣ x is an odd positive integer less than 10},
These sets, each denoted using a boldface letter, play an important role in discrete
mathematics:
N = {0, 1, 2, 3, …}, the set of all natural numbers
Z = {… , −2, −1, 0, 1, 2, …}, the set of all integers
Z+ = {1, 2, 3, …}, the set of all positive integers
Q = {p∕q ∣ p ∈ Z, q ∈ Z, and q ≠ 0},
the set of all rational numbers R, the set of all real numbers
Set Builder Notation
EXAMPLE 5 The set {N, Z, Q, R} is a set containing four elements, each
of which is a set. The four elements of this set are N, the
set of natural numbers; Z, the set of integers; Q, the set of
rational numbers; and R, the set of real numbers.
Equal Sets
DEFINITION
Two sets are equal if and only if they have the same elements.
Therefore, if A and B are sets, then A and B are equal if and only if We
write A = B if A and B are equal sets.
EXAMPLE 6 The sets {1, 3, 5} and {3, 5, 1} are equal, because they
have the same elements. Note that the order in which the elements of a
set are listed does not matter. Note also that it does not matter
if an element of a set is listed more than once, so {1, 3, 3, 3, 5, 5, 5, 5} is
the same as the set {1, 3, 5} because they have the same elements.
Empty Set
There is a special set that has no elements. This set is called the empty set, or
null set, and is denoted by ∅. The empty set can also be denoted by { } (that
is, we represent the empty set with a pair of braces that encloses all the
elements in this set). Often, a set of elements with certain properties turns out
to be the null set. For instance, the set of all positive integers that are greater
than their squares is the null set.
Singleton Set
A set with one element is called a singleton set. A common error is to confuse
the empty set ∅ with the set {∅}, which is a singleton set. The single element
of the set {∅} is the empty set itself! A useful analogy for remembering this
difference is to think of folders in a computer file system. The empty set can
be thought of as an empty folder and the set consisting of just the empty set
can be thought of as a folder with exactly one folder inside, namely, the empty
folder.
Singleton Set
A set with one element is called a singleton set. A common error is to confuse
the empty set ∅ with the set {∅}, which is a singleton set. The single element
of the set {∅} is the empty set itself! A useful analogy for remembering this
difference is to think of folders in a computer file system. The empty set can
be thought of as an empty folder and the set consisting of just the empty set
can be thought of as a folder with exactly one folder inside, namely, the empty
folder.
Subsets
DEFINITION
The set A is a subset of B, and B is a superset of A, if and only if every
element of A is also an element of B. We use the notation A ⊆ B to
indicate that A is a subset of the set B. If, instead, we want to stress that B
is a superset of A, we use the equivalent notation B ⊇ A.
(So, A ⊆ Band B ⊇ A are equivalent statements.)
is true. Note that to show that A is not a subset of B we need only find
one element x ∈ A with x ∉ B. Such an x is a counterexample to the
claim that x ∈ A implies x ∈ B.
Subsets
We have these useful rules for determining whether one set is a subset of another:
Showing Two Sets are Equal: To show that two sets A and B are
equal, show that A ⊆ B and B ⊆ A.
Sets may have other sets as members. For instance, we have the sets
and
DEFINITION
Let S be a set. If there are exactly n distinct elements in S where n is a
nonnegative integer, we say that S is a finite set and that n is the
cardinality of S. The cardinality of S is denoted by |S|.
Remark: The term cardinality comes from the common usage of the term
cardinal number as the size of a finite set.
The Size Of A Set
EXAMPLE 1 Let A be the set of odd positive integers less than
10. Then |A| = 5.
DEFINITION
Given a set S, the power set of S is the set of all subsets of the set S.
The power set of S is denoted by .
Power Sets
EXAMPLE 1 What is the power set of the set {0, 1, 2}?
Note that the empty set and the set itself are members of this set
of subsets.
Power Sets
EXAMPLE 2 What is the power set of the empty set? What is the
power set of the set {∅}?
Solution: The empty set has exactly one subset, namely, itself.
Consequently,
5. Fuzziness (vagueness) :
Uncertainty due to the vagueness of boundary
e.g. Beautiful woman, Tall man
Fuzzy Sets
The word “fuzzy” means “vagueness (ambiguity)”.
Fuzziness occurs when the boundary of a piece of information is not
clear-cut.
Fuzzy sets - 1965 Lotfi Zadeh as an extension of classical notation
set.
Classical set theory allows the membership of the elements in the set
in binary terms.
Fuzzy set theory permits membership function valued in the interval
[0,1].
Fuzzy Sets
Example:
Words like young, tall, good or high are fuzzy.
DEFINITION
Fuzzy set F on U, the universe of discourse can be represented with the
membership grade,for all , which is defined by
Note:
1) The membership function 𝝁𝑭 (𝒖) represents the degree of
belonginess of u to the set F.
2) A crisp set is a special case of a fuzzy set, where
Fuzzy Sets
Membership Function
The membership function fully defines the fuzzy set
A membership function provides a measure of the degree of similarity
of an element to a fuzzy set
Membership functions can
either be chosen by the user arbitrarily, based on the user’s experience
(MF chosen by two users could be different depending upon their
experiences, perspectives, etc.)
Or be designed using machine learning methods (e.g., artificial neural
networks, genetic algorithms, etc.)
Fuzzy Sets
Set membership function is a real valued function with output in the
range
Probability x is in F.
Probability x is not in F.
e.g.
DEFINITION
Let and be two fuzzy subsets of . Also, let be the complement of .
Then,
Fuzzy Sets Applications
Fuzzy Set is particularly good at handling uncertainty, vagueness
and imprecision.
especially useful where a problem can be described linguistically
(using words).
Applications include:
robotics
washing machine control
nuclear reactors
focusing a camcorder
information retrieval
train scheduling
Cartesian Products
The order of elements in a collection is often important. Because sets are
unordered, a different structure is needed to represent ordered
collections. This is provided by ordered n-tuples.
DEFINITION
The ordered n-tuple (a1, a2, … , an) is the ordered collection that has a1
as its first element, a2 as its second element, … , and an as its nth
element.
Cartesian Products
We say that two ordered n-tuples are equal if and only if each corresponding pair
of their elements is equal. In other words, (a1, a2, … , an) = (b1, b2, … , bn) if and
only if ai = bi, for i = 1, 2, … , n. In particular, ordered 2-tuples are called ordered
pairs. The ordered pairs (a, b) and (c, d) are equal if and only if a = c and b = d.
Note that (a, b) and (b, a) are not equal unless a = b.
DEFINITION
Let A and B be sets. The Cartesian product of A and B, denoted by A ×
B, is the set of all ordered pairs (a, b), where a ∈ A and b ∈ B. Hence,
Cartesian Products
EXAMPLE 1 Let A represent the set of all students at a university, and let
B represent the set of all courses offered at the university. What is the
Cartesian product A × B and how can it be used?
Example 6 Let A represent the set of all students at a university, and let B
represent the set of all courses offered at the university. What is the Cartesian
product 𝐴 × 𝐵 and how can it be used.
Solution: 𝐴 × 𝐵 represent all possible enrollments of students in
courses at university
Thanks!
Do you have any questions?
[email protected]
F301 - Cab 2- Building A
University of Central Punjab Lahore