« previous | Friday, November 16, 2012 | next »
Homework 9 posted on course web page (read through all textbook NPC problems carefully)
Undecidability
Models of Computation
Clearly and unambiguously specify how computation takes place.
- Turing machines
- Random Access machines (more realistic, but with infinite memory)
- ...
They are all equivalent!
Church-Turing Thesis
Anything we reasonably think of as an algorithm can be computed by a Turing Machine
Set Theory Concepts
If and are sets, then the set of all functions from to is denoted by .
If is a set, then denotes the power set (i.e. is the set of all subsets of )
Cardinality
Two sets and are said to have the same cardinality iff there exists a bijective function from onto . (See CSCE 222 Lecture 11 and MATH 302 Lecture 8#Function)
How do set theorists count?
- Keep including all previously created sets as elements of the next set
Power set cardinality: since the bijection is given by the characteristic function:
We say if there is an injective function from to
We say if there is no biective function from to
Cantor's Theorem
Let be any set. Then
Proof
Since function from to given by is injective, we have .
Claim. There does not exist any function from to that is surjective.
is not contained in .
An element is either contained in or not:
- by definition of , so .
- by definition of , so .
Therefore is not surjective. This proves the claim.
Q.E.D.
Countable Sets
Let be the set of natural numbers.
A set is called countable iff there exists a surjective function from onto .
Thus finite sets are countable, is countable, but the set of real numbers is not countable.
An Uncountable Set
The set is not countable.
Proof. We have by Cantor's theorem.
Since and is a subset of we can conclude that
The cardinality of computer programs is countable (), but the cardinality of problems is not ()