uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 1 Turing Reducibility

Size: px
Start display at page:

Download "uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 1 Turing Reducibility"

Transcription

1 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 1 Turing Reducibility

2 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 2 FINITE We have already seen that the language FINITE = {< M, x >: L(M) is finite} is undecidable and it is neither r.e. nor co-r.e. (does not belong to Σ 0 1 or Π 0 1). In the following lectures we shall try to find an appropriate place for FINITE, and will introduce a hierarchy of undecidable problems.

3 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 3 Oracle An oracle for a language L over Σ or a subset A of natural numbers is a device (magical) that decides the membership question for the language or the subset.

4 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 4 Relative Computability Suppose there is an oracle for MP a. Can that be used by a Turing machine to decide all (or some) other undecidable languages e.g. HP, EMPTY, FINITE etc.? a MP = {< M, x >: M is a Turing machine and x L(M)}.

5 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 5 Oracle Turing Machine An oracle Turing machine M L is a Turing machine M equipped with an oracle for the language L. The oracle Turing machine M L can send a membership query about a string (x? L) to the oracle and can get yes/no answer. The computation continues depending on the answer.

6 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 6 What is an Oracle? The first answer is, we don t care. But then we may view an oracle for a language L as an infinite length read-only tape, where the member strings of L (elements of A) are written in some order (lexicographic). The oracle Turing machine can search the tape for a string and can get yes/no answer in finite time.

7 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 7 What is an Oracle? Problem with such a device is the infinite information, which is not permitted in a normal Turing machine.

8 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 8 A T B A Turing machine with an oracle for a language B is denoted by M B. If a language A is decided by an oracle Turing machine M B, then we call A to be decidable relative to B, or A is Turing reducible to B, and we write A T B. A is also called recursive in B or B-recursive.

9 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 9 B-recursively enumerable Similarly, A is r.e. relative to B, if A is accepted by M B i.e. A = L(M B ). The language is also called r.e. in B or B-recursively enumerable.

10 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 10 HP T MP M MP : input < M, x > 1. Modify M by changing the reject states also to accept states. Call it M. 2. Ask the oracle whether < M, x > MP. 3. If the answer is yes, accept; else reject.

11 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 11 HP T MP M accepts x iff M halts on x. M MP decides HP or HP is decided relative to MP.

12 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 12 MP T HP M HP : input < M, x > 1. Modify M by changing the reject state to a non-reject state (modify the out going transitions). There may be a new non-reachable reject state. Call the new machine M. 2. Ask the oracle whether < M, x > HP. 3. If the answer is yes, accept; else reject.

13 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 13 Properties of T Let A be recursive in B (A T B). If B is recursive, then so is A. If B is r.e., then so is A. If A is undecidable, then so is B. In general, A is no more difficult than B.

14 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 14 Properties of T 1. L T L - reflexive. 2. If L 1 T L 2 and L 2 T L 3, then L 1 L 3 - transitive. 3. L T L. Note that MP m MP (otherwise MP will be r.e.).

15 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 15 Properties of T There are r.e. languages A and B so that A T B and also B T A. The Turing reducibility relation T is not a total order.

16 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 16 Properties of T A T B iff A T B and B T A. As an example MP T HP. It is not difficult to prove that T is an equivalence relation (reflexive, transitive and symmetric) over 2 Σ.

17 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 17 Turing Degree The equivalence classes of T are called Turing degrees (T-degree). The T-degree of a language A is deg(a). The Turing reducibility on the equivalence classes is a partial ordering.

18 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 18 Recursive Languages For all recursive languages A, B, A T B i.e. for all recursive languages A, B, A T B.

19 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 19 Turing Degree The recursive languages ( 0 1 ) is a Turing degree. It is called zero (0) as the members of this class can be decided by an oracle Turing machine with an oracle for the empty set, or the complete Σ. For a recursive language, A, deg(a) = 0.

20 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 20 Turing Degree Let A and B be languages so that A T B but B T A, so deg(a) < deg(b) i.e. the language B is more undecidable than the language A. Note that A or B cannot be recursive.

21 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 21 Machine N <M> N <M> : input n 1. Run M in parallel on the strings of Σ. 2. If M accepts any of the strings, accept.

22 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 22 Running M in parallel 1. The machine N <M> enumerates 1, 2, 3, 4,, n,. 2. The number n is decomposed in two parts n (m, t), where n = 2 m 1 (2t 1). 3. Simulates M on x = s m for t steps, where x is the m th string of Σ.

23 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 23 Running M in parallel If Σ = {s 1, s 2, s 3,, s n, }, then the machine N <M> simulates < M > on s 1 for 1 step, then on s 1 and s 2 for 2 steps each, then on s 1, s 2 and s 3 for 3 steps each etc.

24 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 24 L(N <M> ) = L(N <M> ) Σ if L(M), if L(M) =. Note that N <M> halts only on accept.

25 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 25 EMPTY T HP M HP : input < M > 1. Construct N <M> as described earlier. 2. Ask the oracle whether < N <M>, ε > HP. 3. If the answer is yes, reject; else accept. M HP decides EMPTY relative to HP.

26 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 26 Machine K <M> K <M> : input w 1. Copy w to a tape. 2. Run M in parallel on all strings of Σ whose lengths are greater than w. 3. If M accepts some y Σ, y > w, then 4. If w = 0 n 1 n for some n N, accept, else reject.

27 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 27 Language of K <M> If L(M) is finite, there is a string of maximum length say m. No input w of length m will be accepted by K <M>. So the language of K <M> is finite and so is regular.

28 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 28 Language of K <M> If L(M) is infinite, for every input w, there is a string of length > w in L(M). But then only those w s are accepted that are of the form 0 n 1 n, for some n N. So the language of K <M> is {0 n 1 n : n 0}, that is not regular.

29 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 29 Language of K <M> L(K <M> ) = regular (finite) if L(M) is finite, {0 n 1 n : n 0} if L(M) is infinite.

30 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 30 FINITE T REGULAR M REGULAR fin : input < M > 1. Construct K <M> as described earlier. 2. Ask the oracle whether < K <M> > REGULAR. 3. If the answer is yes, accept; else reject. M REGULAR f in decides FINITE.

31 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 31 Hierarchy of Membership Problems MP 0 = MP = {< M, x >: M accepts x} MP 1 = {< M MP 0, x >: M MP 0 accepts x} MP n = {< M MP n 1, x >: M MP n 1 accepts x}

32 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 32 Hierarchy of Membership Problems We may view MP = MP 0 = {< M, x >: M accepts x}, where M is an oracle Turing machine, equipped with an oracle for (or Σ ). The answer to every query is always false (or true) and the dynamics of M is same as that of M.

33 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 33 Hierarchy of Membership Problems Let < M, x > MP 0. We can construct < M MP 0, x > MP 1 so that on both yes or no answers to a query the machine continues with the computation of M. In this sense MP 0 can be embedded in MP 1 like a subset.

34 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 34 MP 1 T MP 0 Let H MP 0 be a oracle Turing machine that decides MP 1. We design D MP 0 D MP 0 : input w as follows: 1. If w < M MP 0 >, reject. 2. If H MP 0 accepts < M MP 0, M MP 0 reject; else accept. >, then

35 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 35 MP 2 T MP 1 D MP 0 accepts < D MP 0 > iff H MP 0 rejects < D MP 0, D MP 0 > iff D MP 0 rejects < D MP 0 > This is a contradiction, so MP 1 T MP 0. In general MP n T MP n 1 - there is an infinite hierarchy of these problems.

36 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 36 Definitions Σ 0 1 : the collection of r.e. languages. An r.e. language is also defined by a 2-ary decidable predicate R(x, y) in the following way. L = {y Σ : xr(x, y)}.

37 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 37 Definitions Let R(x, y) be a 2-ary predicate decided by a Turing machine D R. We have the following machine accepting L. M L : input y 1. For each x Σ, run D R on < x, y >. 2. If D R accept, accept; else go for the next element of Σ.

38 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 38 Definitions We know that MP is defined as {< M, x > Σ : n Accept(< M, x >, n)}, so the language MP is in Σ 0 1.

39 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 39 Definitions Π 0 1 : the collection of languages whose complements are r.e. Let L Σ 0 1 ; so there is a decidable 2-ary predicate R(x, y) so that L = {y Σ : xr(x, y)}. The complement language of L is defined as L = {y Σ : x R(x, y)}. Note: the predicate R(x, y) is also decidable.

40 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 40 Definitions A language L is in Π 0 1 if there is a 2-ary decidable predicate Q(x, y) so that, L = {y Σ : xq(x, y)}

41 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 41 Definitions We know that the language MP is defined as {< M, x > Σ : n Accept(< M, x >, n)}, so the language MP is in Π 0 1.

42 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 42 Definitions 0 1: the collection of recursive languages. Σ 0 1 Π 0 1 = 0 1. Any Turing decidable language is in this class. In fact any decidable language is in both Π 0 1 and Σ 0 1.

43 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 43 Definitions Σ 0 n+1: the collection of languages r.e. relative to some language B Σ 0 n. It can be proved that a set A is in Σ 0 n+1 if and only if there is a (n + 2)-ary decidable predicate R so that A = {x : x 1 x 2 Qx n+1 R(x, x 1, x 2,, x n+1 )}. Q = if n is odd, otherwise it is.

44 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 44 An Example of Σ 0 2 Language Let R(x, y, z) be a 3-ary recursive predicate over Σ. So the following language is recursive. L R = {< x, y, z >: R(x, y, z) is true}. Let a Turing machine D R decides L R.

45 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 45 An Example of Σ 0 2 Language M 1 : input < x, y > 1. Pick up the first z Σ and simulate D R on < x, y, z >. 2. If D R accepts, start the simulation of (1) with the next z Σ. 3. If D R rejects, accept.

46 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 46 An Example of Σ 0 2 Language The Turing machine D R is total, so the simulation reaches either accept or reject state on every input and L 1 = L(M 1 ) = {< x, y >: z R (< x, y >, z)} Σ 0 1 = {< x, y >: zr (< x, y >, z)} where R(x, y, z) iff R (< x, y >, z).

47 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 47 An Example of Σ 0 2 Language Let there be an oracle for the language L 1. We design the following oracle Turing machine. M L 1 2 : input x 1. Pick up the first y Σ 2. Query the oracle to determine whether < x, y > L If NO, accept; if YES, take the next y Σ and goto (2).

48 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 48 An Example of Σ 0 2 Language The language of M L 1 2 is L 2 = L(M L 1 2 ) = {x : y(< x, y > L 1 )} = {x : y( zr(x, y, z))}, = {x : y zr(x, y, z)} The machine M L 1 2 accepts an x if there is a y, so that it is not the case that there is a z, so that < x, y, z > L R.

49 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 49 An Example of Σ 0 2 Language The language of L 2 is r.e. in L 1 Σ 0 1 and is of the form {x : y zr(x, y, z)}.

50 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 50 FINITE We have already defined the language FINITE = {< M >: n x t( x > n (M accepts x in t steps))}. We can combine the two universal quantifiers using the following bijective function f : N N N, f(m, t) = 2 m 1 (2t 1) = k(say), where m = π 1 (f 1 (k)) and t = π 2 (f 1 (k)). The string x = s m in Σ.

51 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 51 FINITE FINITE = {< M >: n k( s m > n (M accepts s m in t steps))}, where m = π 1 (f 1 (k)) and t = π 2 (f 1 (k)). The string s m s the m th string in Σ.

52 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 52 Σ 0 n+1 Language Let R(x, y, x) be a (n + 2)-ary decidable predicate over Σ. So the following language is recursive. L R = {< x, y, x >: R(x, y, x) is true}. Let a Turing machine D R decides L R.

53 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 53 Σ 0 n+1 Language M 1 : input < x, y > 1. Pick up the first x (Σ ) n and simulate D R on < x, y, x >. 2. If D R accepts, start the simulation of (1) with the next x (Σ ) n. 3. If D R rejects, accept.

54 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 54 Σ 0 n+1 Language The Turing machine D R is total, so the simulation reaches either accept or reject state on every input and L 1 = L(M 1 ) = {< x, y >: x R (< x, y >, x)} = Σ 0 n = {< x, y >: xr (< x, y >, x)} where R(x, y, x) iff R (< x, y >, x).

55 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 55 Σ 0 n+1 Language Let there be an oracle for the language L 1. We design the following oracle Turing machine. M L 1 2 : input x 1. Pick up the first y Σ 2. Query the oracle to determine whether < x, y > L If NO, accept; if YES, take the next y Σ and goto (2).

56 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 56 Σ 0 n+1 Language The language of M L 1 2 is L 2 = L(M L 1 2 ) = {x : y(< x, y > L 1 )} = {x : y( xr(x, y, x))} = {x : y xr(x, y, x)} The machine M L 1 2 accepts an x if there is a y, so that it is not the case that there is a x, so that < x, y, x > L R.

57 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 57 Definitions Π 0 n+1 : the collection of A where A Σ0 n+1. It can be proved that a set A is in Π 0 n+1 if and only if there is a (n + 2)-ary decidable predicate R so that A = {x : x 1 x 2 Qx n+1 R(x, x 1, x 2,, x n+1 )}. Q = if n is odd, otherwise it is.

58 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 58 Π 0 2 Language The following language is in Σ 0 2. L = {x Σ : y zr(x, y, z)}. So the following language is in Π 0 2. L = {x Σ : y zr(x, y, z)} = {x Σ : y zr(x, y, z)} where R is R(x, y, z).

59 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 59 INFINITE INFINITE = {< M >: n x t( x n (M accepts x in t steps))} We can combine the two existential quantifiers and get INFINITE = {< M >: n m( x n (M accepts x in t steps))} where x = s k (k th string of Σ ) and m = 2 k 1 (2t 1).

60 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 60 Definitions 0 n = Σ0 n Π0 n.

61 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 61 Arithmetic Hierarchy 0 Σ 0 3 Π3 COFIN FIN Σ 0 2 TOTAL Π r.e. 1 MP HP Σ 0 1 Π 0 1 EMPTY co r.e. Recursive Languages

62 uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 62 Reference Automata and Computability by Dexter C Kozen Pub. Springer, ISBN

Decidability. Linz 6 th, Chapter 12: Limits of Algorithmic Computation, page 309ff

Decidability. Linz 6 th, Chapter 12: Limits of Algorithmic Computation, page 309ff Decidability Linz 6 th, Chapter 12: Limits of Algorithmic Computation, page 309ff 1 A property P of strings is said to be decidable if the set of all strings having property P is a recursive set; that

More information

Computability and Complexity

Computability and Complexity Computability and Complexity Lecture 5 Reductions Undecidable problems from language theory Linear bounded automata given by Jiri Srba Lecture 5 Computability and Complexity 1/14 Reduction Informal Definition

More information

CS154, Lecture 10: Rice s Theorem, Oracle Machines

CS154, Lecture 10: Rice s Theorem, Oracle Machines CS154, Lecture 10: Rice s Theorem, Oracle Machines Moral: Analyzing Programs is Really, Really Hard But can we more easily tell when some program analysis problem is undecidable? Problem 1 Undecidable

More information

SD & Turing Enumerable. Lecture 33: Reductions and Undecidability. Lexicographically Enumerable. SD & Turing Enumerable

SD & Turing Enumerable. Lecture 33: Reductions and Undecidability. Lexicographically Enumerable. SD & Turing Enumerable SD & Turing Lecture 33: Reductions and Undecidability CSCI 81 Spring, 2012 Kim Bruce Theorem: A language is SD iff it is Turing enumerable. Proof: Spose L is Turing enumerable. Show L is SD. Let w be input.

More information

CSE 105 Theory of Computation

CSE 105 Theory of Computation CSE 105 Theory of Computation http://www.jflap.org/jflaptmp/ Professor Jeanne Ferrante 1 Undecidability Today s Agenda Review and More Problems A Non-TR Language Reminders and announcements: HW 7 (Last!!)

More information

Turing Machines A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, q0, qaccept, qreject), where Q, Σ, Γ are all finite

Turing Machines A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, q0, qaccept, qreject), where Q, Σ, Γ are all finite The Church-Turing Thesis CS60001: Foundations of Computing Science Professor, Dept. of Computer Sc. & Engg., Turing Machines A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, q 0, q accept, q reject ), where

More information

Decision Problems with TM s. Lecture 31: Halting Problem. Universe of discourse. Semi-decidable. Look at following sets: CSCI 81 Spring, 2012

Decision Problems with TM s. Lecture 31: Halting Problem. Universe of discourse. Semi-decidable. Look at following sets: CSCI 81 Spring, 2012 Decision Problems with TM s Look at following sets: Lecture 31: Halting Problem CSCI 81 Spring, 2012 Kim Bruce A TM = { M,w M is a TM and w L(M)} H TM = { M,w M is a TM which halts on input w} TOTAL TM

More information

CS481F01 Solutions 8

CS481F01 Solutions 8 CS481F01 Solutions 8 A. Demers 7 Dec 2001 1. Prob. 111 from p. 344 of the text. One of the following sets is r.e. and the other is not. Which is which? (a) { i L(M i ) contains at least 481 elements }

More information

CS20a: Turing Machines (Oct 29, 2002)

CS20a: Turing Machines (Oct 29, 2002) CS20a: Turing Machines (Oct 29, 2002) So far: DFA = regular languages PDA = context-free languages Today: Computability 1 Church s thesis The computable functions are the same as the partial recursive

More information

Opleiding Informatica

Opleiding Informatica Opleiding Informatica Tape-quantifying Turing machines in the arithmetical hierarchy Simon Heijungs Supervisors: H.J. Hoogeboom & R. van Vliet BACHELOR THESIS Leiden Institute of Advanced Computer Science

More information

V Honors Theory of Computation

V Honors Theory of Computation V22.0453-001 Honors Theory of Computation Problem Set 3 Solutions Problem 1 Solution: The class of languages recognized by these machines is the exactly the class of regular languages, thus this TM variant

More information

CS 301. Lecture 18 Decidable languages. Stephen Checkoway. April 2, 2018

CS 301. Lecture 18 Decidable languages. Stephen Checkoway. April 2, 2018 CS 301 Lecture 18 Decidable languages Stephen Checkoway April 2, 2018 1 / 26 Decidable language Recall, a language A is decidable if there is some TM M that 1 recognizes A (i.e., L(M) = A), and 2 halts

More information

Lecture 20: conp and Friends, Oracles in Complexity Theory

Lecture 20: conp and Friends, Oracles in Complexity Theory 6.045 Lecture 20: conp and Friends, Oracles in Complexity Theory 1 Definition: conp = { L L NP } What does a conp computation look like? In NP algorithms, we can use a guess instruction in pseudocode:

More information

Turing Machine Recap

Turing Machine Recap Turing Machine Recap DFA with (infinite) tape. One move: read, write, move, change state. High-level Points Church-Turing thesis: TMs are the most general computing devices. So far no counter example Every

More information

1 Showing Recognizability

1 Showing Recognizability CSCC63 Worksheet Recognizability and Decidability 1 1 Showing Recognizability 1.1 An Example - take 1 Let Σ be an alphabet. L = { M M is a T M and L(M) }, i.e., that M accepts some string from Σ. Prove

More information

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS Automata Theory Lecture on Discussion Course of CS2 This Lecture is about Mathematical Models of Computation. Why Should I Care? - Ways of thinking. - Theory can drive practice. - Don t be an Instrumentalist.

More information

CSCE 551: Chin-Tser Huang. University of South Carolina

CSCE 551: Chin-Tser Huang. University of South Carolina CSCE 551: Theory of Computation Chin-Tser Huang huangct@cse.sc.edu University of South Carolina Computation History A computation history of a TM M is a sequence of its configurations C 1, C 2,, C l such

More information

CSE 105 THEORY OF COMPUTATION

CSE 105 THEORY OF COMPUTATION CSE 105 THEORY OF COMPUTATION Spring 2018 http://cseweb.ucsd.edu/classes/sp18/cse105-ab/ Today's learning goals Sipser Ch 5.1, 5.3 Define and explain core examples of computational problems, including

More information

Lecture Notes: The Halting Problem; Reductions

Lecture Notes: The Halting Problem; Reductions Lecture Notes: The Halting Problem; Reductions COMS W3261 Columbia University 20 Mar 2012 1 Review Key point. Turing machines can be encoded as strings, and other Turing machines can read those strings

More information

Reductions in Computability Theory

Reductions in Computability Theory Reductions in Computability Theory Prakash Panangaden 9 th November 2015 The concept of reduction is central to computability and complexity theory. The phrase P reduces to Q is often used in a confusing

More information

There are two main techniques for showing that problems are undecidable: diagonalization and reduction

There are two main techniques for showing that problems are undecidable: diagonalization and reduction Reducibility 1 There are two main techniques for showing that problems are undecidable: diagonalization and reduction 2 We say that a problem A is reduced to a problem B if the decidability of A follows

More information

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class CSE 105 THEORY OF COMPUTATION Spring 2018 review class Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with confidence. Identify areas to focus

More information

Computational Models Lecture 8 1

Computational Models Lecture 8 1 Computational Models Lecture 8 1 Handout Mode Nachum Dershowitz & Yishay Mansour. Tel Aviv University. May 17 22, 2017 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

CSE 105 THEORY OF COMPUTATION

CSE 105 THEORY OF COMPUTATION CSE 105 THEORY OF COMPUTATION Spring 2017 http://cseweb.ucsd.edu/classes/sp17/cse105-ab/ Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 15-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY THURSDAY APRIL 3 REVIEW for Midterm TUESDAY April 8 Definition: A Turing Machine is a 7-tuple T = (Q, Σ, Γ, δ, q, q accept, q reject ), where: Q is a

More information

Computability Crib Sheet

Computability Crib Sheet Computer Science and Engineering, UCSD Winter 10 CSE 200: Computability and Complexity Instructor: Mihir Bellare Computability Crib Sheet January 3, 2010 Computability Crib Sheet This is a quick reference

More information

The Turing Machine. Computability. The Church-Turing Thesis (1936) Theory Hall of Fame. Theory Hall of Fame. Undecidability

The Turing Machine. Computability. The Church-Turing Thesis (1936) Theory Hall of Fame. Theory Hall of Fame. Undecidability The Turing Machine Computability Motivating idea Build a theoretical a human computer Likened to a human with a paper and pencil that can solve problems in an algorithmic way The theoretical provides a

More information

CSE 105 THEORY OF COMPUTATION

CSE 105 THEORY OF COMPUTATION CSE 105 THEORY OF COMPUTATION Spring 2016 http://cseweb.ucsd.edu/classes/sp16/cse105-ab/ Today's learning goals Sipser Ch 4.1, 5.1 Define reductions from one problem to another. Use reductions to prove

More information

Homework 8. a b b a b a b. two-way, read/write

Homework 8. a b b a b a b. two-way, read/write Homework 8 309 Homework 8 1. Describe a TM that accepts the set {a n n is a power of 2}. Your description should be at the level of the descriptions in Lecture 29 of the TM that accepts {ww w Σ } and the

More information

CS5371 Theory of Computation. Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)

CS5371 Theory of Computation. Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG) CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG) Objectives Recall that decidable languages are languages that can be decided by TM (that means,

More information

1 Reducability. CSCC63 Worksheet Reducability. For your reference, A T M is defined to be the language { M, w M accepts w}. Theorem 5.

1 Reducability. CSCC63 Worksheet Reducability. For your reference, A T M is defined to be the language { M, w M accepts w}. Theorem 5. CSCC63 Worksheet Reducability For your reference, A T M is defined to be the language { M, w M accepts w}. 1 Reducability Theorem 5.1 HALT TM = { M, w M is a T M that halts on input w} is undecidable.

More information

Theory of Computation

Theory of Computation Theory of Computation Lecture #10 Sarmad Abbasi Virtual University Sarmad Abbasi (Virtual University) Theory of Computation 1 / 35 Lecture 10: Overview Undecidability of the Halting Problem Russell s Paradox

More information

CSE 105 Theory of Computation

CSE 105 Theory of Computation CSE 105 Theory of Computation http://www.jflap.org/jflaptmp/ Professor Jeanne Ferrante 1 Undecidability Today s Agenda Review: The TM Acceptance problem, A TM The Halting Problem for TM s Other problems

More information

17.1 The Halting Problem

17.1 The Halting Problem CS125 Lecture 17 Fall 2016 17.1 The Halting Problem Consider the HALTING PROBLEM (HALT TM ): Given a TM M and w, does M halt on input w? Theorem 17.1 HALT TM is undecidable. Suppose HALT TM = { M,w : M

More information

Computation Histories

Computation Histories 208 Computation Histories The computation history for a Turing machine on an input is simply the sequence of configurations that the machine goes through as it processes the input. An accepting computation

More information

Computational Models Lecture 8 1

Computational Models Lecture 8 1 Computational Models Lecture 8 1 Handout Mode Ronitt Rubinfeld and Iftach Haitner. Tel Aviv University. May 11/13, 2015 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

1 PSPACE-Completeness

1 PSPACE-Completeness CS 6743 Lecture 14 1 Fall 2007 1 PSPACE-Completeness Recall the NP-complete problem SAT: Is a given Boolean formula φ(x 1,..., x n ) satisfiable? The same question can be stated equivalently as: Is the

More information

Decidability: Church-Turing Thesis

Decidability: Church-Turing Thesis Decidability: Church-Turing Thesis While there are a countably infinite number of languages that are described by TMs over some alphabet Σ, there are an uncountably infinite number that are not Are there

More information

Further discussion of Turing machines

Further discussion of Turing machines Further discussion of Turing machines In this lecture we will discuss various aspects of decidable and Turing-recognizable languages that were not mentioned in previous lectures. In particular, we will

More information

CS20a: Turing Machines (Oct 29, 2002)

CS20a: Turing Machines (Oct 29, 2002) CS20a: Turing Machines (Oct 29, 2002) So far: DFA = regular languages PDA = context-free languages Today: Computability 1 Handicapped machines DFA limitations Tape head moves only one direction 2-way DFA

More information

Lecture 12: Mapping Reductions

Lecture 12: Mapping Reductions Lecture 12: Mapping Reductions October 18, 2016 CS 1010 Theory of Computation Topics Covered 1. The Language EQ T M 2. Mapping Reducibility 3. The Post Correspondence Problem 1 The Language EQ T M The

More information

Introduction to Turing Machines. Reading: Chapters 8 & 9

Introduction to Turing Machines. Reading: Chapters 8 & 9 Introduction to Turing Machines Reading: Chapters 8 & 9 1 Turing Machines (TM) Generalize the class of CFLs: Recursively Enumerable Languages Recursive Languages Context-Free Languages Regular Languages

More information

Lecture 23: Rice Theorem and Turing machine behavior properties 21 April 2009

Lecture 23: Rice Theorem and Turing machine behavior properties 21 April 2009 CS 373: Theory of Computation Sariel Har-Peled and Madhusudan Parthasarathy Lecture 23: Rice Theorem and Turing machine behavior properties 21 April 2009 This lecture covers Rice s theorem, as well as

More information

Computability Theory. CS215, Lecture 6,

Computability Theory. CS215, Lecture 6, Computability Theory CS215, Lecture 6, 2000 1 The Birth of Turing Machines At the end of the 19th century, Gottlob Frege conjectured that mathematics could be built from fundamental logic In 1900 David

More information

Exam Computability and Complexity

Exam Computability and Complexity Total number of points:... Number of extra sheets of paper:... Exam Computability and Complexity by Jiri Srba, January 2009 Student s full name CPR number Study number Before you start, fill in the three

More information

Computational Models Lecture 9, Spring 2009

Computational Models Lecture 9, Spring 2009 Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Computational Models Lecture 9, Spring 2009 Reducibility among languages Mapping reductions More undecidable

More information

What languages are Turing-decidable? What languages are not Turing-decidable? Is there a language that isn t even Turingrecognizable?

What languages are Turing-decidable? What languages are not Turing-decidable? Is there a language that isn t even Turingrecognizable? } We ll now take a look at Turing Machines at a high level and consider what types of problems can be solved algorithmically and what types can t: What languages are Turing-decidable? What languages are

More information

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler Complexity Theory Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Reinhard

More information

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181. Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität

More information

CS154, Lecture 17: conp, Oracles again, Space Complexity

CS154, Lecture 17: conp, Oracles again, Space Complexity CS154, Lecture 17: conp, Oracles again, Space Complexity Definition: conp = { L L NP } What does a conp computation look like? In NP algorithms, we can use a guess instruction in pseudocode: Guess string

More information

CpSc 421 Homework 9 Solution

CpSc 421 Homework 9 Solution CpSc 421 Homework 9 Solution Attempt any three of the six problems below. The homework is graded on a scale of 100 points, even though you can attempt fewer or more points than that. Your recorded grade

More information

Computability Theory

Computability Theory Computability Theory Cristian S. Calude May 2012 Computability Theory 1 / 1 Bibliography M. Sipser. Introduction to the Theory of Computation, PWS 1997. (textbook) Computability Theory 2 / 1 Supplementary

More information

AN INTRODUCTION TO COMPUTABILITY THEORY

AN INTRODUCTION TO COMPUTABILITY THEORY AN INTRODUCTION TO COMPUTABILITY THEORY CINDY CHUNG Abstract. This paper will give an introduction to the fundamentals of computability theory. Based on Robert Soare s textbook, The Art of Turing Computability:

More information

Final exam study sheet for CS3719 Turing machines and decidability.

Final exam study sheet for CS3719 Turing machines and decidability. Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,

More information

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, Class 8 Nancy Lynch

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, Class 8 Nancy Lynch 6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, 2010 Class 8 Nancy Lynch Today More undecidable problems: About Turing machines: Emptiness, etc. About

More information

Umans Complexity Theory Lectures

Umans Complexity Theory Lectures Umans Complexity Theory Lectures Lecture 12: The Polynomial-Time Hierarchy Oracle Turing Machines Oracle Turing Machine (OTM): Deterministic multitape TM M with special query tape special states q?, q

More information

6.045J/18.400J: Automata, Computability and Complexity. Quiz 2. March 30, Please write your name in the upper corner of each page.

6.045J/18.400J: Automata, Computability and Complexity. Quiz 2. March 30, Please write your name in the upper corner of each page. 6.045J/18.400J: Automata, Computability and Complexity March 30, 2005 Quiz 2 Prof. Nancy Lynch Please write your name in the upper corner of each page. Problem Score 1 2 3 4 5 6 Total Q2-1 Problem 1: True

More information

CSE 555 Homework Three Sample Solutions

CSE 555 Homework Three Sample Solutions CSE 555 Homework Three Sample Solutions Question 1 Let Σ be a fixed alphabet. A PDA M with n states and stack alphabet of size σ may recognize the empty language; if its language is non-empty then denote

More information

Limits of Computability

Limits of Computability Limits of Computability Wolfgang Schreiner Wolfgang.Schreiner@risc.jku.at Research Institute for Symbolic Computation (RISC) Johannes Kepler University, Linz, Austria http://www.risc.jku.at Wolfgang Schreiner

More information

Computational Models Lecture 8 1

Computational Models Lecture 8 1 Computational Models Lecture 8 1 Handout Mode Ronitt Rubinfeld and Iftach Haitner. Tel Aviv University. April 18/ May 2, 2016 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

2 Computable and Computably Enumerable Sets

2 Computable and Computably Enumerable Sets Notes For CMSC 650- COMPUTABILITY by A.Amir and W.I. Gasarch 1 Introduction We take our model of computation to be Java Programs. Traditionally one defines Turing Machines and we will use that terminology,

More information

6.045 Final Exam Solutions

6.045 Final Exam Solutions 6.045J/18.400J: Automata, Computability and Complexity Prof. Nancy Lynch, Nati Srebro 6.045 Final Exam Solutions May 18, 2004 Susan Hohenberger Name: Please write your name on each page. This exam is open

More information

Notes for Lecture Notes 2

Notes for Lecture Notes 2 Stanford University CS254: Computational Complexity Notes 2 Luca Trevisan January 11, 2012 Notes for Lecture Notes 2 In this lecture we define NP, we state the P versus NP problem, we prove that its formulation

More information

CS 125 Section #10 (Un)decidability and Probability November 1, 2016

CS 125 Section #10 (Un)decidability and Probability November 1, 2016 CS 125 Section #10 (Un)decidability and Probability November 1, 2016 1 Countability Recall that a set S is countable (either finite or countably infinite) if and only if there exists a surjective mapping

More information

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET Regular Languages and FA A language is a set of strings over a finite alphabet Σ. All languages are finite or countably infinite. The set of all languages

More information

Undecibability. Hilbert's 10th Problem: Give an algorithm that given a polynomial decides if the polynomial has integer roots or not.

Undecibability. Hilbert's 10th Problem: Give an algorithm that given a polynomial decides if the polynomial has integer roots or not. Undecibability Hilbert's 10th Problem: Give an algorithm that given a polynomial decides if the polynomial has integer roots or not. The problem was posed in 1900. In 1970 it was proved that there can

More information

Introduction to Turing Machines

Introduction to Turing Machines Introduction to Turing Machines Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 12 November 2015 Outline 1 Turing Machines 2 Formal definitions 3 Computability

More information

Computable Functions

Computable Functions Computable Functions Part I: Non Computable Functions Computable and Partially Computable Functions Computable Function Exists a Turing Machine M -- M Halts on All Input -- M(x) = f (x) Partially Computable

More information

Equivalent Variations of Turing Machines

Equivalent Variations of Turing Machines Equivalent Variations of Turing Machines Nondeterministic TM = deterministic TM npda = pushdown automata with n stacks 2PDA = npda = TM for all n 2 Turing machines with n tapes (n 2) and n tape heads has

More information

COL 352 Introduction to Automata and Theory of Computation Major Exam, Sem II , Max 80, Time 2 hr. Name Entry No. Group

COL 352 Introduction to Automata and Theory of Computation Major Exam, Sem II , Max 80, Time 2 hr. Name Entry No. Group COL 352 Introduction to Automata and Theory of Computation Major Exam, Sem II 2015-16, Max 80, Time 2 hr Name Entry No. Group Note (i) Write your answers neatly and precisely in the space provided with

More information

Automata Theory CS S-FR2 Final Review

Automata Theory CS S-FR2 Final Review Automata Theory CS411-2015S-FR2 Final Review David Galles Department of Computer Science University of San Francisco FR2-0: Halting Problem e(m) e(w) Halting Machine takes as input an encoding of a Turing

More information

Griffith University 3130CIT Theory of Computation (Based on slides by Harald Søndergaard of The University of Melbourne) Turing Machines 9-0

Griffith University 3130CIT Theory of Computation (Based on slides by Harald Søndergaard of The University of Melbourne) Turing Machines 9-0 Griffith University 3130CIT Theory of Computation (Based on slides by Harald Søndergaard of The University of Melbourne) Turing Machines 9-0 Turing Machines Now for a machine model of much greater power.

More information

DRAFT. Diagonalization. Chapter 4

DRAFT. Diagonalization. Chapter 4 Chapter 4 Diagonalization..the relativized P =?NP question has a positive answer for some oracles and a negative answer for other oracles. We feel that this is further evidence of the difficulty of the

More information

The Power of One-State Turing Machines

The Power of One-State Turing Machines The Power of One-State Turing Machines Marzio De Biasi Jan 15, 2018 Abstract At first glance, one state Turing machines are very weak: the Halting problem for them is decidable, and, without memory, they

More information

Decidability and Undecidability

Decidability and Undecidability Decidability and Undecidability Major Ideas from Last Time Every TM can be converted into a string representation of itself. The encoding of M is denoted M. The universal Turing machine U TM accepts an

More information

Advanced topic: Space complexity

Advanced topic: Space complexity Advanced topic: Space complexity CSCI 3130 Formal Languages and Automata Theory Siu On CHAN Chinese University of Hong Kong Fall 2016 1/28 Review: time complexity We have looked at how long it takes to

More information

1 Computational Problems

1 Computational Problems Stanford University CS254: Computational Complexity Handout 2 Luca Trevisan March 31, 2010 Last revised 4/29/2010 In this lecture we define NP, we state the P versus NP problem, we prove that its formulation

More information

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions CS 6743 Lecture 15 1 Fall 2007 1 Circuit Complexity 1.1 Definitions A Boolean circuit C on n inputs x 1,..., x n is a directed acyclic graph (DAG) with n nodes of in-degree 0 (the inputs x 1,..., x n ),

More information

CS 361 Meeting 26 11/10/17

CS 361 Meeting 26 11/10/17 CS 361 Meeting 26 11/10/17 1. Homework 8 due Announcements A Recognizable, but Undecidable Language 1. Last class, I presented a brief, somewhat inscrutable proof that the language A BT M = { M w M is

More information

Introduction to Languages and Computation

Introduction to Languages and Computation Introduction to Languages and Computation George Voutsadakis 1 1 Mathematics and Computer Science Lake Superior State University LSSU Math 400 George Voutsadakis (LSSU) Languages and Computation July 2014

More information

Decidability: Reduction Proofs

Decidability: Reduction Proofs Decidability: Reduction Proofs Basic technique for proving a language is (semi)decidable is reduction Based on the following principle: Have problem A that needs to be solved If there exists a problem

More information

JASS 06 Report Summary. Circuit Complexity. Konstantin S. Ushakov. May 14, 2006

JASS 06 Report Summary. Circuit Complexity. Konstantin S. Ushakov. May 14, 2006 JASS 06 Report Summary Circuit Complexity Konstantin S. Ushakov May 14, 2006 Abstract Computer science deals with many computational models. In real life we have normal computers that are constructed using,

More information

16.1 Countability. CS125 Lecture 16 Fall 2014

16.1 Countability. CS125 Lecture 16 Fall 2014 CS125 Lecture 16 Fall 2014 16.1 Countability Proving the non-existence of algorithms for computational problems can be very difficult. Indeed, we do not know how to prove P NP. So a natural question is

More information

Introduction. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Introduction. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR 1 Introduction Foundations of Computing Science Pallab Dasgupta Professor, Dept. of Computer Sc & Engg 2 Comments on Alan Turing s Paper "On Computable Numbers, with an Application to the Entscheidungs

More information

Undecidability and Rice s Theorem. Lecture 26, December 3 CS 374, Fall 2015

Undecidability and Rice s Theorem. Lecture 26, December 3 CS 374, Fall 2015 Undecidability and Rice s Theorem Lecture 26, December 3 CS 374, Fall 2015 UNDECIDABLE EXP NP P R E RECURSIVE Recap: Universal TM U We saw a TM U such that L(U) = { (z,w) M z accepts w} Thus, U is a stored-program

More information

An example of a decidable language that is not a CFL Implementation-level description of a TM State diagram of TM

An example of a decidable language that is not a CFL Implementation-level description of a TM State diagram of TM Turing Machines Review An example of a decidable language that is not a CFL Implementation-level description of a TM State diagram of TM Varieties of TMs Multi-Tape TMs Nondeterministic TMs String Enumerators

More information

Problems, and How Computer Scientists Solve Them Manas Thakur

Problems, and How Computer Scientists Solve Them Manas Thakur Problems, and How Computer Scientists Solve Them PACE Lab, IIT Madras Content Credits Introduction to Automata Theory, Languages, and Computation, 3rd edition. Hopcroft et al. Introduction to the Theory

More information

Name: Student ID: Instructions:

Name: Student ID: Instructions: Instructions: Name: CSE 322 Autumn 2001: Midterm Exam (closed book, closed notes except for 1-page summary) Total: 100 points, 5 questions, 20 points each. Time: 50 minutes 1. Write your name and student

More information

Deterministic Finite Automata. Non deterministic finite automata. Non-Deterministic Finite Automata (NFA) Non-Deterministic Finite Automata (NFA)

Deterministic Finite Automata. Non deterministic finite automata. Non-Deterministic Finite Automata (NFA) Non-Deterministic Finite Automata (NFA) Deterministic Finite Automata Non deterministic finite automata Automata we ve been dealing with have been deterministic For every state and every alphabet symbol there is exactly one move that the machine

More information

Reducability. Sipser, pages

Reducability. Sipser, pages Reducability Sipser, pages 187-214 Reduction Reduction encodes (transforms) one problem as a second problem. A solution to the second, can be transformed into a solution to the first. We expect both transformations

More information

Informal Statement Calculus

Informal Statement Calculus FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example

More information

Undecidable Problems and Reducibility

Undecidable Problems and Reducibility University of Georgia Fall 2014 Reducibility We show a problem decidable/undecidable by reducing it to another problem. One type of reduction: mapping reduction. Definition Let A, B be languages over Σ.

More information

198:538 Complexity of Computation Lecture 16 Rutgers University, Spring March 2007

198:538 Complexity of Computation Lecture 16 Rutgers University, Spring March 2007 198:538 Complexity of Computation Lecture 16 Rutgers University, Spring 2007 8 March 2007 In this lecture we discuss Shamir s theorem that PSPACE is the set of languages that have interactive proofs with

More information

ECS 120 Lesson 18 Decidable Problems, the Halting Problem

ECS 120 Lesson 18 Decidable Problems, the Halting Problem ECS 120 Lesson 18 Decidable Problems, the Halting Problem Oliver Kreylos Friday, May 11th, 2001 In the last lecture, we had a look at a problem that we claimed was not solvable by an algorithm the problem

More information

TURING MAHINES

TURING MAHINES 15-453 TURING MAHINES TURING MACHINE FINITE STATE q 10 CONTROL AI N P U T INFINITE TAPE read write move 0 0, R, R q accept, R q reject 0 0, R 0 0, R, L read write move 0 0, R, R q accept, R 0 0, R 0 0,

More information

problem X reduces to Problem Y solving X would be easy, if we knew how to solve Y

problem X reduces to Problem Y solving X would be easy, if we knew how to solve Y CPS220 Reducibility A reduction is a procedure to convert one problem to another problem, in such a way that a solution to the second problem can be used to solve the first problem. The conversion itself

More information

CS5371 Theory of Computation. Lecture 14: Computability V (Prove by Reduction)

CS5371 Theory of Computation. Lecture 14: Computability V (Prove by Reduction) CS5371 Theory of Computation Lecture 14: Computability V (Prove by Reduction) Objectives This lecture shows more undecidable languages Our proof is not based on diagonalization Instead, we reduce the problem

More information

Functions on languages:

Functions on languages: MA/CSSE 474 Final Exam Notation and Formulas page Name (turn this in with your exam) Unless specified otherwise, r,s,t,u,v,w,x,y,z are strings over alphabet Σ; while a, b, c, d are individual alphabet

More information

Primitive recursive functions: decidability problems

Primitive recursive functions: decidability problems Primitive recursive functions: decidability problems Armando B. Matos October 24, 2014 Abstract Although every primitive recursive (PR) function is total, many problems related to PR functions are undecidable.

More information

EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) 1. RELATIONS

EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) 1. RELATIONS EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) LIOR SILBERMAN Version 1.0 compiled September 9, 2015. 1.1. List of examples. 1. RELATIONS Equality of real numbers: for some x,y R we have x = y. For other pairs

More information