Theory of computing, part 4. 1Introduction 2Theoretical background Biochemistry/molecular biology 3Theoretical background computer science 4History of.

Slides:



Advertisements
Similar presentations
ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala
Advertisements

Introduction to Turing Machines
Fall 2006Costas Busch - RPI1 Turing Machines. Fall 2006Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Turing Machines.
Deterministic Turing Machines
Turing Machines New capabilities: –infinite tape –can read OR write to tape –read/write head can move left and right q0q0 input tape.
Turing’s Thesis Fall 2006 Costas Busch - RPI.
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’s Thesis. Courtesy Costas Busch - RPI2 Turing’s thesis: Any computation carried out by mechanical means can be performed.
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.
Courtesy Costas Busch - RPI1 Turing Machines. Courtesy Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Turing Machines.
1 Computing Functions with Turing Machines. 2 A function Domain: Result Region: has:
1 Foundations of Software Design Fall 2002 Marti Hearst Lecture 29: Computability, Turing Machines, Can Computers Think?
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 ? ?
Fall 2004COMP 3351 Turing’s Thesis. Fall 2004COMP 3352 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine.
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2011.
1 Language Recognition (11.4) and Turing Machines (11.5) Longin Jan Latecki Temple University Based on slides by Costas Busch from the courseCostas Busch.
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.
1 Turing Machines There are languages that are not context-free. What can we say about the most powerful automata and the limits of computation?. Alan.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Models of Computation - Turing Machines Dale Roberts, Lecturer.
Turing Machines Chapter 17. Languages and Machines SD D Context-Free Languages Regular Languages reg exps FSMs cfgs PDAs unrestricted grammars Turing.
Turing Machines (13.5) Based on slides by Costas Busch from the course
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
Costas Busch - LSU1 Turing’s Thesis. Costas Busch - LSU2 Turing’s thesis (1930): Any computation carried out by mechanical means can be performed by a.
Recursively Enumerable and Recursive Languages
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 - Chap 8 Turing Machines Recursive and Recursively Enumerable Languages.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
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 ? ?
CS 154 Formal Languages and Computability April 12 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
CS 3240 – Chapter 9.  Turing Machines  From Alan Turing, 1936  Turns out to be the LAST machine  The only machine you'll ever need  The Church-Turing.
1 Computing Functions with Turing Machines. 2 A function Domain Result Region has:
Chapter 9 Turing Machines What would happen if we change the stack in Pushdown Automata into some other storage device? Truing Machines, which maintains.
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.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
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.
Turing’s Thesis.
Turing’s Thesis Costas Busch - LSU.
Busch Complexity Lectures: Turing Machines
Deterministic Turing Machines
COSC 3340: Introduction to Theory of Computation
Turing Machines.
Pumping Lemma Revisited
Pushdown Automata PDAs
COSC 3340: Introduction to Theory of Computation
Computing Functions with Turing Machines
Turing Machines 2nd 2017 Lecture 9.
Turing Machines Acceptors; Enumerators
Chapter 9 TURING MACHINES.
Chapter 3: The CHURCH-Turing thesis
Turing Machines (11.5) Based on slides by Costas Busch from the course
Computing Functions with Turing Machines
Theory of computing, part 4
COSC 3340: Introduction to Theory of Computation
Formal Definitions for Turing Machines
Presentation transcript:

Theory of computing, part 4

1Introduction 2Theoretical background Biochemistry/molecular biology 3Theoretical background computer science 4History of the field 5Splicing systems 6P systems 7Hairpins 8Detection techniques 9Micro technology introduction 10Microchips and fluidics 11Self assembly 12Regulatory networks 13Molecular motors 14DNA nanowires 15Protein computers 16DNA computing - summery 17Presentation of essay and discussion Course outline

Turing machines

Regular Languages Context-Free Languages The language hierarchy

Regular Languages Context-Free Languages Languages accepted by Turing Machines The language hierarchy

Tape Read-Write head Control Unit A Turing machine

Read-Write head No boundaries -- infinite length The head moves Left or Right The tape

Read-Write head The head at each time step: 1. Reads a symbol 2. Writes a symbol 3. Moves Left or Right The tape

Time Time 1 1. Reads 2. Writes 3. Moves Left Example

Time Time 2 Example 1. Reads 2. Writes 3. Moves Left

Blank symbol head Head starts at the leftmost position of the input string Input string The input string

Read Write Move Left Move Right States and transitions

Time 1 current state Example

Time Time 2 Example

Time Time 2 Example

Time Time 2 Example

Allowed Not Allowed Turing Machines are deterministic Determinism

No transition for input symbol Allowed: Example: partial transition function

The machine halts if there are no possible transitions to follow Halting

No possible transitionHALT Example

Allowed Not Allowed  Final states have no outgoing transitions  In a final state the machine halts Final states

Accept Input If machine halts in a final state Reject Input If machine halts in a non-final state or If machine enters an infinite loop Acceptance

A Turing machine that accepts language a * Turing machine example

Time 0 Turing machine example

Time 1 Turing machine example

Time 2 Turing machine example

Time 3 Turing machine example

Time 4 Halt & Accept Turing machine example

Time 0 Rejection example

Time 1 No possible Transition Halt & Reject Rejection example

Another Turing machine for language a * and is this one correct??? Infinite loop example

Time 0 Infinite loop example

Time 1 Infinite loop example

Time 2 Infinite loop example

Time 2 Time 3 Time 4 Time 5... Infinite Loop Infinite loop example

Because of the infinite loop:  The final state cannot be reached  The machine never halts  The input is not accepted Infinite loop example

Turing machine for the language Another Turing machine example

Time 0 Another Turing machine example

Time 1 Another Turing machine example

Time 2 Another Turing machine example

Time 3 Another Turing machine example

Time 4 Another Turing machine example

Time 5 Another Turing machine example

Time 6 Another Turing machine example

Time 7 Another Turing machine example

Time 8 Another Turing machine example

Time 9 Another Turing machine example

Time 10 Another Turing machine example

Time 11 Another Turing machine example

Time 12 Another Turing machine example

Halt & Accept Time 13 Another Turing machine example

If we modify the machine for the language we can easily construct a machine for the language Observation

Formal definitions

Transition function

States Input alphabetTape alphabet Transition function Initial stateblank Final states Turing machine

Instantaneous description: Configuration

Time 4Time 5 A Move: Configuration

Time 4Time 5 Time 6Time 7 Configuration

Equivalent notation: Configuration

Input string Initial configuration

For any Turing Machine Initial state Final state The accepted language

 Deterministic  Infinite tape in both directions  Tape is the input/output file The machine we described is the standard Standard Turing machine

Computing functions

A function Domain:Result Region: has: Functions

A function may have many parameters Example: Addition function Functions

Unary: Binary: Decimal: We prefer unary representation: easier to manipulate with Turing machines Integer domain

A function is computable if there is a Turing Machine such that: Initial configurationFinal configuration Domain final stateinitial state For all Functions definition

Initial Configuration Final Configuration Functions definition A function is computable if there is a Turing Machine such that: DomainFor all

The functionis computable Turing Machine: Input string:unary Output string:unary are integers Example

Start initial state The 0 is the delimiter that separates the two numbers Example

Start Finish final state initial state Example

Finish The 0 helps when we use the result for other operations Example final state

Turing machine for function Turing machine example

Execution Example: Time 0 Final Result (2) Turing machine example

Time 0 Turing machine example

Time 1 Turing machine example

Time 2 Turing machine example

Time 3 Turing machine example

Time 4 Turing machine example

Time 5 Turing machine example

Time 6 Turing machine example

Time 7 Turing machine example

Time 8 Turing machine example

Time 9 Turing machine example

Time 10 Turing machine example

Time 11 Turing machine example

HALT & accept Time 12 Turing machine example

The functionis computable Turing Machine: Input string:unary Output string:unary is integer Another example

Start Finish final state initial state

Turing Machine Pseudocode for  Replace every 1 with $  Repeat:  Find rightmost $, replace it with 1  Go to right end, insert 1 Until no more $ remain Pseudocode

Turing Machine for Example

Start Finish Example

The function is computable if Another example

Turing Machine for Input: Output: or if Another example

Match a 1 from with a 1 from  Repeat Until all of or is matched  If a 1 from is not matched erase tape, write 1 else erase tape, write 0 Pseudocode

Combining Turing machines

Block Diagram Turing Machineinputoutput Combining Turing machines

if Comparer Adder Eraser Example

Turing’s thesis

Do Turing machines have the same power with a digital computer? Intuitive answer: Yes There is no formal answer!!! Question: Turing’s thesis

Any computation carried out by mechanical means can be performed by a Turing Machine (1930) Turing’s thesis

A computation is mechanical if and only if it can be performed by a Turing Machine There is no known model of computation more powerful than Turing Machines Computer science law

An algorithm for function is a Turing Machine which computes Definition of an algorithm

When we say: There exists an algorithm We mean: There exists a Turing Machine that executes the algorithm Algorithms are Turing machines