ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala

Slides:



Advertisements
Similar presentations
EcoTherm Plus WGB-K 20 E 4,5 – 20 kW.
Advertisements

Números.
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
AGVISE Laboratories %Zone or Grid Samples – Northwood laboratory
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
Variations of the Turing Machine
PDAs Accept Context-Free Languages
EuroCondens SGB E.
Worksheets.
Slide 1Fig 26-CO, p.795. Slide 2Fig 26-1, p.796 Slide 3Fig 26-2, p.797.
Slide 1Fig 25-CO, p.762. Slide 2Fig 25-1, p.765 Slide 3Fig 25-2, p.765.
Sequential Logic Design
Addition and Subtraction Equations
By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman
David Burdett May 11, 2004 Package Binding for WS CDL.
Create an Application Title 1Y - Youth Chapter 5.
Add Governors Discretionary (1G) Grants Chapter 6.
CALENDAR.
CHAPTER 18 The Ankle and Lower Leg
Introduction to Turing Machines
The 5S numbers game..
突破信息检索壁垒 -SciFinder Scholar 介绍
A Fractional Order (Proportional and Derivative) Motion Controller Design for A Class of Second-order Systems Center for Self-Organizing Intelligent.
Media-Monitoring Final Report April - May 2010 News.
Break Time Remaining 10:00.
The basics for simulations
Turing Machines.
PP Test Review Sections 6-1 to 6-6
2013 Fox Park Adopt-A-Hydrant Fund Raising & Beautification Campaign Now is your chance to take part in an effort to beautify our neighborhood by painting.
Regression with Panel Data
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Progressive Aerobic Cardiovascular Endurance Run
Biology 2 Plant Kingdom Identification Test Review.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Facebook Pages 101: Your Organization’s Foothold on the Social Web A Volunteer Leader Webinar Sponsored by CACO December 1, 2010 Andrew Gossen, Senior.
When you see… Find the zeros You think….
2011 WINNISQUAM COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=1021.
Before Between After.
2011 FRANKLIN COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=332.
Subtraction: Adding UP
Numeracy Resources for KS2
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
1 Let’s Recapitulate. 2 Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Static Equilibrium; Elasticity and Fracture
Converting a Fraction to %
Resistência dos Materiais, 5ª ed.
Clock will move after 1 minute
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Select a time to count down from the clock above
1.step PMIT start + initial project data input Concept Concept.
A Data Warehouse Mining Tool Stephen Turner Chris Frala
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Schutzvermerk nach DIN 34 beachten 05/04/15 Seite 1 Training EPAM and CANopen Basic Solution: Password * * Level 1 Level 2 * Level 3 Password2 IP-Adr.
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 ? ?
1 Computing Functions with Turing Machines. 2 A function Domain: Result Region: has:
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 computing, part 4. 1Introduction 2Theoretical background Biochemistry/molecular biology 3Theoretical background computer science 4History of.
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 ? ?
1 Computing Functions with Turing Machines. 2 A function Domain Result Region has:
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Turing Machines 2nd 2017 Lecture 9.
Presentation transcript:

ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala Turing Machine CSE-501 Formal Language & Automata Theory Aug-Dec,2010 ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala

The Language Hierarchy ? ? Context-Free Languages Regular Languages

Languages accepted by Turing Machines Context-Free Languages Regular Languages

A Turing Machine Tape ...... ...... Read-Write head Control Unit

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

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

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

Time 1 ...... ...... Time 2 ...... ...... 1. Reads 2. Writes 3. Moves Right

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

Input string Blank symbol ...... ...... head Remark: the input string is never empty

States & Transitions Write Read Move Left Move Right

Example: Time 1 ...... ...... current state

Time 1 ...... ...... Time 2 ...... ......

Example: Time 1 ...... ...... Time 2 ...... ......

Example: Time 1 ...... ...... Time 2 ...... ......

Determinism Not Allowed Turing Machines are deterministic Allowed No lambda transitions allowed

Partial Transition Function Example: ...... ...... Allowed: No transition for input symbol

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

Example: ...... ...... No possible transition HALT!!!

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

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

Turing Machine Example A Turing machine that accepts the language:

Time 0

Time 1

Time 2

Time 3

Time 4 Halt & Accept

Rejection Example Time 0

Time 1 No possible Transition Halt & Reject

Infinite Loop Example A Turing machine for language

Time 0

Time 1

Time 2

Time 2 Time 3 Infinite loop Time 4 Time 5

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

Formal Definitions for Turing Machines

Transition Function

Transition Function

Turing Machine: Input alphabet Tape alphabet States Transition function Final states Initial state blank

Configuration Instantaneous description:

Time 4 Time 5 A Move:

Time 4 Time 5 Time 6 Time 7

Equivalent notation:

Initial configuration: Input string

The Accepted Language For any Turing Machine Initial state Final state

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

Computing Functions with Turing Machines

A function has: Result Region: Domain:

A function may have many parameters: Example: Addition function

Integer Domain Decimal: 5 Binary: 101 We prefer unary representation: easier to manipulate with Turing machines Unary: 11111

Definition: A function is computable if there is a Turing Machine such that: Initial configuration Final configuration initial state final state For all Domain

In other words: A function is computable if there is a Turing Machine such that: Initial Configuration Final Configuration For all Domain

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

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

Start initial state Finish final state

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

Turing machine for function

Execution Example: Time 0 (2) (2) Final Result

Time 0

Time 1

Time 2

Time 3

Time 4

Time 5

Time 6

Time 7

Time 8

Time 9

Time 10

Time 11

Time 12 HALT & accept

Another Example – SELF STUDY The function is computable is integer Turing Machine: Input string: unary Output string: unary

Start initial state Finish final 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

Turing Machine for

Example Start Finish

Block Diagram Turing Machine input output

Turing’s Thesis

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

Computer Science Law: 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

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

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

Construct a Turing Machine: Construct a TM to accept the set L of all strings over {0,1} ending with 010.

Can one TM simulate every TM? Can a TM simulate a TM? Yes, obviously. Can one TM simulate every TM?

Universal Turing Machine An Any TM Simulator Input: < Description of some TM m, w > Output: result of running m on w m Universal Turing Machine Output Tape for running TM- m starting on tape w w

Universal Turing Machine (UTM) functional notation of UTM: U(“m”“w”) = “m(w)” takes 2 arguments: m : a description of a Turing Machine TM w : description of an input string w have 2 properties: UTM halts on input “m” “w” if & only if TM halts on input “w”.

Halting Problem

Thank you