Theory of Computability

Slides:



Advertisements
Similar presentations
Introduction to Computability Theory
Advertisements

CS 461 – Nov. 9 Chomsky hierarchy of language classes –Review –Let’s find a language outside the TM world! –Hints: languages and TM are countable, but.
1 COMP 382: Reasoning about algorithms Unit 9: Undecidability [Slides adapted from Amos Israeli’s]
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Reducibility Sipser 5.1 (pages ).
The Halting Problem Sipser 4.2 (pages ). CS 311 Mount Holyoke College 2 Taking stock All languages Turing-recognizable Turing-decidable Context-free.
The Halting Problem Sipser 4.2 (pages ).
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Decidability. Why study un-solvability? When a problem is algorithmically unsolvable, we realize that the problem must be simplified or altered before.
CHAPTER 4 Decidability Contents Decidable Languages
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 6 Decidability Jan Maluszynski, IDA, 2007
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.
Lecture 27UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 27.
1 Introduction to Computability Theory Lecture11: The Halting Problem Prof. Amos Israeli.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
Decidable languages Section 4.1 CSC 4170 Theory of Computation.
Computability Universal Turing Machine. Countability. Halting Problem. Homework: Show that the integers have the same cardinality (size) as the natural.
CS 461 – Nov. 7 Decidability concepts –Countable = can number the elements  –Uncountable = numbering scheme impossible  –A TM undecidable –Language classes.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
CSCI 3130: Formal languages and automata theory Andrej Bogdanov The Chinese University of Hong Kong Decidable.
Turing Machines- Cont. Theory of Computation Lecture 11 Tasneem Ghnaimat.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Undecidable.
Decidability.
The Acceptance Problem for TMs
CS 461 – Nov. 2 Sets Prepare for ATM finite vs. infinite Infinite sets
Theory of Computability
CSE 105 theory of computation
CSCI 2670 Introduction to Theory of Computing
This statement is false.
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
Busch Complexity Lectures: Reductions
Lecture12 The Halting Problem
CSCI 2670 Introduction to Theory of Computing
Reductions Costas Busch - LSU.
Theory of Computability
BCS 2143 Theory of Computer Science
CSC 4170 Theory of Computation Turing reducibility Section 6.3.
Reducibility The Chinese University of Hong Kong Fall 2010
Intro to Theory of Computation
CS154, Lecture 8: Undecidability, Mapping Reductions
CS154, Lecture 8: Undecidability, Mapping Reductions
Decidability of logical theories
CSE 105 theory of computation
Decidable Languages Costas Busch - LSU.
CSC 4170 Theory of Computation Decidable languages Section 4.1.
Decidable and undecidable languages
Undecidable problems:
CSCI 2670 Introduction to Theory of Computing
CSC 4170 Theory of Computation Mapping Reducibility Section 5.3.
Intro to Theory of Computation
More undecidable languages
Decidability of logical theories
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
CSE 105 theory of computation
Theory of Computability
CSC 4170 Theory of Computation Mapping Reducibility Section 5.3.
Theory of Computability
More undecidable languages
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
Instructor: Aaron Roth
Instructor: Aaron Roth
CSE 105 theory of computation
Automata, Grammars and Languages
Intro to Theory of Computation
Intro to Theory of Computation
Intro to Theory of Computation
CSE 105 theory of computation
Presentation transcript:

Theory of Computability Giorgi Japaridze Theory of Computability Decidability Episode 2

Examples of decidable problems (sets) Giorgi Japaridze Theory of Computability Decidable: {1,3,5}  {x | x is even} {x | x is a perfect square} {x | x2-10x = 0} {x | x=y*z for some integers y,z>1 (i.e. x is not prime)} {x | x is a prime (i.e. x is not divisible by anything except 1 and itself)} {<G> | G is a connected graph} {<P> | P is a one-variable polynomial expression with an integral root} Undecidable: {<P> | P is a two-variable polynomial expression with an integral root}

The universal Turing machine Giorgi Japaridze Theory of Computability Let ATM = {<M,w> | M is a TM and M accepts string w} We call the above set the acceptance problem. Theorem 2.1: ATM is recognizable. Proof idea. The following TM U, called the universal TM, recognizes ATM: U = “On input <M,w>, where M is a TM and w is a string: 1. Simulate M on input w. 2. If M ever enters its accept state, accept; if M ever enters its reject state, reject.” Does U also decide ATM? No!

Theorem 2.2: ATM is undecidable. Giorgi Japaridze Theory of Computability Theorem 2.2: ATM is undecidable. Proof idea. Suppose, for a contradiction, that ATM is decidable. That is, there is a TM H that decides ATM. Thus, that machine H behaves as follows: accept if M accepts w reject if M does not accept w H(<M,w>) = Using H as a subroutine, we can construct the following TM D: D = “On input <M>, where M is a TM: 1. Run H on input <M,<M>>. 2. Do the opposite of what H does. That is, if H accepts, reject, and if H rejects, accept.” accept if M does not accept <M> reject if M accepts <M> Thus, D(<M>) =

Theorem 2.2: ATM is undecidable. Giorgi Japaridze Theory of Computability Theorem 2.2: ATM is undecidable. Proof idea. Suppose, for a contradiction, that ATM is decidable. That is, there is a TM H that decides ATM. Thus, that machine H behaves as follows: accept if M accepts w reject if M does not accept w H(<M,w>) = Using H as a subroutine, we can construct the following TM D: D = “On input <M>, where M is a TM: 1. Run H on input <M,<M>>. 2. Do the opposite of what H does. That is, if H accepts, reject, and if H rejects, accept.” accept if D does not accept <D> reject if D accepts <D> Thus, D(<D>) = Contradiction!

A Turing-unrecognizable problem Giorgi Japaridze Theory of Computability ATM = {<M,w> | M is a TM and M accepts string w} ATM = {<M,w> | M is a TM and M does not accept string w} Theorem 2.3: ATM is unrecognizable. Proof idea. Suppose, for a contradiction, that ATM is recognizable. That is, there is a TM U that recognizes ATM. U recognizes ATM (slide 2.2.a) U recognizes ATM Thus, Let K = “On input <M,w>: 1. Run both U and U on input <M,w> in parallel; 2. If U accepts, accept; if U accepts, reject.” It can bee seen that K decides ATM, which contradicts Theorem 2.2.

There are uncountably many problems 2.2.d Giorgi Japaridze Theory of Computability 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Set of even numbers Empty set Set of prime numbers Set of all numbers …

There are uncountably many problems 2.2.d Giorgi Japaridze Theory of Computability 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Set of even numbers Empty set Set of prime numbers Set of all numbers … Reverse the diagonal

There are uncountably many problems 2.2.d Giorgi Japaridze Theory of Computability 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Set of even numbers Empty set Set of prime numbers Set of all numbers … Reverse the diagonal

There are uncountably many problems 2.2.d Giorgi Japaridze Theory of Computability 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Set of even numbers Empty set Set of prime numbers Set of all numbers … Reverse the diagonal

There are uncountably many problems 2.2.d Giorgi Japaridze Theory of Computability 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Set of even numbers Empty set Set of prime numbers Set of all numbers … Reverse the diagonal

There are uncountably many problems 2.2.d Giorgi Japaridze Theory of Computability 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Set of even numbers Empty set Set of prime numbers Set of all numbers … Reverse the diagonal

There are uncountably many problems 2.2.d Giorgi Japaridze Theory of Computability 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Set of even numbers Empty set Set of prime numbers Set of all numbers … Reverse the diagonal

There are uncountably many problems 2.2.d Giorgi Japaridze Theory of Computability 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Set of even numbers Empty set Set of prime numbers Set of all numbers … Every set of numbers can be represented as an infinite bit string. However, as we see, not all such strings can be listed (the new diagonal string is not on the list!). On the other hand, all TMs can be encoded as bit strings and hence listed. To summarize, the set of TMs is countable (可数的) but the set of problems is not (there are more problems than TMs). So, some problems have no TMs.