Escolar Documentos
Profissional Documentos
Cultura Documentos
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 1
Decidability vs. Enumerability
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 2
Decidability vs. Enumerability (2)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 3
Reformulation
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 4
One Direction
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 5
Other Direction
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 6
In Parallel?
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 7
Claim
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 8
Revised View of the World of Languages
enumerable
decidable
context free
regular
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 9
Enumerators
0
1 1 0
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 10
Theorem
Will show
If E enumerates language A, then some TM M accepts
A.
If M accepts A, then some enumerator E enumerates it.
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 11
Theorem
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 12
Theorem
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 13
Theorem
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 14
What is an Algorithm???????
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 15
Indeed, What is an Algorithm?
Informally
a recipe
a procedure
a computer program
who cares? I know it when I see it :-(
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 16
Indeed, What is an Algorithm?
Historically,
notion has long history in Mathematics (starting with
Euclid’s gcd algorithm), but
not precisely defined until 20th century
informal notions rarely questioned,
still, they were insufficient
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 18
Church-Turing Thesis
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 20
Church-Turing Thesis
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 21
Wild Models
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 22
Hilbert’s 10th Problem
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 23
Hilbert’s Tenth Problem
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 24
Hilbert’s Tenth Problem
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 25
Hilbert’s Tenth Problem
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 26
Reformulating Hilbert’s Tenth Problem
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 27
Univariate Polynomials
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 28
Univariate Polynomials (2)
Note that
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 29
Univariate Polynomials (3)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 30
Univariate Polynomials (4)
In fact, D1 is decidable.
Can show that all real roots of p[x] lie inside interval
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 31
Encoding
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 32
Encoding
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 33
High-Level Description
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 34
Technical Details
4 vertexes edges
1
(1,2,3,4)((1,2),(2,3),(3,1),(1,4))
3 2
G <G>
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 35
More Details
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 36
Detailed Algorithm
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 39
Univeral Turing Machines
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 40
Universal Turing Machines (2)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 41
Universal Turing Machines (3)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 42
The Halting Problem
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 43
CFG, NFA, DFA Reminders
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 44
Acceptance Problem
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 45
The Acceptance Problem
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 46
Acceptance, Again
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 47
Acceptance (2)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 48
Acceptance (3)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 49
Acceptance (4)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 50
Self Reference (4)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 51
The Punch Line
So far we have,
(
reject if M accepts hM i
D(hM i) =
accept if M does not accept hM i
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 52
Once Again
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 53
A Non-enumerable Language
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 54
A Non-enumerable Language
Earlier we saw
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 55
ATM is not Enumerable
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 56
Languages
???
We saw
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 58
Comparing Sizes of Sets
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 59
Comparing Sizes of Sets (2)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 60
Correspondence
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 61
Correspondence (2)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 62
Correspondence
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 63
Countable Sets
either A is finite, or
A has the same size as N , the natural numbers.
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 64
Pop Quiz
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 65
Pop Quiz #2
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 66
Rational Numbers
Let nm o
Q= | m, n ∈ N
n
Theorem: Q is countable.
This claim may seem counterintuitive.
Idea
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 67
Rational Numbers (2)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 68
The Real Numbers
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 69
The Real Numbers
n f (n)
1 3.14159. . .
2 55.55555. . .
3 40.18642. . .
4 15.20601. . .
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 70
Diagonalization
n f (n)
1 3.14159. . .
2 55.55555. . .
3 40.18643. . .
4 15.20607. . .
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 71
Diagonalization n f (n)
1 3.14159. . .
2 55.55555. . .
3 40.18643. . .
4 15.20607. . .
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 72
Diagonalization
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 73
∃ Countably Many Turing Machines
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 74
∃ Countably Many Turing Machines (2)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 75
The Set of All Languages is Uncountable
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 76
The Set of Languages is Uncountable (2)
χ:L→B
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 77
The Set of Languages is Uncountable (3)
The map χ : L → B
is one-to-one and onto (why?),
and is hence a correspondence.
It follows that L is uncountable.
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 78
TMs vs. Languages
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 79
Reflections on Diagonalization
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 80
Diagonalization (2)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 81
Diagonalization (3)
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 83
Undecidable Problems
Proof idea:
Again, proof by diagonalization.
Will do this on the blackboard.
Next time (Friday!!) will prove this differently, by a
reduction from ATM .
Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. – p. 84