Cse303 Elements of The Theory of Computation: Professor Anita Wasilewska
Cse303 Elements of The Theory of Computation: Professor Anita Wasilewska
LECTURE 2
CHAPTER 1
SETS, RELATIONS, and LANGUAGES
1. Sets
2. Relations and Functions
3. Special types of binary relations
4. Finite and Infinite Sets
5. Fundamental Proof Techniques
6. Closures and Algorithms
7. Alphabets and languages
8. Finite Representation of Languages
CHAPTER 1
PART 4: Finite and Infinite Sets
Equinumerous Sets
Equinumerous sets
We call two sets A and B are equinumerous iff there is a
bijection function f : A B, i.e. f is such that
f: A
11,onto
Notation
We write A B to denote that the sets A and B are
equinumerous and write symbolically
A B iff
f: A
11,onto
Equinumerous Relation
Observe that for any set X, the relation is an equivalence
on 2X ; i.e.
[A ] = {B 2X : A B }
describes for finite sets all sets that have the same number of
elements as A ( f is bijection)
Observe that is defined for any sets A , B, but in not an
equivalence relation for any A,B as its domain would have to
be the set of all sets that does not exist
We extend the notion of the same number of elements to
any sets by introducing the notion of cardinality of sets
Cardinality of Sets
Cardinality definition
We say that A and B have the same cardinality
are equipotent, i.e. A B
iff
they
Cardinality notations
If sets A and B have the same cardinality we denote it as:
|A | = |B | or cardA = cardB or A B
Cardinality We put the above notations together in one
definition:
|A | = |B | (this is the notation we will use) iff there is a
function f is such that
f: A
11,onto
iff
there is n N and a
A)
11,onto
|A | = n
and say that the set A has n elements, i.e.
Definition A set A is infinite iff
A is NOT finite
11,onto
2N
11,onto
R+
|N | = 0
|A | = 0
iff
A N i.e. |A | = |N |
iff
|A | = 0
iff
all elements of
Fact 1
iff
iff
A is finite or
A is finite or |A | = 0
A set A is uncountable
iff
A is not
Fact 4
A set A is uncountable
iff
A is infinite and |A | , 0
iff
Uncountable Sets
We use is Fact 5 to prove
Theorem 1
iff
|A | = |R |
R+
Cantor Theorem
Cantor Theorem (1891)
For any set A ,
|A | < |2A )|
where we define
Definition
|A | |B |
iff
A C and C B
|A | < |B |
iff
|A | |B | and |A | , |B |
0 < C
|P(N )| = |R | = C
0 + 0 = 0
Union 2 Union of a finite ( cardinality n) and infinitely
countable set is an infinitely countable set
0 + n = 0
Union 3 Union of an infinitely countable set and a set of the
same cardinality as real numbers has the same cardinality as
the set of real numbers
0 + C = C
Union 4 Union of two sets of cardinality the same as real
numbers has the same cardinality as the set of real numbers
C+C =C
0 0 = 0
Cartesian Product 2 Cartesian Product of a non-empty
finite set and an infinitely countable set is an infinitely
countable set
n 0 = 0 for n > 0
Cartesian Product 3 Cartesian Product of an infinitely
countable set and a set of the same cardinality as real
numbers has the same cardinality as the set of real numbers
0 C = C
Cartesian Product 4 Cartesian Product of two sets of
cardinality the same as real numbers has the same cardinality
as the set of real numbers
CC =C
0 0 = C
Power 4 There are C C of all functions that map R into R
Power 5 The set of all real functions of one variable has the
same cardinality as the set of all subsets of real numbers
C C = 2C
n < 0 < C
Theorem 5
For any non empty finite set A the set A of all finite
sequences formed out of A is countably infinite, i.e
|A | = 0
We write it as
If |A | = n, n 1, then |A | = 0
iff
iff
iff
NO
The set 2R is uncountable, as |R | < |2R | by Cantor
Theorem but 2R is not a subset of R
Also N R and N is not uncountable
iff
NO
For example A = {} is countable as it is finite, but N * {}
In fact A can be any finite set, or any infinite set that does not
include N, for example A = {{n} : n N }
is 1 1 and
B = {b0 , b1 , b2 , . . . }
CHAPTER 1
PART 5: Fundamental Proof Techniques
1. Mathematical Induction
2. The Pigeonhole Principle
3. The Diagonalization Principle
B = {b1 , ...bm }, m 1
(a , b ) R }