The Halting Problems Flashcards
How to study the notion of Computability:
Look at theoretical models (formalizations) of the intuitive notion of computability
Why?
Shows the limitations of what is computable
How to show that something is impossible:
- We’ve seen that this can be done using arguments by contradiction.
- But, to show that there is no computable / algorithmic solution for certain problems, we
need to specify what counts as an computation / algorithm. - Once we have settled this, we can use it to derive contradictions. . .
What can a TM do when stated on a given input x?
They can
1. halt / terminate: TM( x ) ↓
2. loop / run forever: TM( x ) ↑
How are TM recursively enumerable?
Only consists of a finite sequence of sumbols from a finite alphabet, they can be enumerated
(1) Assign them unique Godel numbers then list them in order of these numbers
(2) Try to come up with a way to generate all TMs
What is the Halting Set?
Given an emuration T0, T1, T2, … of TM, define the follow set of natural numbers: K
K is the set of indices of TM that halts if the input of their own index in the enumeration. The HALTING set
Note: T2(5) means that it is TM 2 running input 5
What is the big question (with the Halting Problem)?
Can you find a TM that decides for each number x ∃ ℕ, whether x ∃ K or x ∄ K?
Conclusion of the Halting Problem
And diagonization proof (by contradiction).
Claim: set K of natural numbers cannot be decided by a TM
Assumption: (for the sake of contradiction) There a exists a TM that decides the set K
Conclusion: There is no TM that decides for each number x ∃ ℕ, whether x ∃ K or x ∄ K
The Halting Problem is not computable by n TM.
By Turing’s Thesis, it is uncomputable
How can the set K be enumerated, by dovetailing?
Structure of a proof by diagonalization:
- Assume a claim about certain things.
- Make a list of all these things (the ‘table’).
- Define a new thing (of the same kind) using all the elements in this list.
- Derive a contradiction from the fact that this thing itself should be in the list.