Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Models of Computation - Turing Machines Dale Roberts, Lecturer.

Slides:



Advertisements
Similar presentations
The Turing Machine A definition of computability by Noah Richards.
Advertisements

Chapter 11: Models of Computation
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.
Deterministic Turing Machines
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
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.
Turing Machines New capabilities: –infinite tape –can read OR write to tape –read/write head can move left and right q0q0 input tape.
Chapter 10 Models of Computation. What is a model? Captures the essence – the important properties – of the real thing Captures the essence – the important.
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 ? ?
1 Computing Functions with Turing Machines. 2 A function Domain: Result Region: has:
1 Lecture 13 Turing machine model of computation –Sequential access memory (tape) –Limited data types and instructions –Graphical representation –Formal.
CS5371 Theory of Computation Lecture 10: Computability Theory I (Turing Machine)
Computability and Complexity 3-1 Turing Machine Computability and Complexity Andrei Bulatov.
Costas Busch - RPI1 Turing Machines. Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Theory of Computation. Computation Computation is a general term for any type of information processing that can be represented as an algorithm precisely.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
AUTOMATA THEORY VIII.
More Theory of Computing
Turing Machines A more powerful computation model than a PDA ?
CSE202: Introduction to Formal Languages and Automata Theory Chapter 9 The Turing Machine These class notes are based on material from our textbook, An.
CSCI 2670 Introduction to Theory of Computing September 28, 2005.
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
Turing Machines. Intro to Turing Machines A Turing Machine (TM) has finite-state control (like PDA), and an infinite read-write tape. The tape serves.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Models of Computation Dale Roberts, Lecturer Computer Science,
Computer Science 101 Theory of Computing. Computer Science is... The study of algorithms, with respect to –their formal properties –their linguistic realizations.
1 Design a PDA which accepts: L= { a n b m : n ≠ m }
Fundamentals of Informatics Lecture 3 Turing Machines Bas Luttik.
Lecture 9  2010 SDU Lecture9: Turing Machine.  2010 SDU 2 Historical Note Proposed by Alan Turing in 1936 in: On Computable Numbers, with an application.
Theory of computing, part 4. 1Introduction 2Theoretical background Biochemistry/molecular biology 3Theoretical background computer science 4History of.
1 Turing machines Chapter 4, Smith and Kimber. A Turing machine is an abstraction of a human “computer”. Consists of - control, in the form of states -
CS 3240: Languages and Computation
Turing Machines Lecture 26 Naveen Z Quazilbash. Overview Introduction Turing Machine Notation Turing Machine Formal Notation Transition Function Instantaneous.
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 IDT Open Seminar ALAN TURING AND HIS LEGACY 100 Years Turing celebration Gordana Dodig Crnkovic, Computer Science and Network Department Mälardalen University.
1 Turing Machines and Equivalent Models Section 13.1 Turing Machines.
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 ? ?
Turing Machines Sections 17.6 – The Universal Turing Machine Problem: All our machines so far are hardwired. ENIAC
1 Computing Functions with Turing Machines. 2 A function Domain Result Region has:
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 – Examples Lecture 24 Section 3.1 Wed, Oct 17, 2007.
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 ? ?
CS 154 Formal Languages and Computability April 7 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
Mealy Machines Finite State Machines with Outputs given on the transitions.
CSE202: Introduction to Formal Languages and Automata Theory
8. Introduction to Turing Machines
COSC 3340: Introduction to Theory of Computation
Busch Complexity Lectures: Turing Machines
CS21 Decidability and Tractability
Computing Functions with Turing Machines
Theory of Computation Lecture 22: Turing Machines III
Turing Machines 2nd 2017 Lecture 9.
Turing Machines Acceptors; Enumerators
Chapter 9 TURING MACHINES.
Chapter 3: The CHURCH-Turing thesis
8. Introduction to Turing Machines
Computing Functions with Turing Machines
Decidable Languages A language L is decidable if there is a Turing machine ML such that given any word w  0*, then: Input of ML: a  b  … w Output of.
Recall last lecture and Nondeterministic TMs
P.V.G’s College of Engineering, Nashik
Formal Definitions for Turing Machines
Theory of Computation Lecture 23: Turing Machines III
Presentation transcript:

Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Models of Computation - Turing Machines Dale Roberts, Lecturer Computer Science, IUPUI

Dale Roberts The Turing Machine (TM) Turing Machine is a model of computing agent. It is a pencil-and-paper type model that captures the essential features of a computing agent. A Turing machine consists of 1. a tape that extends infinitely in both directions 2. the tape is divided into cells, each cell can carry a symbol. 3. the symbols comes from a finite set of symbols called the alphabet 4. the alphabet consists of symbols : b (blank), 0, 1, and special symbols X, Y, $ 5. the tape serve as memory 6. has a finite number of k states, 1, …k..bb011bb. 1

Dale Roberts Turing Machine actions depend on two inputs: 1. The current state of the machine 2. content of cell currently being read (input) A Turing machine can do only one operation at a time. Each time an operation is done, three actions may take place: 3. write a symbol to cell 4. go into a new state 5. move one cell left or right

Dale Roberts current state The Turing Machine (TM)..bb011bb. 1..bb111bb. 1212 12 0/1 R State: where you are now. R W Your movement output input State Transition: Example: Assume a Turing machine (TM) instruction: if you are in state 1 if you are in state 1and you are reading symbol 0 you are reading symbol 0then write symbol 1 onto tape write symbol 1 onto tape go into state 2 go into state 2 move right move right next state output input action (direction) Written as: (1,0,1,R,2)

Dale Roberts The Turing Machine (TM) Example: Design a Turing Machine which will invert the string of binary digits if the input string is then the output string should be let us draw a state diagram The TM instruction sets will be (1,0,1,R,1)(1,1,0,R,1) Let the initial configuration be :... b b b b b b b b b b b b b b /0 0/1

Dale Roberts Unary representation is used in order to do any arithmetic operations on a TM. Unary representation looks as follows 0  1 1  11 2    Example: Design a Turing Machine to add 1 to any number start in state 1 if the state is 1 and current input is 1, write 1 and move right and stay in state 1 if the current state is 1 and current input is b, write 1 and move to state 2 and move right and HALT TM instructions: (1,1,1,R,1)(1,b,1,R,2) state 2 does not exist, so halt Let the initial configuration be:... b b b b b b... Unary Representation for TM 12 b/1 R 1/1 Halt 2 in unary representation 3 in unary representation s1 s2

Dale Roberts Example: Adding of two non-zero numbers (unary representation) Initial Setup.. b b 1 1 b.. Initial Setup.. b b 1 1 b.. Answer should be:.. b b b b.. (1,1,b,R,2): Erase leftmost 1 and move right (2,1,b,R,3): Erase second 1 and move right (3,1,1,R,3): pass over any 1’s until a blank is found (3,b,1,R,4): write 1 over the blank (4,1,1,R,4): pass over remaining 1’s (4,b,b,R,5): halt 12 1/b R 3 R 4 b/1 R 5 b/b R 1/1 Halt S1... b b 1 1 b... S2... b b 1 1 b 1 1 b... S3... b b b 1 b 1 1 b... S4... b b b b...

Dale Roberts Example: Add two numbers, initial setup would: a ‘ b ’ separate the two numbers.... b b b and the expected answer is... b b... 5 The TM instruction sets will be (1,1,1,R,1)(1,b,1,R,2)(2,1,1,R,2)(2,b,b,L,3)(3,1,b,L,4)(4,1,b,L,5) Let the initial configuration be: S1... b b b... S2... b b... S3... b b... S4... b b b... S5... b b b b b/1 R 3 b/b L 4 1/b L 5 L 1/1 RR

Dale Roberts Example: Add two numbers, try(1,1,b,R,2)(2,1,b,R,3)(3,1,1,R,3)(3,b,1,R,4) if an initial configuration is b b b b b /b R 3 R 4 b/1 R 1/1 R S1... b b b b b... S2... b b b 1 1 b b b... S3... b b b b 1 b b b... S3... b b b b b b... S4 (halt)