Computing with Turing Machines

Slides:



Advertisements
Similar presentations
Variants of Turing machines
Advertisements

Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
Recursively Enumerable and Recursive Languages
1 Uncountable Sets continued Theorem: Let be an infinite countable set. The powerset of is uncountable.
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
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.
Homework #9 Solutions.
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
1 Reducibility. 2 Problem is reduced to problem If we can solve problem then we can solve problem.
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.
MA/CSSE 474 Theory of Computation Enumerability Reduction.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
CS 461 – Nov. 7 Decidability concepts –Countable = can number the elements  –Uncountable = numbering scheme impossible  –A TM undecidable –Language classes.
TM Design Macro Language D and SD MA/CSSE 474 Theory of Computation.
Turing -Recognizable vs. -Decidable
Recursively Enumerable and Recursive Languages
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Productions String of variables and terminals String of variables and terminals.
Turing Machines Sections 17.6 – The Universal Turing Machine Problem: All our machines so far are hardwired. ENIAC
Universal Turing Machine
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Another famous undecidable problem: The halting problem.
1 Recursively Enumerable and Recursive Languages.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
Decidability.
Fall 2006Costas Busch - RPI1 RE languages and Enumerators.
Chapters 11 and 12 Decision Problems and Undecidability.
CS 461 – Nov. 2 Sets Prepare for ATM finite vs. infinite Infinite sets
Recursively Enumerable Languages
Recursively Enumerable and Recursive Languages
This statement is false.
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Undecidable Problems Costas Busch - LSU.
CSCI 2670 Introduction to Theory of Computing
Reductions Costas Busch - LSU.
CS21 Decidability and Tractability
Turing Machines Chapter 17.
(Universal Turing Machine)
The Definition of Algorithm
Computing with Turing Machines
Turing Machines 2nd 2017 Lecture 9.
Turing Machines Acceptors; Enumerators
Decidability and Enumerability
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
Turing acceptable languages and Enumerators
Chapter 3: The CHURCH-Turing thesis
Turing Machines Chapter 17.
Turing-Enumerable (Part II)
Decidable Languages Costas Busch - LSU.
Computing Functions with Turing Machines
Functional Properties and Problem Reduction
Turing acceptable languages and Enumerators
Undecidable problems:
MA/CSSE 474 Theory of Computation
MA/CSSE 474 Theory of Computation
Theory of Computability
Formal Languages, Automata and Models of Computation
Recall last lecture and Nondeterministic TMs
CSCI 2670 Introduction to Theory of Computing
CS 461 – Nov. 14 Section 5.2 – Undecidable problems starting from ATM:
Turing -Recognizable vs. -Decidable
CSCI 2670 Introduction to Theory of Computing
Variants of Turing machines
Instructor: Aaron Roth
Turing -Recognizable vs. -Decidable
Lecture 4: Unsolvable Problems
MA/CSSE 474 Theory of Computation
Presentation transcript:

Computing with Turing Machines Section 4.2 Mon, Nov 29, 2004

Function Evaluators A Turing Machine may be viewed as a function evaluator. Let 0   – {, }. Let w  0*. The initial configuration is (s, w). When the Turing Machine halts, the configuration is (s, y), for some y  0*. Then we write M(w) = y and say that M computes a function f : 0*  0* if M(w) = f(w) for all w  0*.

Recursive Functions A function is called recursive if it can be computed by a Turing Machine. This is not the same as a recursive function in C++.

Examples The TM INCR computes the function f(n) = n + 1. The TM DECR computes the function f(n) = n – 1, if n > 0 and f(0) = 0. Design a TM that computes the function f(n) = 2n. Design a TM that computes the fucntion f(n) = 2n + 1. f(w) = wwR.

Language Acceptors A Turing Machine may be viewed as a language acceptor. Let 0   – {, }. Let w  0*. The initial configuration is (s, w). H = {y, n}. If the final state is y (“yes”), then the input is accepted. If the final state is n (“no”), then the input is rejected.

Recursive Languages Let L be a language. A Turing Machine M decides L if it has the following property. If w  L, then M accepts w. If w  L, then M rejects w. A language is decidable, or recursive, if there is a Turing Machine that decides it.

Example Let 0 = {a, b, c}. Let L = {anbncn | n  0}. The Turing Machine in Programming Assignment #3 will decide this language.

Recursively Enumerable Languages Let L  0* be a language. A Turing Machine M semidecides L if For every w  0*, M halts on w if and only if w  L. A language is recursively enumerable if there is a Turing Machine that semidecides it.

Example Let 0 = {a, b}. Let L = {w  * | w contains at least one a}. The Turing Machine Ra will semidecide L.

Recursive and Recursively Enumerable Languages Theorem: If L is recursive, then L is recursive enumerable. Theorem: If L is recursive, then L′ is recursive. Theorem: If L and L′ are recursively enumerable, then L is recursive.

Language Generators A Turing Machine may be viewed as a language generator. The initial configuration is (s, ). The Turing Machine writes a sequence of words on the tape, separated by blanks. The Turing Machine runs forever (if the language is infinite). Each word in the language appears exactly once on the tape.

Example Design a Turing Machine that generates the binary representations of the set of nonnegative integers. COPY INCR

Example Let  = {0, 1}. Design a TM SUCC to produce the lexicographical successor of the input string w  *. This is similar to INCR except that, e.g., the successor of 111 is 0000. COPY SUCC