More undecidable problems

Similar documents
CSE 135: Introduction to Theory of Computation Decidability and Recognizability

Theory of Computation Chapter 2: Turing Machines

CS154. Turing Machines. Turing Machine. Turing Machines versus DFAs FINITE STATE CONTROL AI N P U T INFINITE TAPE. read write move.

24 Uses of Turing Machines

CAs and Turing Machines. The Basis for Universal Computation

Chapter 7 Uncomputability

Automata and Computability. Solutions to Exercises

(IALC, Chapters 8 and 9) Introduction to Turing s life, Turing machines, universal machines, unsolvable problems.

Computational Models Lecture 8, Spring 2009

Notes on Complexity Theory Last updated: August, Lecture 1

3515ICT Theory of Computation Turing Machines

Overview of E0222: Automata and Computability

The Halting Problem is Undecidable

CS 3719 (Theory of Computation and Algorithms) Lecture 4

Lecture 2: Universality

Introduction to Turing Machines

Computability Theory

Turing Machines, Part I

Turing Machines: An Introduction

Diagonalization. Ahto Buldas. Lecture 3 of Complexity Theory October 8, Slides based on S.Aurora, B.Barak. Complexity Theory: A Modern Approach.

1 Definition of a Turing machine

Implementation of Recursively Enumerable Languages using Universal Turing Machine in JFLAP

Universal Turing Machine: A Model for all Computational Problems

How To Understand The Theory Of Computer Science

Algebraic Computation Models. Algebraic Computation Models

How To Compare A Markov Algorithm To A Turing Machine

6.080 / Great Ideas in Theoretical Computer Science Spring 2008

Computer Science Theory. From the course description:

CSC4510 AUTOMATA 2.1 Finite Automata: Examples and D efinitions Definitions

Model 2.4 Faculty member + student

Introduction to NP-Completeness Written and copyright c by Jie Wang 1

CS 301 Course Information

Outline 2. 1 Turing Machines. 2 Coding and Universality. 3 The Busy Beaver Problem. 4 Wolfram Prize. 5 Church-Turing Thesis.

Properties of Stabilizing Computations

South East of Process Main Building / 1F. North East of Process Main Building / 1F. At 14:05 April 16, Sample not collected

Computability Classes for Enforcement Mechanisms*

Lecture 36: Turing Machines [Fa 14]

The P versus NP Solution

Quantum Computing. Robert Sizemore

FINITE STATE AND TURING MACHINES

CHAPTER 7 GENERAL PROOF SYSTEMS

Turing Machines, Busy Beavers, and Big Questions about Computing

Honors Class (Foundations of) Informatics. Tom Verhoeff. Department of Mathematics & Computer Science Software Engineering & Technology

Welcome to... Problem Analysis and Complexity Theory , 3 VU

6.080/6.089 GITCS Feb 12, Lecture 3

Introduction to Automata Theory. Reading: Chapter 1

4.6 The Primitive Recursive Functions

Reading 13 : Finite State Automata and Regular Expressions

Hilberts Entscheidungsproblem, the 10th Problem and Turing Machines

Notes on Complexity Theory Last updated: August, Lecture 1

Chapter 1. Computation theory

Lecture 1: Oracle Turing Machines

Complexity Classes P and NP

Oracle Turing machines faced with the verification problem

SRM UNIVERSITY FACULTY OF ENGINEERING & TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF SOFTWARE ENGINEERING COURSE PLAN

Informatique Fondamentale IMA S8

Pushdown Automata. place the input head on the leftmost input symbol. while symbol read = b and pile contains discs advance head remove disc from pile

THE TURING DEGREES AND THEIR LACK OF LINEAR ORDER

Super Turing-Machines

Philadelphia University Faculty of Information Technology Department of Computer Science First Semester, 2007/2008.

Models of Sequential Computation

How To Program In Scheme (Prolog)

A brief introduction to the theory of computation

Implementation of DNA Pattern Recognition in Turing Machines

WE write string to mean a finite binary string. Other. Information Distance

Semantic Description of Distributed Business Processes

NP-Completeness and Cook s Theorem

Introduction to Theory of Computation

Turing Machines and Understanding Computational Complexity

FINANCIAL ADMINISTRATION MANUAL

Solving Linear Equations in One Variable. Worked Examples

Universality in the theory of algorithms and computer science

Deterministic Finite Automata

Pushdown automata. Informatics 2A: Lecture 9. Alex Simpson. 3 October, School of Informatics University of Edinburgh als@inf.ed.ac.

Complexity of Algorithms

Quantum and Non-deterministic computers facing NP-completeness

The Classes P and NP. mohamed@elwakil.net

Composability of Infinite-State Activity Automata*

How To Understand The Relation Between Simplicity And Probability In Computer Science

Introduction to Finite Automata

Introduction to computer science

Algorithmic Software Verification

The Classes P and NP

Programming Languages

Computing temporal data from temporal data

Circuit diagrams and symbols (1)

TELNET CLIENT 5.11 SSH SUPPORT

Increasing Interaction and Support in the Formal Languages and Automata Theory Course

Application. Generic Conference Control (T.124) Multipoint Communications Service (T.122/T.125) Network Specific Transport Protocols (T.

Introduction to Basics of Communication Protocol

Rossmoor Website SEO Tracking Sheet Updated: April 1, 2014

A NOTE ON ACCELERATED TURING MACHINES

Downloaded 09/24/14 to Redistribution subject to SIAM license or copyright; see

The Ergodic Theorem and randomness

a field, in which little has been done, but in which an enormous amount can be done in principle

Notes on NP Completeness

First programming project: Key-Word indexer

Simulation-Based Security with Inexhaustible Interactive Turing Machines

Post s Machine. Liesbeth De Mol Center for Logic and Philosophy of Science Blandijnberg 2, 9000 Gent, Belgium elizabeth.demol@ugent.

Prime Numbers. Difficulties in Factoring a Number: from the Perspective of Computation. Computation Theory. Turing Machine 電 腦 安 全

Transcription:

More undecidable problems Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 24 November 2011

Outline 1 More problems about Turing Machines

Problem (a) Is it decidable whether a given Turing machine has at least 481 states? Assume that the TM is given using the encoding below: 0 n 10 m 10 k 10 s 10 t 10 r 10 u 10 v 1 0 p 10 a 10 q 10 b 10 1 0 p 10 a 10 q 10 b 100 1 0 p 10 a 10 q 10 b 10. 00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.

Problem (a) Is it decidable whether a given Turing machine has at least 481 states? Assume that the TM is given using the encoding below: 0 n 10 m 10 k 10 s 10 t 10 r 10 u 10 v 1 0 p 10 a 10 q 10 b 10 1 0 p 10 a 10 q 10 b 100 1 0 p 10 a 10 q 10 b 10. 00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010. Yes, it is. We can give a TM N which given enc(m) Counts the number of states in M upto 481. Accepts if it reaches 481, rejects otherwise.

Problem (b) Is it decidable whether a given Turing machine takes more than 481 steps on input ɛ without halting? 00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.

Problem (b) Is it decidable whether a given Turing machine takes more than 481 steps on input ɛ without halting? 00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010. Yes, it is. We can give a TM N which given enc(m) Uses 4 tapes: On the 4th tape it writes 481 0 s. Uses the first 3 tapes to simulate M on input ɛ, like the universal TM U. Blanks out a 0 from 4th tape for each 1-step simulation done by U. Rejects if M halts before all 0 s are blanked out on 4th tape, accepts otherwise.

Problem (c) Is it decidable whether a given Turing machine takes more than 481 steps on some input without halting? 00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.

Problem (c) Is it decidable whether a given Turing machine takes more than 481 steps on some input without halting? 00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010. Yes, it is. Check if M runs for more than 481 steps on each input x of length upto 481. If so accept, else reject. 1 2 3 481 482 a a b a b a a a

Problem (d) Is it decidable whether a given Turing machine takes more than 481 steps on all inputs without halting? 00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.

Problem (d) Is it decidable whether a given Turing machine takes more than 481 steps on all inputs without halting? 00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010. Yes, it is. Check if M runs for more than 481 steps on each input x of length upto 481. If so accept, else reject. 1 2 3 481 482 a a b a b a a a

Problem (e) Is it decidable whether a given Turing machine moves its head more than 481 cells away from the left-end marker, on input ɛ? 00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.

Problem (e) Is it decidable whether a given Turing machine moves its head more than 481 cells away from the left-end marker, on input ɛ? 00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010. Yes, it is. Simulate M on ɛ for upto m 481 482 k steps. If M visits the 482nd cell, accept, else reject. 1 2 3 481 482 a a b a b a a a

Problem (f) Is it decidable whether a given Turing machine accepts the null-string ɛ?

Problem (f) Is it decidable whether a given Turing machine accepts the null-string ɛ? No. If it were decidable, say by a TM N, then we could use N to decide HP as follows: Define a new machine N which given input M#x, outputs the description of a machine M which: erases its input writes x on its input tape Behaves like M on x Accepts if M halts on x. N then calls N with input M. N accepts M iff M accepts ɛ iff M halts on x.

Turing machine M for Problem (f) L(M ) = { A if M halts on x if M does not halt on x.

Problem (g) Is it decidable whether a given Turing machine accepts any string at all? That is, is L(M)?

Problem (h) Is it decidable whether a given Turing machine accepts all strings? That is, is L(M) = A?

Problem (i) Is it decidable whether a given Turing machine accepts a finite set?

Problem (j) Is it decidable whether a given Turing machine accepts a regular set?

Problem (j) Is it decidable whether a given Turing machine accepts a regular set? Given M and x, build a new machine M that behaves as follows: 1 Saves its input y on tape 2. 2 writes x on tape 1. 3 runs as M on x. 4 if M gets into a halting state, then M takes back control, Runs as M R on y, (Here M R is any TM that accepts a non-regular language R, say R = {a n b n n 0}). M accepts iff M R accepts.

Turing machine M for Problem (j) L(M ) = { R if M halts on x if M does not halt on x.

Problem (k) Is it decidable whether a given Turing machine accepts a CFL?

Problem (l) Is it decidable whether a given Turing machine accepts a recursive set?