1/22/25 - Cantor’s Diagonalization Argument
- Theoretical foundations of CS
- Follow up to CS 205 and CS 344
- Contemplation along with mathematical proofs
- Convey ideas
There are an infinite number of primes
- Suppose there are a finite number of primes
- So there is a largest prime
- Then is prime, but not in the list
Understanding the limitations of computations
- To get a realistic view of CS
- Truth behind what is done
Grades:
HW | Due | Exam |
---|---|---|
1 | 02/24 | 02/26 |
2 | 03/31 | 04/02 |
3 | 05/05 | ? |
HW is a tool for learning something, and testing you
Most of the exam is on HW 1 - checking the bare minimum
-
Writing rigorous proofs
-
No extension on the deadline max(HW1, Ex1) + max(HW2, Ex2) + max(HW3, Ex3) Out of 1000, above 900 to get an A
-
Scaling policy
-
Bonus points from exam
-
2 parts of the exam
-
Hard questions on the HW
-
Lecture - tell you what questions will be on the exam
-
All HW should be done in
-
OH on Monday - 2-3 in CoRE
-
First part - simple mathematical things
-
Second part - formal but outdated
-
Third part - more modern
Natural Numbers - countably infinite
- Through Peano’s axioms
- There exists a 1
- There is a thing called adding 1 to a number
- Natural numbers - extend to negatives - extend to fractions - extend to irrationals
- Start with something very simple, then add to it
is a bijection We want to show that is not surjective, so there exists an such that there does not exist an where .
For each
Claim: , so is not surjective.
this specific number does not have a preimage
-
Set up notations early on
-
Be as generous with English words
-
Cantor’s diagonalization
- Non-explicitly show that something exists
-
exists because we wrongly assumed exists
Suppose for the sake of contradiction Then we would like to show that… so that is not surjective. Let Then Then for all
- Following Sipser’s book from lectures 3-15
What is computation
-
The study of space and time (also like physics)
-
All of philosophy is just a misunderstanding of language
-
Space - on hard drive
-
Time - how long it takes before it spits out an answer
-
Things that you want to compute, but can’t compute
-
Can’t prove your solutions
- Finding the weather
- Diophantine equations
-
Modeling
- Input: weighted graph
- Languages - strings
- If you see 01, that is a delimiter
- Give all pairs as integers
- Sequence of bits
-
All possible bitstrings of length
-
if it is interpretable as (In the graph , is there a graph with weight at most ) and the answer is Yes
-
Who is making the interpretation
-
DFA
-
Can a DFA compute it
-
Context-free grammar - PDA
-
Turing Machine - considered to be universal - answer is yes
-
If you want the solution, we talk about a relation
- Strong if you talk about languages
- Canonical way of encoding