Turing Machines – Examples Lecture 24 Section 3.1 Wed, Oct 17, 2007.

Slides:



Advertisements
Similar presentations
Turing Machines Memory = an infinitely long tape Persistent storage A read/write tape head that can move around the tape Initially, the tape contains only.
Advertisements

Turing Machine Read/Write – Move Left/Right BB Read/Write Head State Qi.
Lecture 16 Deterministic Turing Machine (DTM) Finite Control tape head.
Variants of Turing machines
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Pages COMPUTABILITY THEORY.
CS 461 – Oct. 21 Begin chapter 3 We need a better (more encompassing) model of computation. Ex. { 1 n 2 n 3 n } couldn’t be accepted by PDA. –How could.
Courtesy Costas Busch - RPI1 A Universal Turing Machine.
Turing Machines New capabilities: –infinite tape –can read OR write to tape –read/write head can move left and right q0q0 input tape.
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.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Fall 2004COMP 3351 Turing Machines. Fall 2004COMP 3352 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Courtesy Costas Busch - RPI1 Turing Machines. Courtesy Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
Costas Busch - RPI1 Turing Machines. Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Fall 2004COMP 3351 A Universal Turing Machine. Fall 2004COMP 3352 Turing Machines are “hardwired” they execute only one program A limitation of Turing.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Chapter 9 Turing Machine (TMs).
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
Turing Machines – Decidability Lecture 25 Section 3.1 Fri, Oct 19, 2007.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Models of Computation - Turing Machines Dale Roberts, Lecturer.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
1 Turing Machines Reading: Chapter 8. 2 Turing Machines are… Very powerful (abstract) machines that could simulate any modern day computer (although very,
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.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Turing Machines.
Recursively Enumerable and Recursive Languages
1 Section 13.1 Turing Machines A Turing machine (TM) is a simple computer that has an infinite amount of storage in the form of cells on an infinite tape.
1 Turing Machines and Equivalent Models Section 13.1 Turing Machines.
CSCI 3130: Formal languages and automata theory Tutorial 7 Chin.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
December 3, 2009Theory of Computation Lecture 21: Turing Machines III 1 Simulation of T in L Now the MIDDLE section of Q can be generated by replacing.
1 Introduction to Turing Machines
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Recall last lecture and Nondeterministic TMs Ola Svensson.
Turing Machines. The next level of Machine… PDAs improved on FSAs by adding memory. We make the memory more flexible to do more complicated tasks.
Turing Machines CS 130 Theory of Computation HMU Textbook: Chap 8.
Turing Theory. Turing Machine A Turing Machine denoted by TM, is a collection of six things. –An alphabet  of input letters –A TAPE divided into a sequence.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Chapter 5 Recursive and recursively enumerable functions Phrase-structure grammars.
1 Recursively Enumerable and Recursive Languages.
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.
TMs for {a2n | n  0} {a2n | n  0}
CSCI 2670 Introduction to Theory of Computing
ماشین های تورینگ، تشخیص پذیری و تصمیم پذیری زبان ها
Busch Complexity Lectures: Turing Machines
The Definition of Algorithm
Computing with Turing Machines
Computing with Turing Machines
CSCI 2670 Introduction to Theory of Computing
COSC 3340: Introduction to Theory of Computation
Turing Machine
Computing Functions with Turing Machines
Turing Machines 2nd 2017 Lecture 9.
The Processor and Machine Language
Turing Machines Acceptors; Enumerators
Decidability and Enumerability
Turing acceptable languages and Enumerators
Number Systems and Circuits for Addition
Cpt S 317: Spring 2009 Sampath Kumar S, AP/CSE, SECE
Turing acceptable languages and Enumerators
P.V.G’s College of Engineering, Nashik
Variants of Turing machines
Formal Definitions for Turing Machines
Hopcroft, Motawi, Ullman, Chap 8
Presentation transcript:

Turing Machines – Examples Lecture 24 Section 3.1 Wed, Oct 17, 2007

Turing Machine as Language Processor Design a Turing machine that will shift the input string one space to the right, leaving a blank in the leftmost cell.

Strategy Strategy: Read the first symbol and write a blank. Move right. Read the second symbol and write the first symbol. Move right. Read the third symbol and write the second symbol.

Strategy Move right. Continue in this way until a blank is read. Write the last symbol.

The Turing Machine q0q0 acc 0  _, R 1  _, R 0  0, R 1  1, R 1  0, R 0  1, R _  0, R _  1, L  _  L _  R

Another Language Processor Design a Turing Machine that will duplicate the input string. Replace w with w#w.

Turing Machine as Calculator Design a Turing Machine that will add 1 to the input. For example, if the input is , the output will be Design a Turing Machine that will subtract 1 from the input.

Turing Machine as an Enumerator Design a Turing Machine that will print on its tape all binary strings. Design a Turing Machine that will print all binary strings that contain an even number of 0s and an odd number of 1s.

Turing Machine as an Enumerator Design a Turing Machine that will print all binary strings all of whose prefixes contain at least as many 0s as 1s (balanced parentheses).