1
CS311 Computational Structures
Decidable and Undecidable Problems 1 Recall: Recognizable vs. - - PowerPoint PPT Presentation
CS311 Computational Structures Decidable and Undecidable Problems 1 Recall: Recognizable vs. Decidable A language L is Turing recognizable if some Turing machine recognizes it. Some strings not in L may cause the TM to loop Turing
1
CS311 Computational Structures
2
halt on all inputs
3
4
° First, assign a unique integer ≥ 1 to each q∈Q and x∈Σ ° Code each transition δ(qi,xj) = qk as 0i10j10k ° Code F = {qp,...qr} as 0p1...10r ° Code M by concatenating codes for all transitions and
F, separated by 11
5
6
confident they can in principle be turned into TMs
7
8
9
decidable.
10
P2, -ve instances into -ve
reduction.
instance of P2
11
yes no
12
yes no
13
14
15
program you feed it
16
17
18
19
20
° If M is in an accept state, S accepts; if M is in a reject
state, S rejects.
21
22
23
coefficients have a solution consisting of integers?
same output on all arguments?
24
(s2,t2),..., (sn,tn), is there a sequence of indices i1,i2,...,ik (duplications allowed) such that si1si2...sik = ti1ti2...tik ?
° The sequence 1, 2, 1, 3, 4 gives us
(s2,t2),..., (sn,tn), is there a sequence of indices i1,i2,...,ik (duplications allowed) such that si1si2...sik = ti1ti2...tik ?
° has no solution ° Why?
(s2,t2),..., (sn,tn), is there a sequence of indices i1,i2,...,ik (duplications allowed) such that si1si2...sik = ti1ti2...tik ?
instance of Post's Correspondence problem, whether there is a solution.
27
CS311 Computational Structures
28
recursive function or a λ-calculus expression
machines (partial recursive function, λ-calculus expressions…)
29
(large) integer
30
machine?
31
32
there were more real numbers than integers.
refresh your memory!
33
⃞
34
35
loops forever, then fk(k) = 0
36
37
38
39
while X ≠ 0 do Y:= succ(X) od X := 0
40
41
° A language is a member of P(A*)
42
43
L1 = { w ∈ A* | w starts with a }
L1 = { a, aa, ab, aaa, aab, … } X(L1)= { 0, 1, 0, 1, 1, 0, 0, 1, 1, … }
languages over A
44
45
46
47
encoded as an integer; each integer represents a formula or a sequence of formulae
proof of x.
ζ = ∀ y . ¬ω(p, y) asserts that ζ is unprovable
48
49
50
first argument.
then loopForever else true
51