Constructing Complex Turing Machines

Slides:



Advertisements
Similar presentations
Automata Theory Part 1: Introduction & NFA November 2002.
Advertisements

The Turing Machine A definition of computability by Noah Richards.
Introduction to Computability Theory
Lesson 12.2 Matrix Multiplication. 3 Row and Column Order The rows in a matrix are usually indexed 1 to m from top to bottom. The columns are usually.
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.
Turing Machines (At last!). Designing Universal Computational Devices Was Not The Only Contribution from Alan Turing… Enter the year 1940: The world is.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Fall 2004COMP 3351 Turing Machines. Fall 2004COMP 3352 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CS5371 Theory of Computation Lecture 10: Computability Theory I (Turing Machine)
Computability and Complexity 3-1 Turing Machine Computability and Complexity Andrei Bulatov.
Key to Homework #2 1. What is the language of L-system G = ({a, b, c}, h, acb ), where the rewriting rule h is defined as follows: h (a) = aa h (b) = cb.
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 ? ?
Lab Session 1 Turing Machines. Install Download and unzip TM.zip on the desktop Start the “Turing Machine” executable File>machine>load COPYING.TM File>tape>load.
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.
 Computability Theory Turing Machines Professor MSc. Ivan A. Escobar
Multiplying and Dividing Decimals by 10, 100, and 1,000
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Models of Computation - Turing Machines Dale Roberts, Lecturer.
If A and B are both m × n matrices then the sum of A and B, denoted A + B, is a matrix obtained by adding corresponding elements of A and B. add these.
Turing Machines Chapter 17. Languages and Machines SD D Context-Free Languages Regular Languages reg exps FSMs cfgs PDAs unrestricted grammars Turing.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
The Church-Turing Thesis Chapter 3 Giorgi Japaridze Theory of Computability.
1 Design a PDA which accepts: L= { a n b m : n ≠ m }
TM Design Macro Language D and SD MA/CSSE 474 Theory of Computation.
Strings Basic data type in computational biology A string is an ordered succession of characters or symbols from a finite set called an alphabet Sequence.
EXAMPLE 1 Add and subtract matrices
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
CSCI 2670 Introduction to Theory of Computing October 7, 2004.
Sets. What is a set? Have you heard the word ‘set’ before? Can you think of sets you might have at home? A set is a well-defined collection or group of.
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.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
THE CONVENTIONS 2 simple rules: Rule # 1: Rule # 2: RR “move to the right until you find  “ Note: first check. Then move (think of a “while”) “Never.
1 Introduction to Turing Machines
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
Summary of Previous Class There are languages that are not decidable –(we have not proved this yet) Why not extend Turing machines just as we did with.
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 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 ? ?
CSCI 2670 Introduction to Theory of Computing September 29, 2005.
Theory of Computation Automata Theory Dr. Ayman Srour.
TM Macro Language MA/CSSE 474 Theory of Computation.
CSE202: Introduction to Formal Languages and Automata Theory
13.4 Product of Two Matrices
Complexity & the O-Notation
Busch Complexity Lectures: Turing Machines
COSC 3340: Introduction to Theory of Computation
Complexity & the O-Notation
Turing Machines Space bounds Reductions Complexity classes
COSC 3340: Introduction to Theory of Computation
Turing Machines 2nd 2017 Lecture 9.
Turing Machines (At last!).
Chapter 9 TURING MACHINES.
Formal Definition Definition. A Turing machine is a 5-tuple (S, , , s, H), where: S is a set of states  is an alphabet It must contain  and . It cannot.
Chapter 3: The CHURCH-Turing thesis
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.
MA/CSSE 474 Theory of Computation
Warm-Up 3) 1) 4) Name the dimensions 2).
COSC 3340: Introduction to Theory of Computation
Recall last lecture and Nondeterministic TMs
The Church-Turing Thesis
Instructor: Aaron Roth
3.6 Multiply Matrices.
Variants of Turing machines
Theory of Computation Lecture 23: Turing Machines III
Presentation transcript:

Constructing Complex Turing Machines Idea: Use a modular approach similar to the one use to construct complex programs Example (programming): Given two nn matrixes A and B to compute ABT we: Construct a procedure to compute BT, transverse(B,C) Construct a procedure to multiply two matrices, multiply(B,C,D) Call transverse(B,C) and then multiply(A,C,D). D contains the answer

Graphical Conventions We will use a convention similar to a flow chart to indicate how to put together Turing machines (TMs). Convention. Let A and B be 2 TMs, and a be a character in  then: A a B A; if a then B Means that: If A halts in a configuration of the form (h,w1aw2), where w1or w2 are any words Then B starts with the configuration (s,w1aw2), where s is the initial state in B

Graphical Conventions (2) M a a M; If a then A else B A B Means that: If M halts in a configuration of the form (h,w1aw2), then A starts with the configuration (s,w1aw2), where s is the initial state of A If M halts in a configuration of the form (h,w1w2) with   a, then B starts with the configuration (s’,w1 w2), where s’ is the initial state in B

Graphical Conventions (3) while (not a) do A a A Means that: If the initial configuration has the form (s,w1w2), then A starts with this configuration if   a, where s is the initial state in A If A halts in a configuration of the form (h,w1w2) with   a, then A starts with the configuration (s,w1 w2)

Basic Turing Machines a Denotes “write a on the current cell” (a is a character in )  Denotes “move to the right of the current cell” (the book uses “R” instead of “”)  Denotes “move to the left of the current cell” (the book uses “L” instead of “”)

Other Simple Turing Machines What it does a “if current cell has an a, then replace it with a b” b a  “if current cell has a character a different than , then move once to the right and write that a”

The  Turing Machine –  –   What it does? Move to the right until if finds 

The  Turing Machine Draw diagram for    –

 and  – –  – Move to the left until the first non-blank space cell is found   – Move to the right until the first non-blank space cell is found 

The Conventions 2 simple rules: Rule # 1: Rule # 2: R “move to the right until you find “ R “move to the right until you find a symbol other than “ Note: first check. Then move (think of a “while”) “Never forget Rule # 1” (Mr Miogi, The Karate Kid)

Example: The (ab)* Turing Machine 1   ?  a b a b  a b a a