Turing Machines with Finite Memory

Size: px
Start display at page:

Download "Turing Machines with Finite Memory"

Transcription

1 Turing Machines with Finite Memory Wilson Rosa de Oliveira Departamento de Física e Matemática UFRPE, Rua Dom Manoel de Medeiros, s/n, CEP , Rece PE, Brazil wrdo@cin.ufpe.br Marcílio C. P. de Souto & Teresa B. Ludermir Centro de Informática - UFPE, Caixa Postal 7051, CEP , Rece - PE, Brazil Abstract 1. Introduction Faced with the problem of determining the computing power of weighted neural networks relating them to conventional models of computing, researchers have come up with main two approaches: An infinite number of neurons[7, 10, 21] or Motivated by our earlier work on Turing computability via neural networks[4, 3] the results by Maass et.al.[14, 15] on the limit of what can be actually computed by neural networks when noise (or limited precision on the weights) is considered, we introduce the notion of Definite Turing Machine (DTM) investigate some of its properties. We associate to every Turing Machine (TM) a Finite State Automaton (FSA) responsible for the next state transition action (output head movement). A DTM is TM in which its FSM is definite. A FSA is definite (of order )itspresentstatecanbeuniquelydetermined by the last inputs. We show that DTM are strictly less powerful than TM but are capable to compute all simple functions([1]). The corresponding notion of finite-memory Turing machine is shown to be computationally equivalent to Turing machine. afinitenumberofneuronsbutwithunbounded(rational) weights [19, 17]. They all have in common the assumption that the TM tape, an infinite resource, should be represented inside the NN. And that accounts for the need of an infinite number of neurons or the unbounded weights mentioned above. While the first approach is not biologically plausible the second is, due to the limits on measurements, not physically plausible. When some form of imprecision or noise due the physical, biological or technological limitations is considered, the computing power of analog NN are considerably decreased[14, 15]. We have on previous occasions [4, 3] argued against these approaches by claiming that the infinite tape of a Turing machine is an external non-intrinsic feature, which should not be internalized. In Turing own analysis [22], the tape size is merely a mathematical convenience. In fact, the tape is meant as an auxiliary memory for calculations by the machine as a counterpart to a sheet of paper for humans. The idea is that Turing machine = finite state control + infinite tape is a mathematical abstraction of Human calculator = mind + sheets of paper We proceed then to simulate a TM with a Discrete Time Recurrent Neural Network (DTRNN) leaving the TM tape outside the network regarding it as the environment with which the network interacts. We can have two views. In one view, our neural model could be seen as composed of four main modules: recognition, control, writing movement modules. The first module recognizes the content of a tape cell. The result of this recognition process is then sent to the control module, which simulates the TM control ( mind ). The output of the control module is passed on to: (1) the writing module, which writes the symbol on the tape; (2) the movement module, which moves the TM s head left or right. In another more abstract view we regard our system as sort of Neural Turing Machine, i.e. a Turing Machine in which the state control is governed by a neural network. No matter the view, the simulation amounts to actually implements the Finite State Automata (FSA) (more precisely, a sequential Mealy machine[12]) responsible for the next state action (output movement) of the TM. After the results in [15] which indicate that a NN can, in presence of noise, at most implements definite automata, the natural question to ask is What is the computing power of

2 atmwithdefinitecontrol?.sowedefineinvestigate the properties of these Definite Turing Machines the related notion of Finite-Memory Turing Machines For a more detailed critique to current implementations of TMs in Neural Networks, we refer the reader to [3]. 2. Main Definitions Below we start by formalizing the intuitive notion of a Turing machine depicted above. Then we define the notion of Mealy machine, which is a finite state automaton with an output function. And finally we define the kind of neural networks we use, the first order recurrent neural network where the units have the logistic function as activation function[2]. Next we show how our simulation works then we present a notion of Definite Turing Machines. Definition 1 A Turing Machine over afinitealphabet aquintuple,(thesubscriptsare used when necessary) where: (1) is afinitesetofstateswithadistinguished(initial) state, (usually ); (2) is a function, where is the set of possible head movements. is to be thought as a finite set of instructions means that the machine being in the state reading the symbol from the current cell in the tape will take the following actions: erase from the cell write in its place; change the internal state from to move the head position one cell to the left ( ), one to the right ( )ordoesnotmove( ) Definition 2 A Mealy machine is a sixtuple,where:(1) is a finite set of states; (2) is a finite input alphabet;(3) is a finite output alphabet; (4) is the next state function. should be interpreted as the machine being in state reading symbol goes to state ;(5). should be interpreted as the machine being in state reading symbol writes symbol ;(6) is the initial state where the machine is before the first symbol is read. Remark 1 Apair is usually called a transition system (over ). We can sometimes refer to the transition system of the Mealy machine. an input ( ); the in (a bias) indicates that it is used to compute a state. So,,, in the subscript means respectivelly input, state, output hidden output layer. Definition 3 A deterministic time recurrent neural network or simply a neural network is a sixtuple where: (1), the dimensional unit cube, is the state space of the network is the number os units or neurons; (2) is the set of possible input vector, with the set of real numbers the number of input lines; (3) is the set of outputs of the network, with the number of output units; (4) is the next state function which computes a new state from the previous state the input just read.the th coordinate of is given by (5) is the output function which computes a new output from the previous state the input just read.the th coordinate of is given by 1 where (6) finally, is the initial state of the network which simply is the value that will be used for. 3. The implementation The simulation can easily be grasped by first observing that computations in a Turing machine is actually controlled by a Mealy machine: Throughout let be the logistic map: can be seen as In what follows the superscripts in the weights indicate the computation involved: for example the in indicates that the weight is used to compute a state ( )from 1 As it is known (Gouddreau et.al.[9]), networks as above cannot represent the output function of all Mealy machine unless a two-layer scheme is used. Hence we assume be the hidden output layer where is the number of such units.

3 i.e. given a TM we look at the heart of which essentially is a Mealy machine,where, are defined as above. Remark 2 We can now speak of the transition system of a Turing machine meaning the transition system of the corresponding Mealy machine. In order to find an appropriate value for above take We now look at Carrasco et.al.[2] stable implementation of a Mealy machine in DTRNN. From the original Mealy machine M they construct the split-state split-output Mealy machine where (1),, is any of the ; (2) (3). The general construction of above usually gives rise to inaccessible states outputs which can be removed (see Hopcroft Ullmann[11]). Next, following Carrasco et. al. [2], we construct a sigmoid DTRNN simulation using the equations below. The number of state space units, input lines output units are, respectively,,. The weights biases for the next state function are given by now The iteration scheme A few iteration starting with an intermediate value in such as are enough for any. Now that we have found,wecanfindtheminimum value for such that which is the used to obtain such that The output function is defined by the following weight scheme: In its turn the output layer has the following weights: In Figure 1(a) we give an example of a Turing Machine with 6 states 2 input symbols which multiplies by two a given input in unary base. The corresponding Mealy machine implementing the control of is in Figure 1(b). In Figure 2(a) the split-state split-output machine from. has states which are unreachable from the initial state 0whenremovedgivethemachineinFigure2(b).Using the results in the present paper we find,. By repeating these steps starting now with a (minimal [18]) Universal Turing Machine with 24 states 2 input symbols (UTM(24,2)), we obtain,.theresultingmealy machine is given in [3]. The number of units depends on the amount of unreachable states being removed can not obviously be generally predicted. But we can easily find the upper bound as follows. The numbers of units for a Turing with states symbols is which in our case (two symbol TM) becomes. We have thus sketchily proved the following: Theorem 1 Any Turing machine over with states can be simulated by a sigmoid Turing neural network with units.

4 (a) (b) Figure 1. (a) A Turing machine which multiplies by two a given number in unary base. (b) The control of the TM as a Mealy machine. The output pairs,is coded as the integer. 4. Definite Turing Machines Definition 4 ([16, 20]) A transition system is definite, only, for every word of length greater than,,foranypairofstates. Definition 5 AMealymachineis its transition system is. Definition 6 ATuringmachineis its transition system is. definite, only, definite, only, There are various algorithms for deciding a given transition system is definite or not. We use one based on testing table testing graph presented in [13]. The testing table has columns, one for each symbol in the input alphabet. Its rows are divided into two two parts, the upper part correspond to the states of the machine, the table entries are the state transitions. The row headings in the lower part of the table are all unordered pairs of non equal sates, while the table entries are the corresponding pair of state transitions. The testing graph is a directed graph which has as vertices the row headings in the lower part of the testing table there is an edge from,,to,,,only,thereisanentry in row column.theedgeislabelled.noedge implies.thetransitionsystemis definite, only, its testing graph is loop free length of longest path in is. Anon-definiteTMisshowninFigure3whileinFigure4 there is a definite one. 5. Simple Functions In Computing Theory, on the class of primitive recursive functions we can define a hierarchy of classes of functions (a) Figure 2. (a) The split-state split-output Mealy machine obtained from (Figure 1(b)). We have encoded pairs into integers. (b) The Mealy machine obtained from in (a) of increasing complexity (e.g. see the textbook [1]). They are related to programs having a maximum depth of nesting FOR statements in a toy programming language. is the class of functions computed by programs having a maximum depth of nesting FOR statements. One should note that the whole of the primitive recursive functions can be computed by programs with no GOTO statements (see Theorem 3.3 page 53 in [1]). Two classes in this hierarchy are particularly interesting.,theclassofsimple functions,,theelementary functions. For,theequivalenceofprogramsisdecidable while for all the equivalence is undecidable. is claimed to contain all real problems since a program for a not elementary function say must, for any,usemore than steps on infinitely many inputs. For this reason the elemen- (b)

5 find a definite TM for the Euclidean algorithm in particular the elementary functions in general. In contrast, for the simple functions the situation is straightforward. Theorem 3 The class of simple function is computable by definite Turing machines Figure 3. A not definite Turing machine which finds the gcd of two number in unary notation using the Euclid s algorithm. Proof: We use the characterization in Theorem 2. The less trivial case in the list of basic simple function are those which involves division:. Butalready in Figure 4 we show a definite TM for division by 3, which can obviously be extended for any fixed.thetmfor is a submachine (in the graph theoretical sense) of the TM for a definite transition system does not have non definite subsystem. The operations of composition combinations are nothing but the serial parallel operations, respectively, in [20], where is proved that they preserve definiteness. 6. Finite Memory Machines Figure 4. A definite Turing machine which divides a number in unary notation by 3. tary functions are also called practical computable functions In order to show that definite TM computes the class of simple functions, we need the following characterization of the class (see [1]). Theorem 2 The class of simple function is the smallest class which contains the basic simple functions We have shown how to get a sequential machine of the Mealy type from a Turing machine. For Mealy machines there is another notion of finite memory which are also related to the output not only to the input as in the definite case. In a definite automaton the present state is completely determined by the last inputs. Definition 7 A Mealy machine is finite-memory machine of order is the least integer, so that the present state of can be determined uniquely from the knowledge of the last inputs the corresponding outputs. Definition 8 A Turingmachineis finite-memory only, its associated Mealy machine finite-memory In contrast to the definite machines, which does not recognize all regular language, finite-memory machines are computationally capable of computing all regular languages. for each constant for each constant which is closed under composition combination. The Euclidean algorithm shows that the is an elementary function our Figure 3 shows a non definite TM for it. It remains to be shown that it is impossible to Theorem 4 For any regular language there exists a finite-memory machine which recognizes. Proof: Let be the finite state automaton recognizing.definethemachine, where. is obviously finite-memory of order 1 the language represented by the subset of output letters is equal to. Corollary 1 Turing machines finite-memory Turing machines are computationally equivalent

6 7. Final Remarks Motivated by our research on the relationships between classical neural computation ([4, 3] the results by Maass et.al.[14, 15] limiting the capabilities of analog neural computation, we proposed a novel class of Turing machines by restricting the type finite control of the machine. In this work we give the first steps towards the characterization of the class of functions computable by definite Turing machines. We also have proved the equivalence between finite-memory Turing machines classical Turing machines. We are extending the results to the Einlemberg s X- machines[6], showing that definite X-machines compute the elementary functions[5]. References [1] W. Brainerd L. Lweber. Theory of Computation. Jonh Wiley & Sons, [2] R. C. Carrasco, M. L. Forcada, M. A. V.-M. noz, R. P.. Neco. Stable encoding of finite-state machines in discretetime recurrent neural nets with sigmoid units. Neural Computation, 12(9): ,2000. [3] W. R. de Oliveira, M. C. P. de Souto, T. B. Ludermir. Agent-enviroment approach to the simulation of turing machines by neural networks. In I. INNS, editor, Proceedings of IJCNN 01, [4] W. R. de Oliveira T. B. Ludermir. Turing machine simulation by logical neural networks. In I. Alekser J. Taylor, editors, Articial Neural Networks II, pages North-Holl, [5] W. R. de Oliveira, T. B. Ludermir, M. de Souto. On definite machines. Work in Progress. [6] S. Eilenberg. Automata, Languages, Machines, Volume A. Pure Applied Mathematics. New York: Academic Press, [7] S. Franklin M. Garzon. Neural computability. Progress in Neural Networks, 1:128,144,1990.Ablex,Norwood. [8] C. Frougny. Simple deterministic NTS languages. Information Processing Letters,12(4): ,1981. [9] M. W. Goudreau, C. L. Giles, S. T. Chakradhar, D. Chen. First-order vs. second-order single layer recurrent neural networks. IEEE Transactions on Neural Networks, 5(3): , [10] R. Hartley H. Szu. A comparison of the computational power of neural network models. In Proc. IEEE Conf. Neural Networks III,pages17,22,1987. [11] J. Hopcroft J. Ullman. Introduction to Automata Theory, Languages Computation. Addison-Wesley,1979. [12] J. E. Hopcroft J. D. Ullman. Introduction to Automata Theory, Languages, Computation. Addison-Wesley Publishing Company, Inc., Reading, MA, [13] Z. Kohavi. Switching Finite automata theory. McGraw- Hill Book Company, USA, 2nd edition, [14] W. Maass P. Orponen. On the efect of analog noise on discrete-time analog computations. Neural Computation, 10(5): , [15] W. Maass E. D. Sontag. Analog neural nets with Gaussian or other common noise distributions cannot recognize arbitrary regular languages. Neural Computation, 11: , [16] M. Perles, M. O. Rabin, E. Shamir. The theory of definite automata. In IEEE Trans. Electronic Computers [], pages EC-12. [17] J. B. Pollack. On Connectionist Models of Natural Language Processing. PhD thesis, Computer Science Department, University of Illinois, Urbana, Available as TR MCCS , Computing Research Laboratory, New Mexico State University, Las Cruces, NM. [18] Y. Rogozhin. Small universal Turing machines. Theoretical Computer Science, 168: ,1996. [19] H. T. Siegelmann E. D. Sontag. On the computational power of neural nets. Journal of Computer System Sciences, 50(1): ,1995. [20] M. Steinby. On definite automata related systems. Ann. Acad. Sci. Fenn., Series A I. [21] G. Sun, H. Chen, Y. Lee, C. Giles. Turing equivalence of neural networks with second order connection weights. In Proc. Int. Joint Conf. Neural Networks, [22] A. M. Turing. On computable numbers with an application to the Entscheidungsproblem. Proc. London Math. Soc. (3), 42: , A correction, 43:

Computation Histories

Computation Histories 208 Computation Histories The computation history for a Turing machine on an input is simply the sequence of configurations that the machine goes through as it processes the input. An accepting computation

More information

Non-emptiness Testing for TMs

Non-emptiness Testing for TMs 180 5. Reducibility The proof of unsolvability of the halting problem is an example of a reduction: a way of converting problem A to problem B in such a way that a solution to problem B can be used to

More information

Nine switch-affine neurons suffice for Turing universality

Nine switch-affine neurons suffice for Turing universality Neural Networks PERGAMON Neural Networks 12 (1999) 593 600 Contributed article Nine switch-affine neurons suffice for Turing universality H.T. Siegelmann a, *, M. Margenstern b a Faculty of Industrial

More information

Opleiding Informatica

Opleiding Informatica Opleiding Informatica Tape-quantifying Turing machines in the arithmetical hierarchy Simon Heijungs Supervisors: H.J. Hoogeboom & R. van Vliet BACHELOR THESIS Leiden Institute of Advanced Computer Science

More information

Turing machines Finite automaton no storage Pushdown automaton storage is a stack What if we give the automaton a more flexible storage?

Turing machines Finite automaton no storage Pushdown automaton storage is a stack What if we give the automaton a more flexible storage? Turing machines Finite automaton no storage Pushdown automaton storage is a stack What if we give the automaton a more flexible storage? What is the most powerful of automata? In this lecture we will introduce

More information

Introduction to Turing Machines

Introduction to Turing Machines Introduction to Turing Machines Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 12 November 2015 Outline 1 Turing Machines 2 Formal definitions 3 Computability

More information

11 Three problems on the decidability and complexity of stability

11 Three problems on the decidability and complexity of stability 11 Three problems on the decidability and complexity of stability Vincent D. Blondel* and John N. Tsitsiklis** *Institute of Mathematics University of Liege Sart Tilman B37 4000 Liege BELGIUM vblondel~ulg.ac.be

More information

On Rice s theorem. Hans Hüttel. October 2001

On Rice s theorem. Hans Hüttel. October 2001 On Rice s theorem Hans Hüttel October 2001 We have seen that there exist languages that are Turing-acceptable but not Turing-decidable. An important example of such a language was the language of the Halting

More information

1 Two-Way Deterministic Finite Automata

1 Two-Way Deterministic Finite Automata 1 Two-Way Deterministic Finite Automata 1.1 Introduction Hing Leung 1 In 1943, McCulloch and Pitts [4] published a pioneering work on a model for studying the behavior of the nervous systems. Following

More information

Turing Machines, diagonalization, the halting problem, reducibility

Turing Machines, diagonalization, the halting problem, reducibility Notes on Computer Theory Last updated: September, 015 Turing Machines, diagonalization, the halting problem, reducibility 1 Turing Machines A Turing machine is a state machine, similar to the ones we have

More information

Introduction to Turing Machines. Reading: Chapters 8 & 9

Introduction to Turing Machines. Reading: Chapters 8 & 9 Introduction to Turing Machines Reading: Chapters 8 & 9 1 Turing Machines (TM) Generalize the class of CFLs: Recursively Enumerable Languages Recursive Languages Context-Free Languages Regular Languages

More information

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK COMS11700 Undecidability Department of Computer Science, University of Bristol Bristol, UK 4 April 2014 COMS11700: Undecidability Slide 1/29 Decidability We are particularly interested in Turing machines

More information

An algebraic characterization of unary two-way transducers

An algebraic characterization of unary two-way transducers An algebraic characterization of unary two-way transducers (Extended Abstract) Christian Choffrut 1 and Bruno Guillon 1 LIAFA, CNRS and Université Paris 7 Denis Diderot, France. Abstract. Two-way transducers

More information

Part I: Definitions and Properties

Part I: Definitions and Properties Turing Machines Part I: Definitions and Properties Finite State Automata Deterministic Automata (DFSA) M = {Q, Σ, δ, q 0, F} -- Σ = Symbols -- Q = States -- q 0 = Initial State -- F = Accepting States

More information

CSE355 SUMMER 2018 LECTURES TURING MACHINES AND (UN)DECIDABILITY

CSE355 SUMMER 2018 LECTURES TURING MACHINES AND (UN)DECIDABILITY CSE355 SUMMER 2018 LECTURES TURING MACHINES AND (UN)DECIDABILITY RYAN DOUGHERTY If we want to talk about a program running on a real computer, consider the following: when a program reads an instruction,

More information

Fundamentals of Computer Science

Fundamentals of Computer Science Fundamentals of Computer Science Chapter 8: Turing machines Henrik Björklund Umeå University February 17, 2014 The power of automata Finite automata have only finite memory. They recognize the regular

More information

Three Analog Neurons Are Turing Universal

Three Analog Neurons Are Turing Universal Three Analog Neurons Are Turing Universal Jiří Šíma Institute of Computer Science, Czech Academy of Sciences, P. O. Box 5, 807 Prague 8, Czech Republic, sima@cs.cas.cz Abstract. The languages accepted

More information

Complexity: Some examples

Complexity: Some examples Algorithms and Architectures III: Distributed Systems H-P Schwefel, Jens M. Pedersen Mm6 Distributed storage and access (jmp) Mm7 Introduction to security aspects (hps) Mm8 Parallel complexity (hps) Mm9

More information

Computability and Complexity

Computability and Complexity Computability and Complexity Lecture 5 Reductions Undecidable problems from language theory Linear bounded automata given by Jiri Srba Lecture 5 Computability and Complexity 1/14 Reduction Informal Definition

More information

Quantum Computing Lecture 8. Quantum Automata and Complexity

Quantum Computing Lecture 8. Quantum Automata and Complexity Quantum Computing Lecture 8 Quantum Automata and Complexity Maris Ozols Computational models and complexity Shor s algorithm solves, in polynomial time, a problem for which no classical polynomial time

More information

c 1998 Society for Industrial and Applied Mathematics Vol. 27, No. 4, pp , August

c 1998 Society for Industrial and Applied Mathematics Vol. 27, No. 4, pp , August SIAM J COMPUT c 1998 Society for Industrial and Applied Mathematics Vol 27, No 4, pp 173 182, August 1998 8 SEPARATING EXPONENTIALLY AMBIGUOUS FINITE AUTOMATA FROM POLYNOMIALLY AMBIGUOUS FINITE AUTOMATA

More information

The purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational

The purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational 1 The purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational model. We'll remind you what a Turing machine is --- you

More information

On Stateless Multicounter Machines

On Stateless Multicounter Machines On Stateless Multicounter Machines Ömer Eğecioğlu and Oscar H. Ibarra Department of Computer Science University of California, Santa Barbara, CA 93106, USA Email: {omer, ibarra}@cs.ucsb.edu Abstract. We

More information

Let us first give some intuitive idea about a state of a system and state transitions before describing finite automata.

Let us first give some intuitive idea about a state of a system and state transitions before describing finite automata. Finite Automata Automata (singular: automation) are a particularly simple, but useful, model of computation. They were initially proposed as a simple model for the behavior of neurons. The concept of a

More information

Theory of Computer Science

Theory of Computer Science Theory of Computer Science D1. Turing-Computability Malte Helmert University of Basel April 18, 2016 Overview: Course contents of this course: logic How can knowledge be represented? How can reasoning

More information

(a) Definition of TMs. First Problem of URMs

(a) Definition of TMs. First Problem of URMs Sec. 4: Turing Machines First Problem of URMs (a) Definition of the Turing Machine. (b) URM computable functions are Turing computable. (c) Undecidability of the Turing Halting Problem That incrementing

More information

The Power of Extra Analog Neuron. Institute of Computer Science Academy of Sciences of the Czech Republic

The Power of Extra Analog Neuron. Institute of Computer Science Academy of Sciences of the Czech Republic The Power of Extra Analog Neuron Jiří Šíma Institute of Computer Science Academy of Sciences of the Czech Republic (Artificial) Neural Networks (NNs) 1. mathematical models of biological neural networks

More information

Confusion of Memory. Lawrence S. Moss. Department of Mathematics Indiana University Bloomington, IN USA February 14, 2008

Confusion of Memory. Lawrence S. Moss. Department of Mathematics Indiana University Bloomington, IN USA February 14, 2008 Confusion of Memory Lawrence S. Moss Department of Mathematics Indiana University Bloomington, IN 47405 USA February 14, 2008 Abstract It is a truism that for a machine to have a useful access to memory

More information

Q = Set of states, IE661: Scheduling Theory (Fall 2003) Primer to Complexity Theory Satyaki Ghosh Dastidar

Q = Set of states, IE661: Scheduling Theory (Fall 2003) Primer to Complexity Theory Satyaki Ghosh Dastidar IE661: Scheduling Theory (Fall 2003) Primer to Complexity Theory Satyaki Ghosh Dastidar Turing Machine A Turing machine is an abstract representation of a computing device. It consists of a read/write

More information

Parallel Turing Machines on a Two-Dimensional Tape

Parallel Turing Machines on a Two-Dimensional Tape Czech Pattern ecognition Workshop 000, Tomáš Svoboda (Ed.) Peršlák, Czech epublic, February 4, 000 Czech Pattern ecognition Society Parallel Turing Machines on a Two-Dimensional Tape Daniel Průša František

More information

EECS 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization

EECS 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization EECS 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Discrete Systems Lecture: Automata, State machines, Circuits Stavros Tripakis University of California, Berkeley Stavros

More information

arxiv: v1 [cs.cc] 3 Feb 2019

arxiv: v1 [cs.cc] 3 Feb 2019 Some Remarks on Real-Time Turing Machines (Preliminary Report) arxiv:1902.00975v1 [cs.cc] 3 Feb 2019 Holger Petersen Reinsburgstr. 75 70197 Stuttgart February 5, 2019 Abstract The power of real-time Turing

More information

Theory of Computation

Theory of Computation Thomas Zeugmann Hokkaido University Laboratory for Algorithmics http://www-alg.ist.hokudai.ac.jp/ thomas/toc/ Lecture 3: Finite State Automata Motivation In the previous lecture we learned how to formalize

More information

A Lower Bound for Boolean Satisfiability on Turing Machines

A Lower Bound for Boolean Satisfiability on Turing Machines A Lower Bound for Boolean Satisfiability on Turing Machines arxiv:1406.5970v1 [cs.cc] 23 Jun 2014 Samuel C. Hsieh Computer Science Department, Ball State University March 16, 2018 Abstract We establish

More information

CS 208: Automata Theory and Logic

CS 208: Automata Theory and Logic CS 208: Automata Theory and Logic b a a start A x(la(x) y.(x < y) L b (y)) B b Department of Computer Science and Engineering, Indian Institute of Technology Bombay. 1 of 19 Logistics Course Web-page:

More information

X-machines - a computational model framework.

X-machines - a computational model framework. Chapter 2. X-machines - a computational model framework. This chapter has three aims: To examine the main existing computational models and assess their computational power. To present the X-machines as

More information

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

Harvard CS 121 and CSCI E-121 Lecture 14: Turing Machines and the Church Turing Thesis Harvard CS 121 and CSCI E-121 Lecture 14: Turing Machines and the Church Turing Thesis Harry Lewis October 22, 2013 Reading: Sipser, 3.2, 3.3. The Basic Turing Machine The Basic Turing Machine a a b a

More information

CS154, Lecture 17: conp, Oracles again, Space Complexity

CS154, Lecture 17: conp, Oracles again, Space Complexity CS154, Lecture 17: conp, Oracles again, Space Complexity Definition: conp = { L L NP } What does a conp computation look like? In NP algorithms, we can use a guess instruction in pseudocode: Guess string

More information

5 3 Watson-Crick Automata with Several Runs

5 3 Watson-Crick Automata with Several Runs 5 3 Watson-Crick Automata with Several Runs Peter Leupold Department of Mathematics, Faculty of Science Kyoto Sangyo University, Japan Joint work with Benedek Nagy (Debrecen) Presentation at NCMA 2009

More information

Peter Wood. Department of Computer Science and Information Systems Birkbeck, University of London Automata and Formal Languages

Peter Wood. Department of Computer Science and Information Systems Birkbeck, University of London Automata and Formal Languages and and Department of Computer Science and Information Systems Birkbeck, University of London ptw@dcs.bbk.ac.uk Outline and Doing and analysing problems/languages computability/solvability/decidability

More information

Advanced Undecidability Proofs

Advanced Undecidability Proofs 17 Advanced Undecidability Proofs In this chapter, we will discuss Rice s Theorem in Section 17.1, and the computational history method in Section 17.3. As discussed in Chapter 16, these are two additional

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 13 CHAPTER 4 TURING MACHINES 1. The definition of Turing machine 2. Computing with Turing machines 3. Extensions of Turing

More information

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

Automata Theory (2A) Young Won Lim 5/31/18 Automata Theory (2A) Copyright (c) 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later

More information

Chapter 7 Turing Machines

Chapter 7 Turing Machines Chapter 7 Turing Machines Copyright 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 A General Model of Computation Both finite automata and pushdown automata are

More information

conp, Oracles, Space Complexity

conp, Oracles, Space Complexity conp, Oracles, Space Complexity 1 What s next? A few possibilities CS161 Design and Analysis of Algorithms CS254 Complexity Theory (next year) CS354 Topics in Circuit Complexity For your favorite course

More information

An Optimal Lower Bound for Nonregular Languages

An Optimal Lower Bound for Nonregular Languages An Optimal Lower Bound for Nonregular Languages Alberto Bertoni Carlo Mereghetti Giovanni Pighizzini Dipartimento di Scienze dell Informazione Università degli Studi di Milano via Comelico, 39 2035 Milano

More information

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

An example of a decidable language that is not a CFL Implementation-level description of a TM State diagram of TM Turing Machines Review An example of a decidable language that is not a CFL Implementation-level description of a TM State diagram of TM Varieties of TMs Multi-Tape TMs Nondeterministic TMs String Enumerators

More information

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

An example of a decidable language that is not a CFL Implementation-level description of a TM State diagram of TM Turing Machines Review An example of a decidable language that is not a CFL Implementation-level description of a TM State diagram of TM Varieties of TMs Multi-Tape TMs Nondeterministic TMs String Enumerators

More information

COMPARATIVE ANALYSIS ON TURING MACHINE AND QUANTUM TURING MACHINE

COMPARATIVE ANALYSIS ON TURING MACHINE AND QUANTUM TURING MACHINE Volume 3, No. 5, May 2012 Journal of Global Research in Computer Science REVIEW ARTICLE Available Online at www.jgrcs.info COMPARATIVE ANALYSIS ON TURING MACHINE AND QUANTUM TURING MACHINE Tirtharaj Dash

More information

Bias and No Free Lunch in Formal Measures of Intelligence

Bias and No Free Lunch in Formal Measures of Intelligence Journal of Artificial General Intelligence 1 (2009) 54-61 Submitted 2009-03-14; Revised 2009-09-25 Bias and No Free Lunch in Formal Measures of Intelligence Bill Hibbard University of Wisconsin Madison

More information

Advanced topic: Space complexity

Advanced topic: Space complexity Advanced topic: Space complexity CSCI 3130 Formal Languages and Automata Theory Siu On CHAN Chinese University of Hong Kong Fall 2016 1/28 Review: time complexity We have looked at how long it takes to

More information

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, Class 8 Nancy Lynch

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, Class 8 Nancy Lynch 6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, 2010 Class 8 Nancy Lynch Today More undecidable problems: About Turing machines: Emptiness, etc. About

More information

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2018, face-to-face day section Prof. Marvin K. Nakayama

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2018, face-to-face day section Prof. Marvin K. Nakayama Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2018, face-to-face day section Prof. Marvin K. Nakayama Print family (or last) name: Print given (or first) name: I have read and understand

More information

Turing machines and linear bounded automata

Turing machines and linear bounded automata and linear bounded automata Informatics 2A: Lecture 29 John Longley School of Informatics University of Edinburgh jrl@inf.ed.ac.uk 25 November, 2011 1 / 13 1 The Chomsky hierarchy: summary 2 3 4 2 / 13

More information

Definition: conp = { L L NP } What does a conp computation look like?

Definition: conp = { L L NP } What does a conp computation look like? Space Complexity 28 Definition: conp = { L L NP } What does a conp computation look like? In NP algorithms, we can use a guess instruction in pseudocode: Guess string y of x k length and the machine accepts

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION FORMAL LANGUAGES, AUTOMATA AND COMPUTATION DECIDABILITY ( LECTURE 15) SLIDES FOR 15-453 SPRING 2011 1 / 34 TURING MACHINES-SYNOPSIS The most general model of computation Computations of a TM are described

More information

Boolean circuits. Lecture Definitions

Boolean circuits. Lecture Definitions Lecture 20 Boolean circuits In this lecture we will discuss the Boolean circuit model of computation and its connection to the Turing machine model. Although the Boolean circuit model is fundamentally

More information

7.1 The Origin of Computer Science

7.1 The Origin of Computer Science CS125 Lecture 7 Fall 2016 7.1 The Origin of Computer Science Alan Mathison Turing (1912 1954) turing.jpg 170!201 pixels On Computable Numbers, with an Application to the Entscheidungsproblem 1936 1936:

More information

Computer Sciences Department

Computer Sciences Department Computer Sciences Department 1 Reference Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Computer Sciences Department 3 ADVANCED TOPICS IN C O M P U T A B I L I T Y

More information

Regular Languages and Finite Automata

Regular Languages and Finite Automata Regular Languages and Finite Automata 1 Introduction Hing Leung Department of Computer Science New Mexico State University In 1943, McCulloch and Pitts [4] published a pioneering work on a model for studying

More information

Computability Theory. CS215, Lecture 6,

Computability Theory. CS215, Lecture 6, Computability Theory CS215, Lecture 6, 2000 1 The Birth of Turing Machines At the end of the 19th century, Gottlob Frege conjectured that mathematics could be built from fundamental logic In 1900 David

More information

Great Theoretical Ideas in Computer Science. Lecture 7: Introduction to Computational Complexity

Great Theoretical Ideas in Computer Science. Lecture 7: Introduction to Computational Complexity 15-251 Great Theoretical Ideas in Computer Science Lecture 7: Introduction to Computational Complexity September 20th, 2016 What have we done so far? What will we do next? What have we done so far? > Introduction

More information

On the non-existence of maximal inference degrees for language identification

On the non-existence of maximal inference degrees for language identification On the non-existence of maximal inference degrees for language identification Sanjay Jain Institute of Systems Science National University of Singapore Singapore 0511 Republic of Singapore sanjay@iss.nus.sg

More information

Chapter 2: Finite Automata

Chapter 2: Finite Automata Chapter 2: Finite Automata 2.1 States, State Diagrams, and Transitions Finite automaton is the simplest acceptor or recognizer for language specification. It is also the simplest model of a computer. A

More information

jflap demo Regular expressions Pumping lemma Turing Machines Sections 12.4 and 12.5 in the text

jflap demo Regular expressions Pumping lemma Turing Machines Sections 12.4 and 12.5 in the text On the menu today jflap demo Regular expressions Pumping lemma Turing Machines Sections 12.4 and 12.5 in the text 1 jflap Demo jflap: Useful tool for creating and testing abstract machines Finite automata,

More information

Lecture 12: Mapping Reductions

Lecture 12: Mapping Reductions Lecture 12: Mapping Reductions October 18, 2016 CS 1010 Theory of Computation Topics Covered 1. The Language EQ T M 2. Mapping Reducibility 3. The Post Correspondence Problem 1 The Language EQ T M The

More information

Time-bounded computations

Time-bounded computations Lecture 18 Time-bounded computations We now begin the final part of the course, which is on complexity theory. We ll have time to only scratch the surface complexity theory is a rich subject, and many

More information

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta CSE 2001: Introduction to Theory of Computation Fall 2013 Suprakash Datta datta@cse.yorku.ca Office: CSEB 3043 Phone: 416-736-2100 ext 77875 Course page: http://www.cse.yorku.ca/course/2001 11/7/2013 CSE

More information

Final exam study sheet for CS3719 Turing machines and decidability.

Final exam study sheet for CS3719 Turing machines and decidability. Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,

More information

The halting problem is decidable on a set of asymptotic probability one

The halting problem is decidable on a set of asymptotic probability one The halting problem is decidable on a set of asymptotic probability one Joel David Hamkins The City University of New York http://jdh.hamkins.org Alexei Miasnikov The City University of New York http://www.cs.gc.cuny.edu/

More information

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

Recap DFA,NFA, DTM. Slides by Prof. Debasis Mitra, FIT. Recap DFA,NFA, DTM Slides by Prof. Debasis Mitra, FIT. 1 Formal Language Finite set of alphabets Σ: e.g., {0, 1}, {a, b, c}, { {, } } Language L is a subset of strings on Σ, e.g., {00, 110, 01} a finite

More information

Computability and Complexity

Computability and Complexity Computability and Complexity Decidability, Undecidability and Reducibility; Codes, Algorithms and Languages CAS 705 Ryszard Janicki Department of Computing and Software McMaster University Hamilton, Ontario,

More information

Chapter 5. Finite Automata

Chapter 5. Finite Automata Chapter 5 Finite Automata 5.1 Finite State Automata Capable of recognizing numerous symbol patterns, the class of regular languages Suitable for pattern-recognition type applications, such as the lexical

More information

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2016, face-to-face day section Prof. Marvin K. Nakayama

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2016, face-to-face day section Prof. Marvin K. Nakayama Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2016, face-to-face day section Prof. Marvin K. Nakayama Print family (or last) name: Print given (or first) name: I have read and understand

More information

ECS 120 Lesson 23 The Class P

ECS 120 Lesson 23 The Class P ECS 120 Lesson 23 The Class P Oliver Kreylos Wednesday, May 23th, 2001 We saw last time how to analyze the time complexity of Turing Machines, and how to classify languages into complexity classes. We

More information

CPSC 421: Tutorial #1

CPSC 421: Tutorial #1 CPSC 421: Tutorial #1 October 14, 2016 Set Theory. 1. Let A be an arbitrary set, and let B = {x A : x / x}. That is, B contains all sets in A that do not contain themselves: For all y, ( ) y B if and only

More information

How to Pop a Deep PDA Matters

How to Pop a Deep PDA Matters How to Pop a Deep PDA Matters Peter Leupold Department of Mathematics, Faculty of Science Kyoto Sangyo University Kyoto 603-8555, Japan email:leupold@cc.kyoto-su.ac.jp Abstract Deep PDA are push-down automata

More information

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

Decision Problems with TM s. Lecture 31: Halting Problem. Universe of discourse. Semi-decidable. Look at following sets: CSCI 81 Spring, 2012 Decision Problems with TM s Look at following sets: Lecture 31: Halting Problem CSCI 81 Spring, 2012 Kim Bruce A TM = { M,w M is a TM and w L(M)} H TM = { M,w M is a TM which halts on input w} TOTAL TM

More information

Verifying whether One-Tape Turing Machines Run in Linear Time

Verifying whether One-Tape Turing Machines Run in Linear Time Electronic Colloquium on Computational Complexity, Report No. 36 (2015) Verifying whether One-Tape Turing Machines Run in Linear Time David Gajser IMFM, Jadranska 19, 1000 Ljubljana, Slovenija david.gajser@fmf.uni-lj.si

More information

Positive Neural Networks in Discrete Time Implement Monotone-Regular Behaviors

Positive Neural Networks in Discrete Time Implement Monotone-Regular Behaviors Positive Neural Networks in Discrete Time Implement Monotone-Regular Behaviors Tom J. Ameloot and Jan Van den Bussche Hasselt University & transnational University of Limburg arxiv:1502.06094v2 [cs.ne]

More information

Finite Automata. Mahesh Viswanathan

Finite Automata. Mahesh Viswanathan Finite Automata Mahesh Viswanathan In this lecture, we will consider different models of finite state machines and study their relative power. These notes assume that the reader is familiar with DFAs,

More information

Turing Machines. Wolfgang Schreiner

Turing Machines. Wolfgang Schreiner Turing Machines Wolfgang Schreiner Wolfgang.Schreiner@risc.jku.at Research Institute for Symbolic Computation (RISC) Johannes Kepler University, Linz, Austria http://www.risc.jku.at Wolfgang Schreiner

More information

Symposium on Theoretical Aspects of Computer Science 2008 (Bordeaux), pp

Symposium on Theoretical Aspects of Computer Science 2008 (Bordeaux), pp Symposium on Theoretical Aspects of Computer Science 2008 (Bordeaux), pp. 373-384 www.stacs-conf.org COMPLEXITY OF SOLUTIONS OF EQUATIONS OVER SETS OF NATURAL NUMBERS ARTUR JEŻ 1 AND ALEXANDER OKHOTIN

More information

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

Turing Machines A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, q0, qaccept, qreject), where Q, Σ, Γ are all finite The Church-Turing Thesis CS60001: Foundations of Computing Science Professor, Dept. of Computer Sc. & Engg., Turing Machines A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, q 0, q accept, q reject ), where

More information

What You Must Remember When Processing Data Words

What You Must Remember When Processing Data Words What You Must Remember When Processing Data Words Michael Benedikt, Clemens Ley, and Gabriele Puppis Oxford University Computing Laboratory, Park Rd, Oxford OX13QD UK Abstract. We provide a Myhill-Nerode-like

More information

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos armandobcm@yahoo.com February 5, 2014 Abstract This note is for personal use. It

More information

Computational Tasks and Models

Computational Tasks and Models 1 Computational Tasks and Models Overview: We assume that the reader is familiar with computing devices but may associate the notion of computation with specific incarnations of it. Our first goal is to

More information

198:538 Lecture Given on February 23rd, 1998

198:538 Lecture Given on February 23rd, 1998 198:538 Lecture Given on February 23rd, 1998 Lecturer: Professor Eric Allender Scribe: Sunny Daniels November 25, 1998 1 A Result From theorem 5 of the lecture on 16th February 1998, together with the

More information

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

Turing Machines. 22c:135 Theory of Computation. Tape of a Turing Machine (TM) TM versus FA, PDA Turing Machines A Turing machine is similar to a finite automaton with supply of unlimited memory. A Turing machine can do everything that any computing device can do. There exist problems that even a

More information

A Lower Bound of 2 n Conditional Jumps for Boolean Satisfiability on A Random Access Machine

A Lower Bound of 2 n Conditional Jumps for Boolean Satisfiability on A Random Access Machine A Lower Bound of 2 n Conditional Jumps for Boolean Satisfiability on A Random Access Machine Samuel C. Hsieh Computer Science Department, Ball State University July 3, 2014 Abstract We establish a lower

More information

Theory of Computation Lecture Notes. Problems and Algorithms. Class Information

Theory of Computation Lecture Notes. Problems and Algorithms. Class Information Theory of Computation Lecture Notes Prof. Yuh-Dauh Lyuu Dept. Computer Science & Information Engineering and Department of Finance National Taiwan University Problems and Algorithms c 2004 Prof. Yuh-Dauh

More information

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

Turing Machines. The Language Hierarchy. Context-Free Languages. Regular Languages. Courtesy Costas Busch - RPI 1 Turing Machines a n b n c The anguage Hierarchy n? ww? Context-Free anguages a n b n egular anguages a * a *b* ww Courtesy Costas Busch - PI a n b n c n Turing Machines anguages accepted by Turing Machines

More information

The Turing machine model of computation

The Turing machine model of computation The Turing machine model of computation For most of the remainder of the course we will study the Turing machine model of computation, named after Alan Turing (1912 1954) who proposed the model in 1936.

More information

CSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits

CSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits CSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits Chris Calabro January 13, 2016 1 RAM model There are many possible, roughly equivalent RAM models. Below we will define one in the fashion

More information

Complexity Theory Part I

Complexity Theory Part I Complexity Theory Part I Outline for Today Recap from Last Time Reviewing Verifiers Nondeterministic Turing Machines What does nondeterminism mean in the context of TMs? And just how powerful are NTMs?

More information

3515ICT: Theory of Computation. Regular languages

3515ICT: Theory of Computation. Regular languages 3515ICT: Theory of Computation Regular languages Notation and concepts concerning alphabets, strings and languages, and identification of languages with problems (H, 1.5). Regular expressions (H, 3.1,

More information

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

Turing Machines (TM) Deterministic Turing Machine (DTM) Nondeterministic Turing Machine (NDTM) Turing Machines (TM) Deterministic Turing Machine (DTM) Nondeterministic Turing Machine (NDTM) 1 Deterministic Turing Machine (DTM).. B B 0 1 1 0 0 B B.. Finite Control Two-way, infinite tape, broken into

More information

CSCI 1590 Intro to Computational Complexity

CSCI 1590 Intro to Computational Complexity CSCI 59 Intro to Computational Complexity Overview of the Course John E. Savage Brown University January 2, 29 John E. Savage (Brown University) CSCI 59 Intro to Computational Complexity January 2, 29

More information

Turing Machines Part III

Turing Machines Part III Turing Machines Part III Announcements Problem Set 6 due now. Problem Set 7 out, due Monday, March 4. Play around with Turing machines, their powers, and their limits. Some problems require Wednesday's

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automata and Formal Language Theory Course Notes Part III: Limits of Computation Chapt. III.1: Introduction Anton Setzer http://www.cs.swan.ac.uk/ csetzer/lectures/ automataformallanguage/current/index.html

More information