


































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



































1
2
4
Accepting the Church-Turing thesis implies that these are the same question! Church-Turing thesis is usually recognized as applying to human computations, and therefore human thought processes.
Amazing Fact: It is possible to give precise examples of problems which are beyond the reach of mechanical computation as well as human intellect. We in fact “know the unknowable.”
5
decision problem to be interesting, the set of questions should be infinite.
good example. A computer program that can
intuitively must have figured out how to add numbers.
EG: “Does 8 equal the sum of 3 and 5?” is a bad example. Could easily write program for this instance without knowing how to add! Docsity.com
7
A: In the way defined above, the answer is
yes! We give two computer programs, both of which accept the input “Does God exist?”
One of these programs is correct! Therefore,
that computer program has solved the problem of deciding if God exists!
Q: Any misgivings?
A(String question){ return “No!” }
B(String question){ return “Yes!” }
8
A: Many possible misgivings. Here’s one:
“Solution” to existence of God surely not what is meant by solving the problem. We expected the solution to be arrived at by careful consideration of physical evidence, or by theological arguments, or some other intricate process.
CS viewpoint: Any algorithm which works only on a finite set of inputs is considered meaningless, as could always program a look- up table which gave correct solutions without using any insight. Docsity.com
10
To study what it means for a decision problem to be solvable, need a method of standardizing such problems and making them easily understood by computers. Can’t just come over to a computer and ask “Does 2 + 2 = 4?” and even if could, dealing with voice recognition, natural language processing, etc. takes us far afield to topics irrelevant to answering “is the problem solvable?”
Solution: represent each instance by a string:
more simply “2+2=4”.
Q: Define solvability language theoretically? Docsity.com
11
A: A decision problem P is solvable if its encoding by strings admits a computer program which inputs such encodings, always halts, and always outputs the correct answer. Furthermore, the set of encodings should be computable in its own right.
set corresponding to the YES instances.^1 Then
13
Sensible encoding of sensible decision problem would never result in an undecidable
don’t solve impossible problems unwittingly.
EG: “Does a given Java program with no infinite loops print out “I’m not loopy!” on some input?”
alphabet, and is just the set of Java programs
itself undecidable so second part becomes meaningless. Docsity.com
14
Before tackling fundamental decision problems of CS, start introspectively by considering if there are algorithms for… …telling if a given string is accepted by a given language of a fixed type C such as DFA’s,
…telling if a given language of type is C empty.
…telling if two given languages of the same
Each in turn, is encoded by a language.
16
b
a
0,1 (^) 0,
17
({a,b},{0,1},{(a,0,b),(a,1,b),(b,0,a),(b,1,a)},a,{a})
b
a
0,1 (^) 0,
19
({a,b},{0,1},{(a,0,b),(a,1,b),(b,0,a),(b,1,a)},a,{a})
b
a
0,1 (^) 0,
20
({a,b},{0,1},{(a,0,b),(a,1,b),(b,0,a),(b,1,a)},a,{a})
b
a
0,1 (^) 0,