Computability and Complexity 7-1 Computability and Complexity Andrei Bulatov Recursion Theorem.

Slides:



Advertisements
Similar presentations
Variants of Turing machines
Advertisements

The Recursion Theorem Sipser – pages Self replication Living things are machines Living things can self-reproduce Machines cannot self reproduce.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
Complexity 7-1 Complexity Andrei Bulatov Complexity of Problems.
Computability and Complexity 4-1 Existence of Undecidable Problems Computability and Complexity Andrei Bulatov.
Computability and Complexity 5-1 Classifying Problems Computability and Complexity Andrei Bulatov.
More Turing Machines Sipser 3.2 (pages ). CS 311 Fall Multitape Turing Machines Formally, we need only change the transition function to.
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Reducibility Sipser 5.1 (pages ).
More Turing Machines Sipser 3.2 (pages ).
1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli.
Fall 2004COMP 3351 Undecidable problems for Recursively enumerable languages continued…
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
Courtesy Costas Busch - RPI1 A Universal Turing Machine.
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata are like Turing Machines with a restriction: The working space of the tape is the space of the.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
Fall 2003Costas Busch - RPI1 Decidability. Fall 2003Costas Busch - RPI2 Recall: A language is decidable (recursive), if there is a Turing machine (decider)
Recursively Enumerable and Recursive Languages
1 Uncountable Sets continued Theorem: Let be an infinite countable set. The powerset of is uncountable.
Fall 2004COMP 3351 The Chomsky Hierarchy. Fall 2004COMP 3352 Non-recursively enumerable Recursively-enumerable Recursive Context-sensitive Context-free.
Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.
1 Decidability continued. 2 Undecidable Problems Halting Problem: Does machine halt on input ? State-entry Problem: Does machine enter state halt on input.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.
Computability and Complexity 3-1 Turing Machine Computability and Complexity Andrei Bulatov.
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
Computability and Complexity 10-1 Computability and Complexity Andrei Bulatov Gödel’s Incompleteness Theorem.
Fall 2004COMP 3351 A Universal Turing Machine. Fall 2004COMP 3352 Turing Machines are “hardwired” they execute only one program A limitation of Turing.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
Prof. Busch - LSU1 Undecidable Problems (unsolvable problems)
1 Reducibility. 2 Problem is reduced to problem If we can solve problem then we can solve problem.
Decidability A decision problem is a problem with a YES/NO answer. We have seen decision problems for - regular languages: - context free languages: [Sections.
The Recursion Theorem Pages 217– ADVANCED TOPICS IN C O M P U T A B I L I T Y THEORY.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata (LBAs) are the same as Turing Machines with one difference: The input string tape space is the.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
Recursively Enumerable and Recursive Languages
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Productions String of variables and terminals String of variables and terminals.
Undecidability and The Halting Problem
Sofya Raskhodnikova Intro to Theory of Computation L ECTURE 20 Last time Mapping reductions Computation history method Today Computation history method.
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Another famous undecidable problem: The halting problem.
1 Recursively Enumerable and Recursive Languages.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Undecidable.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
Decidability.
1 A Universal Turing Machine. 2 Turing Machines are “hardwired” they execute only one program A limitation of Turing Machines: Real Computers are re-programmable.
Fall 2006Costas Busch - RPI1 RE languages and Enumerators.
Recursively Enumerable Languages
Recursively Enumerable and Recursive Languages
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
CS154, Lecture 11: Self Reference, Foundation of Mathematics
Turing Machines Acceptors; Enumerators
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
Turing acceptable languages and Enumerators
Decidable Languages Costas Busch - LSU.
The Off-Line Machine Input File read-only (once) Input string
Turing acceptable languages and Enumerators
Undecidable problems:
Computability and Complexity
CS21 Decidability and Tractability
Formal Languages, Automata and Models of Computation
CSCI 2670 Introduction to Theory of Computing
CS154, Lecture 11: Self Reference, Foundation of Mathematics
Variants of Turing machines
More Undecidable Problems
Presentation transcript:

Computability and Complexity 7-1 Computability and Complexity Andrei Bulatov Recursion Theorem

Computability and Complexity 7-2 Self-Printing Program A Turing Machine S (transducer) that on every input prints out its own description Claim For any string x, there is a TM,, that on every input outputs x Erase the input Print x Halt

Computability and Complexity 7-3 Example 01|  |RR  |0|R01  |111|R 01  |000|R

Computability and Complexity 7-4 Self-Printing Program (Cnt’d) H? T AB

Computability and Complexity 7-5 Claim There is a Turing Machine, T, that, for any string x, outputs the TM Set B=T, then Then S operates as follows: On the empty input Print the description of T Simulate T on the content of the tape (that is T )

Computability and Complexity 7-6 Recursion Theorem A TM (a program) can not just obtain its own description, but also perform any computation with it Theorem For any computable function, there is a TM such that, for every input x, Theorem For any computable function, there is a TM such that, for every input x, For example, a TM can use experience x to change itself, and so to learn

Computability and Complexity 7-7 Proof Idea H? ABTx T computes , B computes

Computability and Complexity 7-8 operation: prints the description of B and T on the tape ignoring the input, but not damaging it A passes control to B using the description of B and T from the tape B computes and prints the description of TM, that is A B passes control to T T computes the value of  of the content of the tape, that is  (ABT,x)

Computability and Complexity 7-9 Instance: A Turing Machine T. Question: Does T(  ) print the description of T ? Self-Printing Theorem is undecidable. The corresponding language is: Proof - see next slide

Computability and Complexity 7-10 We show that For every input “ T;x ” of, let S be a machine operating on an input y as follows: Erase input y Simulate T on x If T(x) halts then write the description of S on the tape and “Accept” Observe that If T halts on x, then S prints itself on any input If T does not halt on x, then S does not print itself QED