Remarks on the computational complexity of small universal Turing machines

Similar documents
Notes on Complexity Theory Last updated: August, Lecture 1

Turing Machines: An Introduction

Lecture 2: Universality

The Classes P and NP

1. Nondeterministically guess a solution (called a certificate) 2. Check whether the solution solves the problem (called verification)

6.080 / Great Ideas in Theoretical Computer Science Spring 2008

NP-Completeness and Cook s Theorem

P versus NP, and More

CS 3719 (Theory of Computation and Algorithms) Lecture 4

Oracle Turing machines faced with the verification problem

The Halting Problem is Undecidable

NP-complete? NP-hard? Some Foundations of Complexity. Prof. Sven Hartmann Clausthal University of Technology Department of Informatics

3515ICT Theory of Computation Turing Machines

Computability Theory

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

Notes on Complexity Theory Last updated: August, Lecture 1

On the Relationship between Classes P and NP

Implementation of Recursively Enumerable Languages using Universal Turing Machine in JFLAP

Introduction to computer science

6.080/6.089 GITCS Feb 12, Lecture 3

CSE 135: Introduction to Theory of Computation Decidability and Recognizability

Regular Languages and Finite Automata

Competitive Analysis of On line Randomized Call Control in Cellular Networks

MATHEMATICS: CONCEPTS, AND FOUNDATIONS Vol. III - Logic and Computer Science - Phokion G. Kolaitis

Universality in the theory of algorithms and computer science

How To Compare A Markov Algorithm To A Turing Machine

Chapter 7 Uncomputability

Influences in low-degree polynomials

IMPROVING PERFORMANCE OF RANDOMIZED SIGNATURE SORT USING HASHING AND BITWISE OPERATORS

Computational Models Lecture 8, Spring 2009

Theoretical Computer Science (Bridging Course) Complexity

24 Uses of Turing Machines

SIMS 255 Foundations of Software Design. Complexity and NP-completeness

Complexity Classes P and NP

Reading 13 : Finite State Automata and Regular Expressions

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

Regular Expressions with Nested Levels of Back Referencing Form a Hierarchy

International Journal of Information Technology, Modeling and Computing (IJITMC) Vol.1, No.3,August 2013

CAs and Turing Machines. The Basis for Universal Computation

An example of a computable

1 Definition of a Turing machine

Representing Reversible Cellular Automata with Reversible Block Cellular Automata

Deterministic Finite Automata

Lecture 13 - Basic Number Theory.

Analysis of Approximation Algorithms for k-set Cover using Factor-Revealing Linear Programs

Computational complexity theory

Overview. Essential Questions. Precalculus, Quarter 4, Unit 4.5 Build Arithmetic and Geometric Sequences and Series

8 Primes and Modular Arithmetic

Polynomial Degree and Lower Bounds in Quantum Complexity: Collision and Element Distinctness with Small Range

Theory of Computation Chapter 2: Turing Machines

Definition Given a graph G on n vertices, we define the following quantities:

Microeconomic Theory: Basic Math Concepts

Near Optimal Solutions

Approximated Distributed Minimum Vertex Cover Algorithms for Bounded Degree Graphs

Solving Systems of Linear Equations

Universal Turing Machine: A Model for all Computational Problems

Computation Beyond Turing Machines

Informatique Fondamentale IMA S8

On line construction of suffix trees 1

Course Manual Automata & Complexity 2015

4/1/2017. PS. Sequences and Series FROM 9.2 AND 9.3 IN THE BOOK AS WELL AS FROM OTHER SOURCES. TODAY IS NATIONAL MANATEE APPRECIATION DAY

Continued Fractions and the Euclidean Algorithm

Introduction to Turing Machines

Automata and Computability. Solutions to Exercises

Generating models of a matched formula with a polynomial delay

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

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Exponential time algorithms for graph coloring

Complexity of Algorithms

GENERIC COMPUTABILITY, TURING DEGREES, AND ASYMPTOTIC DENSITY

On Generalized Fermat Numbers 3 2n +1

The P versus NP Solution

14.1 Rent-or-buy problem

CELLULAR AUTOMATA AND APPLICATIONS. 1. Introduction. This paper is a study of cellular automata as computational programs

CSC 373: Algorithm Design and Analysis Lecture 16

Class constrained bin covering

A Near-linear Time Constant Factor Algorithm for Unsplittable Flow Problem on Line with Bag Constraints

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

Continued Fractions. Darren C. Collins

11 Multivariate Polynomials

Complexity problems over algebraic structures

Online Adwords Allocation

Notes on Determinant

Notes from Week 1: Algorithms for sequential prediction

Our Primitive Roots. Chris Lyons

1 Example of Time Series Analysis by SSA 1

THEORY of COMPUTATION

Mathematics Review for MS Finance Students

5.1 Bipartite Matching

CPSC 211 Data Structures & Implementations (c) Texas A&M University [ 313]

3. Computational Complexity.

Fast Sequential Summation Algorithms Using Augmented Data Structures

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

Reliability Guarantees in Automata Based Scheduling for Embedded Control Software

Is Sometime Ever Better Than Alway?

Transcription:

Remarks on the computational complexity of small universal Turing machines Damien Woods School of Mathematics Boole Centre for Research in Informatics, University College Cork, Ireland http://www.bcri.ucc.ie/ ~ dw5 Turlough Neary TASS, Department of Computer Science, National University of Ireland, Maynooth, Ireland http://cs.may.ie/ ~ tneary Abstract This paper surveys some topics in the area of small universal Turing machines and tag systems. In particular we focus on recent results concerning the computational complexity of such machines. Keywords: small universal Turing machines, polynomial time, tag systems. 1 Introduction Shannon [22] was the first to consider the question of finding the smallest possible universal Turing machine (UTM), where size (s, l) is the number of states s and symbols l. Early attempts [5, 25] gave small UTMs that efficiently (with a polynomial time slowdown) simulate Turing machines. In the early 1960s Cocke and Minsky [2] showed that 2-tag systems simulate Turing machines, but in an exponentially slow fashion. Minsky [12] found a 7- state, 4-symbol UTM that simulates 2-tag systems in polynomial time. So this small UTM simulates Turing machines via the following sequence of simulations Turing machine 2-tag system small UTM (1) where A B denotes that A is simulated by B. Later Rogozhin [21] and others [1, 7, 19] used Minsky s technique of simulation via (1) to find small UTMs for a range of state-symbol pairs (see Figure 1). All of these small UTMs efficiently simulate 2-tag systems. However since the 2-tag simulation of Turing machines is exponentially slow, it remained open as to whether these Both authors are supported by the Irish Research Council for Science, Engineering and Technology 1

UTMs could be made to run in polynomial time. We have recently resolved this situation by showing that 2-tag systems efficiently simulate Turing machines. Theorem 1 ([26]). Given a Turing machine M that computes in time t then there is a 2-tag system T M that simulates the computation of M and computes in polynomial time O(t 4 (log t) 2 ). We immediately get the following interesting result. Corollary 2 ([26]). The small UTMs of Minsky, Rogozhin and others [1, 7, 12, 19, 21] are polynomial time, O(t 8 (log t) 4 ), simulators of Turing machines. This is an exponential improvement on the previously known simulation time overhead and improves a forty year old result in the area of small UTMs. Before this result was known it was entirely plausible that there was a tradeoff between UTM program size complexity, and time/space complexity; the smallest UTMs seemed to be exponentially slow. However our result shows there is currently little evidence for such a claim. Since this result, Neary has found (9, 3) and (18, 2) UTMs [13]. These machines are efficient simulators of Turing machines and simulate via bi-tag systems [14]. Bi-tag systems are a variant of tag system that use the technique of reading either one or two symbols per timestep in order to efficiently simulate Turing machines. Prior to Theorem 1 the smallest known polynomial time UTMs are to be found in [16]. However these efficient machines are not as small those of Rogozhin et al., hence Theorem 2 represents a significant size improvement for efficient UTMs. On the other hand, the machines in [16] remain significant to this day since (i) they are the smallest known UTMs that directly simulate Turing machines and (ii) they have only a quadratic slowdown when simulating 1-tape machines. Figure 1 illustrates the present situation. 1.1 Unanswered questions Suppose we change the usual definition of UTM to allow for repeated blank words. Does this situation permit smaller universal machines? As yet there is no definite answer to this question, however we conjecture that it is indeed the case. As evidence we cite the small machines of Cook. 1 As Figure 1 shows, Cook s machines are significantly smaller than the non-repeated blank word machines. A second piece of evidence is the fact that Cook uses the repeated blank word to store a (possibly universal) cyclic tag system program. To illustrate potential difficulties of proving decidability for certain statesymbol classes we note that Margenstern [10] gives a number of small machines that simulate the famous Collatz 3x 1 problem (Margenstern gives (2, 10), 1 In the present paper, the phrase small UTMs refers to Turing machines that obey the standard definitions. Recently M. Cook [3] has found universal machines that are smaller than all others discussed in the present paper (see Figure 1). However Cook s UTMs are generalisations of standard Turing machines: their blank tape consists of an infinitely repeated word to the left and another to the right. Incidentally Cook s machines simulate Rule 110, which he showed to be universal via a magnificent construction in the same paper. Via Cook s construction, his universal machines are exponentially slow; in a recent paper [15] we have improved their simulation time overhead to polynomial. 2

(4, 4), (5, 3) and (2, 11) machines and mentions that Baiocchi has improved these results by giving (2, 8), (5, 2) and (2, 10) machines). Michel subsequently gave (2, 4), (3, 3) and (5, 2) machines that simulate an open Collatz-like problem [11], which suggests that moving the non-universal curve to these points could be difficult. However, Michel [11] has conjectured that all (4, 2) machines are decidable. Can we have more efficient small UTMs? For example the machines that simulate 2-tag or bi-tag systems leave garbage data on the tape, because of this they use space that is linear in the time of the simulated Turing machine. Can we have small UTMs that are more space efficient? For example it would be interesting to find small UTMs that simultaneously use space that is a constant times the space used by the simulated Turing machine and time that is a polynomial of the time used by the simulated Turing machine. Such machines would satisfy van Emde Boas [23] notion of reasonable sequential machines. What about small UTMs with less than polynomial time complexity? For example, consider the construction of a linear time UTM. The following idea makes it seem that direct simulation of Turing machines is the most straightforward way to achieve a linear time UTM. Let M be a one tape Turing machine. The program of M is encoded as a word that is positioned at the simulated tape head location on the UTM s tape. Simulating a transition rule would involve scanning through the encoded table of behaviour, however it is not necessary to scan the entire simulated tape contents. The idea is straightforward, however trying to construct small linear time UTMs could be difficult. 1.2 Applications Besides Corollary 2 there are numerous other applications of Theorem 1. Rogozhin and Verlan [20] prove the universality of splicing tissue P systems with only 8 rules by simulating 2-tag systems. Simulation via small UTMs has been used to prove universality in cellular automata [9, 10]. Our result improves the efficiency of these simulations. For another example, Levin and Venkatesan [8, 24] used a small 8-state, 5-symbol, polynomial time UTM of Watanabe s [25] to show the average case NP-completeness of a graph colouring problem. Our construction gives polynomial time UTMs that are significantly smaller than Watanabe s and thus improves (lowers) the number of colours in their construction. References [1] C. Baiocchi. Three small universal Turing machines. In M. Margenstern and Y. Rogozhin, editors, Machines, Computations, and Universality, volume 2055 of LNCS, pages 1 10, Chişinău, Moldova, May 2001. Springer. [2] J. Cocke and M. Minsky. Universality of tag systems with p = 2. Journal of the Association for Computing Machinery, 11(1):15 20, Jan. 1964. [3] M. Cook. Universality in elementary cellular automata. Complex Systems, 15(1):1 40, 2004. [4] G. T. Hermann. The uniform halting problem for generalized one state Turing machines. In Proceedings of the ninth annual Symposium on Switching 3

polynomial time UTMs [16] UTMs of Minsky, Rogozhin et al. [1, 7, 12, 19, 21] polynomial time UTMs [13, 14] Cook s machines [3] previous polynomial time curve new polynomial time curve [26], this was previously exponential non-universal curve symbols 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 states Figure 1: State-symbol plot of small UTMs. The plot shows the polynomial time curve induced by our previous UTMs [16], the previously exponential time curve of Minsky, Rogozhin and others [1, 7, 12, 21], and the non-universal Turing machine curve for which there are no UTMs [4, 6, 17, 18]. Theorem 1 [26] improves the polynomial time curve so that it coincides with the previous exponential time curve. The polynomial time UTMs from [13] represent a further improvement for 2 and 3 symbol machines. and Automata Theory (FOCS), pages 368 372, Schenectady, New York, Oct. 1968. IEEE Computer Society Press. [5] N. Ikeno. A 6-symbol 10-state universal Turing machine. In Proceedings, Institute of Electrical Communications, Tokyo, 1958. [6] M. Kudlek. Small deterministic Turing machines. Theoretical Computer Science, 168(2):241 255, 1996. [7] M. Kudlek and Y. Rogozhin. A universal Turing machine with 3 states and 9 symbols. In W. Kuich, G. Rozenberg, and A. Salomaa, editors, Developments in Language Theory, volume 2295 of LNCS, pages 311 318, Vienna, May 2001. Springer. [8] L. A. Levin and R. Venkatesan. An average case NP-complete graph problem. arxiv:cs.cc/0112001, v2, 2002. [9] K. Lindgren and M. Nordahl. Universal computation in simple onedimensional cellular automata. Complex Systems, 4(3):299 318, 1990. [10] M. Margenstern. Frontier between decidability and undecidability: a survey. Theoretical Computer Science, 231(2):217 251, Jan. 2000. [11] P. Michel. Small Turing machines and generalized busy beaver competition. Theoretical Computer Science, 326:45 56, Oct. 2004. 4

[12] M. Minsky. Size and structure of universal Turing machines using tag systems. In Recursive Function Theory: Proceedings, Symposium in Pure Mathematics, volume 5, pages 229 238, Provelence, 1962. AMS. [13] T. Neary. Small polynomial time universal Turing machines. In MFCSIT 06 (this volume), Ireland. NUI Cork. [14] T. Neary and D. Woods. A small fast universal Turing machine. Technical Report NUIM-CS-TR-2005-12, Department of Computer Science, NUI Maynooth, 2005. [15] T. Neary and D. Woods. P-completeness of cellular automaton rule 110. In M. Bugliesi et al., editor, International Colloquium on Automata Languages and Programming (ICALP 2006 Part 1), volume 4051 of Lecture Notes in Computer Science, pages 132 143. Springer, July 2006. [16] T. Neary and D. Woods. Small fast universal Turing machines. Theoretical Computer Science, 2006. Accepted. [17] L. Pavlotskaya. Solvability of the halting problem for certain classes of Turing machines. Mathematical Notes (Springer), 13(6):537 541, June 1973. [18] L. Pavlotskaya. Dostatochnye uslovija razreshimosti problemy ostanovki dlja mashin T juring. Problemi kibernetiki, 33:91 118, 1978. (Sufficient conditions for the halting problem decidability of Turing machines) (in Russian). [19] R. Robinson. Minsky s small universal Turing machine. International Journal of Mathematics, 2(5):551 562, 1991. [20] Y. Rogozhin and S. Verlan. On the rule complexity of universal tissue P systems. In Proceedings, 6 th International Workshop on Membrane Computing, pages 510 516, Vienna, Jul. 2005. [21] Y. Rogozhin. Small universal Turing machines. Theoretical Computer Science, 168(2):215 240, 1996. [22] C. E. Shannon. A universal Turing machine with two internal states. Automata Studies, Annals of Mathematics Studies, 34:157 165, 1956. [23] P. van Emde Boas. Machine models and simulations. In van Leeuwen, ed, Handbook of Theoretical Computer Science, vol A, chapt 1. Elsevier, 1990. [24] R. Venkatesan and L. Levin. Random instances of a graph coloring problem are hard. In Proceedings of the twentieth annual ACM symposium on Theory of computing (STOC), pages 217 222, Chicago, Illinois, 1988. ACM. [25] S. Watanabe. 5-symbol 8-state and 5-symbol 6-state universal Turing machines. Journal of the ACM, 8(4):476 483, Oct. 1961. [26] D. Woods and T. Neary. On the time complexity of 2-tag systems and small universal Turing machines. In 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS). IEEE, 2006. (Accepted). 5