Turing Machines Extensions

Similar documents
Turing Machine Extensions, and Enumerators

Equivalence of TMs and Multitape TMs. Theorem 3.13 and Corollary 3.15 By: Joseph Lauman

Variations of the Turing Machine

More Turing Machines. CS154 Chris Pollett Mar 15, 2006.

CSCC63 Worksheet Turing Machines

Turing Machines. 22c:135 Theory of Computation. Tape of a Turing Machine (TM) TM versus FA, PDA

Turing Machines (TM) Deterministic Turing Machine (DTM) Nondeterministic Turing Machine (NDTM)

Chapter 3: The Church-Turing Thesis

Asymptotic notation : big-o and small-o

Turing s Thesis. Fall Costas Busch - RPI!1

Foundations of

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

Busch Complexity Lectures: Turing s Thesis. Costas Busch - LSU 1

Variants of Turing Machine (intro)

An example of a decidable language that is not a CFL Implementation-level description of a TM State diagram of TM

The Church-Turing Thesis

Chapter 7 Turing Machines

Turing Machines Part II

Theory of Computation

CS21 Decidability and Tractability

CS5371 Theory of Computation. Lecture 10: Computability Theory I (Turing Machine)

CS5371 Theory of Computation. Lecture 10: Computability Theory I (Turing Machine)

Homework Assignment 6 Answers

CSE 105 THEORY OF COMPUTATION

Theory of Computation

Part I: Definitions and Properties

Turing Machine properties. Turing Machines. Alternate TM definitions. Alternate TM definitions. Alternate TM definitions. Alternate TM definitions

Turing Machine Variants. Sipser pages

Turing Machines. The Language Hierarchy. Context-Free Languages. Regular Languages. Courtesy Costas Busch - RPI 1

Computability Theory. CS215, Lecture 6,

CS20a: Turing Machines (Oct 29, 2002)

where Q is a finite set of states

CSE 105 THEORY OF COMPUTATION

More About Turing Machines. Programming Tricks Restrictions Extensions Closure Properties

CpSc 421 Final Exam December 15, 2006

Harvard CS 121 and CSCI E-121 Lecture 14: Turing Machines and the Church Turing Thesis

An example of a decidable language that is not a CFL Implementation-level description of a TM State diagram of TM

P vs. NP Classes. Prof. (Dr.) K.R. Chowdhary.

Turing Machines. Nicholas Geis. February 5, 2015

ECS 120 Lesson 20 The Post Correspondence Problem

CS20a: Turing Machines (Oct 29, 2002)

Undecidable Problems and Reducibility

CSE 460: Computabilty and Formal Languages Turing Machine (TM) S. Pramanik

Chapter 8. Turing Machine (TMs)

Most General computer?

Rumination on the Formal Definition of DPDA

Turing Machines A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, q0, qaccept, qreject), where Q, Σ, Γ are all finite

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta

CS 410/610, MTH 410/610 Theoretical Foundations of Computing

CSE 105 Theory of Computation

Theory of Computation Turing Machine and Pushdown Automata

Complexity (Pre Lecture)

Turing Machine variants

Lecture 12: Mapping Reductions

Decision Problems with TM s. Lecture 31: Halting Problem. Universe of discourse. Semi-decidable. Look at following sets: CSCI 81 Spring, 2012

Lecture 14: Recursive Languages

The Turing Machine. CSE 211 (Theory of Computation) The Turing Machine continued. Turing Machines

Turing Machine Variants

Automata Theory (2A) Young Won Lim 5/31/18

Homework 5 Solution CSCI 2670 October 6, c) New text q 1 1##1 xq 3 ##1 x#q 5 #1 q reject. Old text. ~q 3 ##1 ~#q 5 #1

Turing s original paper (1936)

Recap DFA,NFA, DTM. Slides by Prof. Debasis Mitra, FIT.

CS4026 Formal Models of Computation

CSE 105 THEORY OF COMPUTATION

Time Complexity (1) CSCI Spring Original Slides were written by Dr. Frederick W Maier. CSCI 2670 Time Complexity (1)

Homework. Turing Machines. Announcements. Plan for today. Now our picture looks like. Languages

Automata Theory CS S-12 Turing Machine Modifications

Lecture 1: Introduction

Theory of Computation - Module 4

Turing Machines. Chapter 17

Introduction to Turing Machines. Reading: Chapters 8 & 9

CS5371 Theory of Computation. Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)

CSCE 551: Chin-Tser Huang. University of South Carolina

Computability and Complexity

Busch Complexity Lectures: Turing Machines. Prof. Busch - LSU 1

Theory of Computation Time Complexity

A Universal Turing Machine

Introduction to Computability

SCHEME FOR INTERNAL ASSESSMENT TEST 3

Testing Emptiness of a CFL. Testing Finiteness of a CFL. Testing Membership in a CFL. CYK Algorithm

Computational Models Lecture 8 1

COMPARATIVE ANALYSIS ON TURING MACHINE AND QUANTUM TURING MACHINE

CS154 Final Examination

CSCE 551 Final Exam, Spring 2004 Answer Key

Decidability: Church-Turing Thesis

Lecture 17: Language Recognition

Theory of Computation (IX) Yijia Chen Fudan University

CSCI3390-Lecture 16: NP-completeness

CSE 135: Introduction to Theory of Computation Nondeterministic Finite Automata (cont )

Lecture 1: Course Overview and Turing machine complexity

Computational Models Lecture 8 1

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

ASSIGNMENT THREE SOLUTIONS MATH 4805 / COMP 4805 / MATH (1) (a) A transition diagram appears below for the TM specified by the 7-tuple M =

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

Reducability. Sipser, pages

1 Deterministic Turing Machines

V Honors Theory of Computation

About the relationship between formal logic and complexity classes

Griffith University 3130CIT Theory of Computation (Based on slides by Harald Søndergaard of The University of Melbourne) Turing Machines 9-0

Turing machines COMS Ashley Montanaro 21 March Department of Computer Science, University of Bristol Bristol, UK

Transcription:

Turing Machines Extensions KR Chowdhary Professor & Head Email: kr.chowdhary@ieee.org Department of Computer Science and Engineering MBM Engineering College, Jodhpur October 6, 2010

Ways to Extend Turing Machines Many variations have been proposed: Allow two-way infinite tape Allow multiple tapes Allow Multiple heads Allow two dimensional TM Allow a multidimensional tape Allow non-determinism Allow combinations of the above Theorem: The operations of a TM allowing some or all the above extensions can be simulated by a standard TM.The extensions do not give us machines more powerful than the TM. The extensions are helpful in designing machines to solve particular problems.

Multiple Track or multi-tape TM Extensions to TM add no computation power to it: Two tapes, each with its own read-write head 1 In each step, TM reads symbols scanned by all heads, depending on those and current state, each head writes, moves R, L, and control unit enter new state. 2 Actions of heads are independent of each other 3 Tape position in two tracks: [x,y], x in first track, and y in second. δ is given by: δ(q i,[x,y])=(q j,[z,w],d,d), d {L,R} δ a,a #,a a,# #,# q 0 q 1,a,b,L,R q 2,b,#,L,L q 0,b,#,L,R,... Example: Copying string from one tape to another tape?

Multiple Track or multi-tape TM for multitape: k number of tapes δ :Q Γ k Q Γ k {L,R} k δ(q i,a 1,...,a k )=(q j,(b 1,...,b k ),(d 1,...,d k ))

Multiple Track or multitape TM How can a standard TM simulate a three-tape TM? Interleave contents of two tapes onto a single tape. 01010# Tape 1, red color is head position aaa# Tape 2 ba# Tape 3 Tape contents on simulated standard TM, is separator: 01010 aaa ba# Single Tape contents In practice, S leaves an extra blank before each symbol to record position of read-write heads

Simulate Multiple Track on standard TM How can a standard TM simulate a three-tape TM?... 1 S reads the symbols under the virtual heads (L to R). 2 Then S makes a second pass to update the tapes according to the way the M s transition function dictates. 3 If, at any point S moves one of the virtual heads to the right of, it implies that head moved to unread blank portion of that tape. So S writes a blank symbol in the right most of that tape.then continues to simulate. control will need a lot more states.

Multitape Turing Machine = Single tape TM Theorem A language is accepted by a two tape TM if and only if it is accepted by a standard TM. Proof. Part 1:If L is accepted by standard TM then it is accepted by two tape TM also(simply ignore 2nd tape), i.e.,[a,#]. Part 2: let M =(Q,Σ,Γ,δ,q 0,H) be two track. Find one track equivalent? Create ordered pair [x,y] on single tape machine M. M =(Q,Σ {#},Γ Γ,δ,q 0,F) with δ as δ (q i,[x,y])=δ(q i,[x,y]).

Nondeterministic TM Has finite number of choices of moves; components are same as standard TM; may have >1 move with same input (Q Σ). Nondeterminism is like FA and PDA. Example: Find if a graph has a connected subgraph of k nodes (no efficient algorithm exists).non-exhaustive based solution is Guess & check. 1 NDTM: Arbitrarily choose a move when more than one possibility exists for δ(q i,a). 2 Accept the input if there is at least one computation that leads to accepting state (however, the converse is irrelevant). To find a NDTM for ww input, w Σ, you need to guess the mid point. A NDTM may specify any number of transitions for a given configuration, i.e. δ :(Q H) Γ subset of Q Γ {L,R}

Nondeterministic TM... Example: w =ucv, where c is preceded by or followed by ab Approach: Read input a,b,c and write a,b,c respectively, and move R in each, at start state. Then with input c, Nondeterministically decide c, a, b by moving R in three states transitions or decide c,b,a by moving L in three other states transitions (i.e., abc)

Transformation of NDTM to Standard TM A NDTM produces multiple computations for a single string. We show that multiple computations m 1,...,m i,...,m k for a single input string can be sequentially generated and applied. These computations can be systematically produced by adding the alternative transitions for each Q Σ pair. Each m i has number of transitions 1 n. If δ(q i,x)=0, the TM halts. Using the ability to sequentially produce the computations, a NDTM M can be simulated by a 3-tape TM M.

Transformation of NDTM to Standard TM... Every nondeterministic TM has an equivalent 3-tape Turing machine, which, in turn, has an equivalent 1-tape Turing machine.

Simulation of a NDTM by 3-tape TM Tape-1 stores the input string, tape-2 simulates the tape of M, and tape-3 holds sequence m 1,...,m i,...,m k to guide the simulation. Computation of M consists following: A sequence of inputs m 1,...,m i,...,m k, where each i =1,n is written on tape-3. Input string is copied on tape-2. Computation of M defined by sequence on tape-3 is simulated on tape-2. If simulation halts prier to executing k transitions, computations ofm halts and accepts input, else The Next sequence is generated on tape-3 and computation continues on tape-2.

Two-way infinite tape There is single tape which extends from to +. One R-W head, M =(Q,Σ,δ,q 0,F)...-3-2 -1 0 1 2 3..., is square sequence on TM, with R-W head at 0 This can be simulated by a two-track TM: M =(Q {q s,q t }) {U,D}, where U = up tape head, D = down tape head, Σ =Σ,Γ =Γ {#}, and F ={[q i,u],[q i,d] q i F}. Initial state of M is pair [q s,d]. A transition from this writes # in U track at left most position. Transition from [q t,d] returns the tape head to its original position to begin simulation of M.

Multi-Dimensional Tape: Single R-W head, but multiple tapes exists. Let the Dimensions be 2D. For each input symbol and state, this writes a symbols at current head position, moves to a new state, and R-W head moves to left or right or up or down. Simulate it on 2-tape TM: copy each row of 2-D tape on 2nd tape of 2-tape TM. When 2D TM moves head L or R, move the head on 2nd-tape of two-tape also L or R. When 2D head moves up, 2nd tape of two-tape scans left until it finds. As it scans, it writes the symbols on tape-1. Then scans and puts remaining symbols on tape-1. Now it simulates this row (on tape-1).