Skip to main content
Springer Nature - PMC COVID-19 Collection logoLink to Springer Nature - PMC COVID-19 Collection
. 2020 May 26;12086:251–265. doi: 10.1007/978-3-030-48516-0_19

Sublinear-Time Language Recognition and Decision by One-Dimensional Cellular Automata

Augusto Modanese ‡,
Editors: Nataša Jonoska8, Dmytro Savchuk9
PMCID: PMC7247883

Abstract

After an apparent hiatus of roughly 30 years, we revisit a seemingly neglected subject in the theory of (one-dimensional) cellular automata: sublinear-time computation. The model considered is that of ACAs, which are language acceptors whose acceptance condition depends on the states of all cells in the automaton. We prove a time hierarchy theorem for sublinear-time ACA classes, analyze their intersection with the regular languages, and, finally, establish strict inclusions in the parallel computation classes Inline graphic and (uniform) Inline graphic. As an addendum, we introduce and investigate the concept of a decider ACA (DACA) as a candidate for a decider counterpart to (acceptor) ACAs. We show the class of languages decidable in constant time by DACAs equals the locally testable languages, and we also determine Inline graphic as the (tight) time complexity threshold for DACAs up to which no advantage compared to constant time is possible.

Introduction

While there have been several works on linear- and real-time language recognition by cellular automata over the years (see, e.g., [14, 24] for an overview), interest in the sublinear-time case has been scanty at best. We can only speculate this has been due to a certain obstinacy concerning what is now the established acceptance condition for cellular automata, namely that the first cell determines the automaton’s response, despite alternatives being long known [18]. Under this condition, only a constant-size prefix can ever influence the automaton’s decision, which effectively dooms sublinear time to be but a trivial case just as it is for (classical) Turing machines, for example. Nevertheless, at least in the realm of Turing machines, this shortcoming was readily circumvented by adding a random access mechanism to the model, thus sparking rich theories on parallel computation [5, 20], probabilistically checkable proofs [23], and property testing [8, 19].

In the case of cellular automata, the adaptation needed is an alternate (and by all means novel) acceptance condition, covered in Sect. 2. Interestingly, in the resulting model, called ACA, parallelism and local behavior seem to be more marked features, taking priority over cell communication and synchronization algorithms (which are the dominant themes in the linear- and real-time constructions). As mentioned above, the body of theory on sublinear-time ACAs is very small and, to the best of our knowledge, resumes itself to [10, 13, 21]. Ibarra et al. [10] show sublinear-time ACAs are capable of recognizing non-regular languages and also determine a threshold (namely Inline graphic) up to which no advantage compared to constant time is possible. Meanwhile, Kim and McCloskey [13] and Sommerhalder and Westrhenen [21] analyze the constant-time case subject to different acceptance conditions and characterize it based on the locally testable languages, a subclass of the regular languages.

Indeed, as covered in Sect. 3, the defining property of the locally testable languages, that is, that words which locally appear to be the same are equivalent with respect to membership in the language at hand, effectively translates into an inherent property of acceptance by sublinear-time ACAs. In Sect. 4, we prove a time hierarchy theorem for sublinear-time ACAs as well as further relate the language classes they define to the regular languages and the parallel computation classes Inline graphic and (uniform) Inline graphic. In the same section, we also obtain an improvement on a result of [10]. Finally, in Sect. 5 we consider a plausible model of ACAs as language deciders, that is, machines which must not only accept words in the target language but also explicitly reject those which do not. Section 6 concludes.

Definitions

We assume the reader is familiar with the theory of formal languages and cellular automata as well as with computational complexity theory (see, e.g., standard references [1, 6]). This section reviews basic concepts and introduces ACAs.

Inline graphic denotes the set of integers, Inline graphic that of (strictly) positive integers, and Inline graphic. Inline graphic is the set of functions Inline graphic. For a word Inline graphic over an alphabet Inline graphic, w(i) is the i-th symbol of w (starting with the 0-th symbol), and Inline graphic is the number of occurrences of Inline graphic in w. For Inline graphic, Inline graphic, Inline graphic, and Inline graphic are the prefix, suffix and set of infixes of length k of w, respectively, where Inline graphic and Inline graphic for Inline graphic. Inline graphic is the set of words Inline graphic for which Inline graphic. Unless otherwise noted, n is the input length.

(Strictly) Locally Testable Languages

The class Inline graphic of regular languages is defined in terms of (deterministic) automata with finite memory and which read their input in a single direction (i.e., from left to right), one symbol at a time; once all symbols have been read, the machine outputs a single bit representing its decision. In contrast, a scanner is a memoryless machine which reads a span of Inline graphic symbols at a time of an input provided with start and end markers (so it can handle prefixes and suffixes separately); the scanner validates every such substring it reads using the same predicate, and it accepts if and only if all these validations are successful. The languages accepted by these machines are the strictly locally testable languages.1

Definition 1

(strictly locally testable). Let Inline graphic be an alphabet. A language Inline graphic is strictly locally testable if there is some Inline graphic and sets Inline graphic and Inline graphic such that, for every word Inline graphic, Inline graphic if and only if Inline graphic, Inline graphic, and Inline graphic. Inline graphic is the class of strictly locally testable languages.

A more general notion of locality is provided by the locally testable languages. Intuitively, L is locally testable if a word w being in L or not is entirely dependent on a property of the substrings of w of some constant length Inline graphic (that depends only on L, not on w). Thus, if any two words have the same set of substrings of length k, then they are equivalent with respect to being in L:

Definition 2

(locally testable). Let Inline graphic be an alphabet. A language Inline graphic is locally testable if there is some Inline graphic such that, for every Inline graphic with Inline graphic, Inline graphic, and Inline graphic we have that Inline graphic if and only if Inline graphic. Inline graphic denotes the class of locally testable languages.

Inline graphic is the Boolean closure of Inline graphic, that is, its closure under union, intersection, and complement [16]. In particular, Inline graphic (i.e., the inclusion is proper [15]).

Cellular Automata

In this paper, we are strictly interested in one-dimensional cellular automata with the standard neighborhood. For Inline graphic, let Inline graphic denote the extended neighborhood of radius r of the cell Inline graphic.

Definition 3

(cellular automaton). A cellular automaton (CA) C is a triple Inline graphic where Q is a finite, non-empty set of states, Inline graphic is the local transition function, and Inline graphic is the input alphabet. An element of Inline graphic (resp., Inline graphic) is called a local (resp., global) configuration of C. Inline graphic induces the global transition function Inline graphic on the configuration space Inline graphic by Inline graphic, where Inline graphic is a cell and Inline graphic.

Our interest in CAs is as machines which receive an input and process it until a final state is reached. The input is provided from left to right, with one cell for each input symbol. The surrounding cells are inactive and remain so for the entirety of the computation (i.e., the CA is bounded). It is customary for CAs to have a distinguished cell, usually cell zero, which communicates the machine’s output. As mentioned in the introduction, this convention is inadequate for computation in sublinear time; instead, we require the finality condition to depend on the entire (global) configuration (modulo inactive cells):

Definition 4

(CA computation). There is a distinguished state Inline graphic, called the inactive state, which, for every Inline graphic, satisfies Inline graphic if and only if Inline graphic. A cell not in state q is said to be active. For an input Inline graphic, the initial configuration Inline graphic of C for w is Inline graphic for Inline graphic and Inline graphic otherwise. For Inline graphic, a configuration Inline graphic is F-final (for w) if there is a (minimal) Inline graphic such that Inline graphic and c contains only states in Inline graphic. In this context, the sequence Inline graphic is the trace of w, and Inline graphic is the time complexity of C (with respect to F and w).

Because we effectively consider only bounded CAs, the computation of w involves exactly |w| active cells. The surrounding inactive cells are needed only as markers for the start and end of w. As a side effect, the initial configuration Inline graphic for the empty word Inline graphic is stationary (i.e., Inline graphic) regardless of the choice of Inline graphic. Since this is the case only for Inline graphic, we disregard it for the rest of the paper, that is, we assume it is not contained in any of the languages considered.

Finally, we relate final configurations and computation results. We adopt an acceptance condition as in [18, 21] and obtain a so-called ACA; here, the “A” of “ACA” refers to the property that all (active) cells are relevant for acceptance.

Definition 5

(ACA). An ACA is a CA C with a non-empty subset Inline graphic of accept states. For Inline graphic, if C reaches an A-final configuration, we say C accepts w. L(C) denotes the set of words accepted by C. For Inline graphic, we write Inline graphic for the class of languages accepted by an ACA with time complexity bounded by t, that is, for which the time complexity of accepting w is Inline graphic.

Inline graphic is immediate for functions Inline graphic with Inline graphic for every Inline graphic. Because Definition 5 allows multiple accept states, it is possible for each (non-accepting) state z to have a corresponding accept state Inline graphic. In the rest of this paper, when we say a cell becomes (or marks itself as) accepting (without explicitly mentioning its state), we intend to say it changes from such a state z to Inline graphic.

Figure 1 illustrates the computation of an ACA with input alphabet Inline graphic and which accepts Inline graphic with time complexity equal to one (step). The local transition function is such that Inline graphic, a being the (only) accept state, and Inline graphic for Inline graphic and arbitrary Inline graphic and Inline graphic.

Fig. 1.

Fig. 1.

Computation of an ACA which recognizes Inline graphic. The input words are Inline graphic and Inline graphic, respectively.

First Observations

This section recalls results on sublinear-time ACA computation (i.e., Inline graphic where Inline graphic) from [10, 13, 21] and provides some additional remarks. We start with the constant-time case (i.e., Inline graphic). Here, the connection between scanners and ACAs is apparent: If an ACA accepts an input w in time Inline graphic, then w can be verified by a scanner with an input span of Inline graphic symbols and using the predicate induced by the local transition function of the ACA (i.e., the predicate is true if and only if the symbols read correspond to Inline graphic for some cell z in the initial configuration and z is accepting after Inline graphic steps).

Constant-time ACA computation has been studied in [13, 21]. Although in [13] we find a characterization based on a hierarchy over Inline graphic, the acceptance condition there differs slightly from that in Definition 5; in particular, the automata there run for a number of steps which is fixed for each automaton, and the outcome is evaluated (only) in the final step. In contrast, in [21] we find the following, where Inline graphic denotes the closure of Inline graphic under union:

Theorem 6

([21]). Inline graphic.

Thus, Inline graphic is closed under union. In fact, more generally:

Proposition 7

For any Inline graphic, Inline graphic is closed under union.

Inline graphic is closed under intersection [21]. It is an open question whether Inline graphic is also closed under intersection for every Inline graphic.

Moving beyond constant time, in [10] we find the following:

Theorem 8

([10]). For Inline graphic, Inline graphic.

In [10] we find an example for a non-regular language in Inline graphic which is essentially a variation of the language

graphic file with name M129.gif

where Inline graphic is the k-digit binary representation of Inline graphic.

To illustrate the ideas involved, we present an example related to Inline graphic (though it results in a different time complexity) and which is also useful in later discussions in Sect. 5. Let Inline graphic and consider the language

graphic file with name M134.gif

of all identity matrices in line-for-line representations, where the lines are separated by Inline graphic symbols.2

We now describe an ACA for Inline graphic; the construction closely follows the aforementioned one for Inline graphic found in [10] (and the difference in complexity is only due to the different number and size of blocks in the words of Inline graphic and Inline graphic). Denote each group of cells initially containing a (maximally long) Inline graphic substring of Inline graphic by a block. Each block of size b propagates its contents to the neighboring blocks (in separate registers); using a textbook CA technique, this requires exactly 2b steps. Once the strings align, a block initially containing Inline graphic verifies it has received Inline graphic and Inline graphic from its left and right neighbor blocks (if either exists), respectively. The cells of a block and its delimiters become accepting if and only if the comparisons are successful and there is a single Inline graphic between the block and its neighbors. This process takes linear time in b; since any Inline graphic has Inline graphic many blocks, each with Inline graphic cells, it follows that Inline graphic.

To show the above construction is time-optimal, we use the following observation, which is also central in proving several other results in this paper:

Lemma 9

Let C be an ACA, and let w be an input which C accepts in (exactly) Inline graphic steps. Then, for every input Inline graphic such that Inline graphic, Inline graphic, and Inline graphic, C accepts Inline graphic in at most Inline graphic steps.

The lemma is intended to be used with Inline graphic since otherwise Inline graphic. It can be used, for instance, to show that Inline graphic is not in Inline graphic for any Inline graphic (e.g., set Inline graphic and Inline graphic for large Inline graphic). It follows Inline graphic for Inline graphic.

Since the complement of Inline graphic (respective to Inline graphic) is Inline graphic and Inline graphic (e.g., simply set 0 as the ACA’s accepting state), Inline graphic is not closed under complement for any Inline graphic. Also, Inline graphic is a regular language and Inline graphic is not, so we have:

Proposition 10

For Inline graphic, Inline graphic and Inline graphic are incomparable.

If the inclusion of infixes in Lemma 9 is strengthened to an equality, one may apply it in both directions and obtain the following stronger statement:

Lemma 11

Let C be an ACA with time complexity bounded by Inline graphic (i.e., C accepts any input of length n in at most t(n) steps). Then, for any two inputs w and Inline graphic with Inline graphic, Inline graphic, and Inline graphic where Inline graphic, we have that Inline graphic if and only if Inline graphic.

Finally, we can show our ACA for Inline graphic is time-optimal:

Proposition 12

For any Inline graphic, Inline graphic.

Main Results

In this section, we present various results regarding Inline graphic where Inline graphic. First, we obtain a time hierarchy theorem, that is, under plausible conditions, Inline graphic for Inline graphic. Next, we show Inline graphic is (strictly) contained in Inline graphic and also present an improvement to Theorem 8. Finally, we study inclusion relations between Inline graphic and the Inline graphic and (uniform) Inline graphic hierarchies. Save for the material covered so far, all three subsections stand out independently from one another.

Time Hierarchy

For functions Inline graphic, we say f is time-constructible by CAs in t(n) time if there is a CA C which, on input Inline graphic, reaches a configuration containing the value f(n) (binary-encoded) in at most t(n) steps.3 Note that, since CAs can simulate (one-tape) Turing machines in real-time, any function constructible by Turing machines (in the corresponding sense) is also constructible by CAs.

Theorem 13

Let Inline graphic with Inline graphic, Inline graphic, and let f and g be time-constructible (by CAs) in f(n) time. Furthermore, let Inline graphic be such that Inline graphic for some constant Inline graphic and all but finitely many Inline graphic. Then, for every Inline graphic, Inline graphic.

Given Inline graphic, this can be used, for instance, with any time-constructible Inline graphic (resp., Inline graphic, in which case Inline graphic is also possible) and Inline graphic (resp., Inline graphic). The proof idea is to construct a language L similar to Inline graphic (see Sect. 3) in which every Inline graphic has length exponential in the size of its blocks while the distance between any two blocks is Inline graphic. Due to Lemma 9, the latter implies L is not recognizable in o(t(|w|)) time.

Proof

For simplicity, let Inline graphic. Consider Inline graphic where

graphic file with name M220.gif

and note Inline graphic. Because Inline graphic and Inline graphic, given any Inline graphic, setting Inline graphic, Inline graphic, and Inline graphic and applying Lemma 9 for sufficiently large k yields Inline graphic.

By assumption it suffices to show Inline graphic is accepted by an ACA C in at most Inline graphic steps for sufficiently large Inline graphic. The cells of C perform two procedures Inline graphic and Inline graphic simultaneously: Inline graphic is as in the ACA for Inline graphic (see Sect. 3) and ensures that the blocks of w have the same length, that the respective binary encodings are valid, and that the last value is correct (i.e., equal to Inline graphic). In Inline graphic, each block computes f(k) as a function of its block length k. Subsequently, the value f(k) is decreased using a real-time counter (see, e.g., [12] for a construction). Every time the counter is decremented, a signal starts from the block’s leftmost cell and is propagated to the right. This allows every group of cells of the form bs with Inline graphic and Inline graphic to assert there are precisely f(k) symbols in total (i.e., Inline graphic). A cell is accepting if and only if it is accepting both in Inline graphic and Inline graphic. The proof is complete by noticing either procedure takes a maximum of 3f(k) steps (again, for sufficiently large k).    Inline graphic

Intersection with the Regular Languages

In light of Proposition 10, we now consider the intersection Inline graphic for Inline graphic (in the same spirit as a conjecture by Straubing [22]). For this section, we assume the reader is familiar with the theory of syntactic semigroups (see, e.g., [7] for an in-depth treatment).

Given a language L, let Inline graphic denote the syntactic semigroup of L. It is well-known that Inline graphic is finite if and only if L is regular. A semigroup S is a semilattice if Inline graphic and Inline graphic for every Inline graphic. Additionally, S is locally semilattice if eSe is a semilattice for every idempotent Inline graphic, that is, Inline graphic. We use the following characterization of locally testable languages:

Theorem 14

([3, 15]). Inline graphic if and only if Inline graphic is finite and locally semilattice.

In conjunction with Lemma 9, this yields the following, where the strict inclusion is due to Inline graphic (since Inline graphic; see Sect. 3):

Theorem 15

For every Inline graphic, Inline graphic.

Proof

Let Inline graphic be a language over the alphabet Inline graphic and, in addition, let Inline graphic, that is, Inline graphic is finite. By Theorem 14, it suffices to show S is locally semilattice. To that end, let Inline graphic be idempotent, and let Inline graphic.

To show Inline graphic, let Inline graphic and consider the words Inline graphic and Inline graphic. For Inline graphic, let Inline graphic, and let Inline graphic be such that Inline graphic and also Inline graphic. Since e is idempotent, Inline graphic and u belong to the same class in S, that is, Inline graphic if and only if Inline graphic; the same is true for Inline graphic and v. Furthermore, Inline graphic, Inline graphic, and Inline graphic hold. Since Inline graphic, Lemma 11 applies.

The proof of Inline graphic is analogous. Simply consider the words Inline graphic and Inline graphic for sufficiently large Inline graphic and use, again, Lemma 11 and the fact that e is idempotent.    Inline graphic

Using Theorems 8 and 15, we have Inline graphic for Inline graphic. We can improve this bound to Inline graphic, which is a proper subset of Inline graphic:

Theorem 16

For every Inline graphic, Inline graphic.

Proof

We prove every ACA C with time complexity at most Inline graphic actually has O(1) time complexity. Let Q be the state set of C and assume Inline graphic, and let Inline graphic be such that Inline graphic for Inline graphic. Letting Inline graphic and assuming Inline graphic, we then have Inline graphic (Inline graphic). We shall use this to prove that, for any word Inline graphic of length Inline graphic, there is a word Inline graphic of length Inline graphic as well as Inline graphic such that Inline graphic, Inline graphic, and Inline graphic. By Lemma 9, C must have Inline graphic time complexity on w and, since the set of all such Inline graphic is finite, it follows that C has O(1) time complexity.

Now let w be as above and let C accept w in (exactly) Inline graphic steps. We prove the claim by induction on |w|. The base case Inline graphic is trivial, so let Inline graphic and assume the claim holds for every word in L of length strictly less than n. Consider the De Bruijn graph G over the words in Inline graphic where Inline graphic. Then, from the infixes of w of length Inline graphic (in order of appearance in w) one obtains a path P in G by starting at the leftmost infix and visiting every subsequent one, up to the rightmost one. Let Inline graphic be the induced subgraph of G containing exactly the nodes visited by P, and notice P visits every node in Inline graphic at least once. It is not hard to show that, for every such P and Inline graphic, there is a path Inline graphic in Inline graphic with the same starting and ending points as P and that visits every node of Inline graphic at least once while having length at most Inline graphic, where m is the number of nodes in Inline graphic.4 To this Inline graphic corresponds a word Inline graphic of length Inline graphic for which, by construction of Inline graphic and Inline graphic, Inline graphic, Inline graphic, and Inline graphic. Since Inline graphic, using (Inline graphic) we have Inline graphic, and then either Inline graphic and Inline graphic (since otherwise Inline graphic, which contradicts Inline graphic), or we may apply the induction hypothesis; in either case, the claim follows.    Inline graphic

Relation to Parallel Complexity Classes

In this section, we relate Inline graphic to other classes which characterize parallel computation, namely the Inline graphic and (uniform) Inline graphic hierarchies. In this context, Inline graphic is the class of problems decidable by Turing machines in Inline graphic space and polynomial time, whereas Inline graphic is that decidable by Boolean circuits with polynomial size, Inline graphic depth, and gates with unbounded fan-in. Inline graphic (resp., Inline graphic) is the union of all Inline graphic (resp., Inline graphic) for Inline graphic. Here, we consider only uniform versions of Inline graphic; when relevant, we state the respective uniformity condition. Although Inline graphic is known, it is unclear whether any other containment holds between Inline graphic and Inline graphic.

One should not expect to include Inline graphic or Inline graphic in Inline graphic for any Inline graphic. Conceptually speaking, whereas the models of Inline graphic and Inline graphic are capable of random access to their input, ACAs are inherently local (as evinced by Lemmas 9 and 11). Explicit counterexamples may be found among the unary languages: For any fixed Inline graphic and Inline graphic with Inline graphic, trivially Inline graphic, Inline graphic, and Inline graphic hold. Hence, by Lemma 9, if an ACA C accepts Inline graphic in Inline graphic time and |w| is large (e.g., Inline graphic), then C accepts any Inline graphic with Inline graphic. Thus, extending a result from [21]:

Proposition 17

If Inline graphic and Inline graphic is a unary language (i.e., Inline graphic and Inline graphic), then L is either finite or co-finite.

In light of the above, the rest of this section is concerned with the converse type of inclusion (i.e., of Inline graphic in the Inline graphic or Inline graphic hierarchies). For Inline graphic with Inline graphic, we say f is constructible (by a Turing machine) in s(n) space and t(n) time if there is a Turing machine T which, on input Inline graphic, outputs f(n) in binary using at most s(n) space and t(n) time. Also, recall a Turing machine can simulate Inline graphic steps of a CA with m (active) cells in O(m) space and Inline graphic time.

Proposition 18

Let C be an ACA with time complexity bounded by Inline graphic, Inline graphic, and let t be constructible in t(n) space and Inline graphic time. Then, there is a Turing machine which decides L(C) in O(t(n)) space and Inline graphic time.

Thus, for polylogarithmic t (where the strict inclusion is due to Proposition 17):

Corollary 19

For Inline graphic, Inline graphic.

Moving on to the Inline graphic classes, we employ some notions from descriptive complexity theory (see, e.g., [11] for an introduction). Let Inline graphic be the class of languages describable by first-order formulas with numeric relations in Inline graphic (i.e., logarithmic space) and quantifier block iterations bounded by Inline graphic.

Theorem 20

Let Inline graphic with Inline graphic be constructible in logarithmic space (and arbitrary time). For any ACA C whose time complexity is bounded by t, Inline graphic.

Since Inline graphic equals Inline graphic-uniform Inline graphic [11], by Proposition 17 we have:

Corollary 21

For Inline graphic, Inline graphic.

Because Inline graphic (regardless of non-uniformity) [9], this is an improvement on Corollary 19 at least for Inline graphic. Nevertheless, note the usual uniformity condition for Inline graphic is not Inline graphic- but the more restrictive Inline graphic-uniformity [25], and there is good evidence that these two versions of Inline graphic are distinct [4]. Using methods from [2], Corollary 21 may be rephrased for Inline graphic in terms of Inline graphic- or even Inline graphic-uniformity, but the Inline graphic-uniformity case remains unclear.

Decider ACA

So far, we have considered ACAs strictly as language acceptors. As such, their time complexity for inputs not in the target language (i.e., those which are not accepted) is entirely disregarded. In this section, we investigate ACAs as deciders, that is, as machines which must also (explicitly) reject invalid inputs. We analyze the case in which these decider ACAs must reject under the same condition as acceptance (i.e., all cells are simultaneously in a final rejecting state):

Definition 22

(DACA). A decider ACA (DACA) is an ACA C which, in addition to its set A of accept states, has a non-empty subset Inline graphic of reject states that is disjoint from A (i.e., Inline graphic). Every input Inline graphic of C must lead to an A- or an R-final configuration (or both). C accepts w if it leads to an A-final configuration Inline graphic and none of the configurations prior to Inline graphic are R-final. Similarly, C rejects w if it leads to an R-final configuration Inline graphic and none of the configurations prior to Inline graphic are A-final. The time complexity of C (with respect to w) is the number of steps elapsed until C reaches an R- or A-final configuration (for the first time). Inline graphic is the DACA analogue of Inline graphic.

In contrast to Definition 5, here we must be careful so that the accept and reject results do not overlap (i.e., a word cannot be both accepted and rejected). We opt for interpreting the first (chronologically speaking) of the final configurations as the machine’s response. Since the outcome of the computation is then irrelevant regardless of any subsequent configurations (whether they are final or not), this is equivalent to requiring, for instance, that the DACA must halt once a final configuration is reached.

One peculiar consequence of Definition 22 is the relation between languages which can be recognized by acceptor ACAs and DACAs (i.e., the classes Inline graphic and Inline graphic). As it turns out, the situation is quite different from what is usually expected of restricting an acceptor model to a decider one, that is, that deciders yield a (possibly strictly) more restricted class of machines. In fact, one can show Inline graphic holds for Inline graphic since Inline graphic (see discussion after Lemma 9); nevertheless, Inline graphic. For example, the local transition function Inline graphic of the DACA can be chosen as Inline graphic and Inline graphic for Inline graphic, where Inline graphic and Inline graphic are arbitrary states, and a and r are the (only) accept and reject states, respectively; see Fig. 2. Choosing the same Inline graphic for an (acceptor) ACA does not yield an ACA for Inline graphic since then all words of the form Inline graphic are accepted in the second step (as they are not rejected in the first one). We stress this rather counterintuitive phenomenon occurs only in the case of sublinear time (as Inline graphic for Inline graphic).

Fig. 2.

Fig. 2.

Computation of a DACA C which decides Inline graphic. The inputs words are Inline graphic and Inline graphic, respectively.

Similar to (acceptor) ACAs (Lemma 9), sublinear-time DACAs operate locally:

Lemma 23

Let C be a DACA and let Inline graphic be a word which C decides in exactly Inline graphic steps. Then, for every word Inline graphic with Inline graphic, Inline graphic, and Inline graphic, C decides Inline graphic in Inline graphic steps, and Inline graphic holds if and only if Inline graphic.

One might be tempted to relax the requirements above to Inline graphic (as in Lemma 9). We stress, however, the equality Inline graphic is crucial; otherwise, it might be the case that C takes strictly less than Inline graphic steps to decide Inline graphic and, hence, Inline graphic may not be equivalent to Inline graphic.

We note that, in addition to Lemmas 9 and 11, the results from Sect. 4 are extendable to decider ACAs; a more systematic treatment is left as a topic for future work. The remainder of this section is concerned with characterizing Inline graphic computation (as a parallel to Theorem 6) as well as establishing the time threshold for DACAs to decide languages other than those in Inline graphic (as Theorem 16 and the result Inline graphic do for acceptor ACAs).

The Constant-Time Case

First notice that, for any DACA C, swapping the accept and reject states yields a DACA with the same time complexity and which decides the complement of L(C). Hence, in contrast to ACAs (see discussion following Lemma 9):

Proposition 24

For any Inline graphic, Inline graphic is closed under complement.

Using this, we can prove the following, which characterizes constant-time DACA computation as a parallel to Theorem 6:

Theorem 25

Inline graphic.

Hence, we obtain the rather surprising inclusion Inline graphic, that is, for constant time, DACAs constitute a strictly more powerful model than their acceptor counterparts.

Beyond Constant Time

Theorem 16 establishes a logarithmic time threshold for (acceptor) ACAs to recognize languages not in Inline graphic. We now turn to obtaining a similar result for DACAs. As it turns out, in this case the bound is considerably larger:

Theorem 26

For any Inline graphic, Inline graphic.

One immediate implication is that Inline graphic and Inline graphic are incomparable for Inline graphic (since, e.g., Inline graphic; see Sect. 3). The proof idea is that any DACA whose time complexity is not constant admits an infinite sequence of words with increasing time complexity; however, the time complexity of each such word can be traced back to a critical set of cells which prevent the automaton from either accepting or rejecting. By contracting the words while keeping the extended neighborhoods of these cells intact, we obtain a new infinite sequence of words which the DACA necessarily takes Inline graphic time to decide:

Proof

Let C be a DACA with time complexity bounded by t and assume Inline graphic; we show Inline graphic. Since Inline graphic, for every Inline graphic there is a Inline graphic such that C takes strictly more than i steps to decide Inline graphic. In particular, when C receives Inline graphic as input, there are cells Inline graphic and Inline graphic for Inline graphic such that Inline graphic (resp., Inline graphic) is not accepting (resp., rejecting) in step j. Let Inline graphic be the set of all Inline graphic for which Inline graphic, that is, Inline graphic for some j. Consider the restriction Inline graphic of Inline graphic to the symbols having index in Inline graphic, that is, Inline graphic for Inline graphic and Inline graphic, and notice Inline graphic has the same property as Inline graphic (i.e., C takes strictly more than i steps to decide Inline graphic). Since Inline graphic, C has Inline graphic time complexity on the (infinite) set Inline graphic.    Inline graphic

Using Inline graphic (see Sect. 3), we show the bound in Theorem 26 is optimal:

Proposition 27

Inline graphic.

We have Inline graphic (see Sect. 3); the non-trivial part is ensuring the DACA also rejects every Inline graphic in Inline graphic time. In particular, in such strings the Inline graphic delimiters may be an arbitrary number of cells apart or even absent altogether; hence, naively comparing every pair of blocks is not an option. Rather, we check the existence of a particular set of substrings of increasing length and which must present if the input is in Inline graphic. Every O(1) steps the existence of a different substring is verified; the result is that the input length must be at least quadratic in the length of the last substring tested (and the input is timely rejected if it does not contain any one of the required substrings).

Conclusion and Open Problems

Following the definition of ACAs in Sect. 2, Sect. 3 reviewed existing results on Inline graphic for sublinear t (i.e., Inline graphic); we also observed that sublinear-time ACAs operate in an inherently local manner (Lemmas 9 and 11). In Sect. 4, we proved a time hierarchy theorem (Theorem 13), narrowed down the languages in Inline graphic (Theorem 15), improved Theorem 8 to Inline graphic (Theorem 16), and, finally, obtained (strict) inclusions in the parallel computation classes Inline graphic and Inline graphic (Corollaries 19 and 21, respectively). The existence of a hierarchy theorem for ACAs is of interest because obtaining an equivalent result for Inline graphic and Inline graphic is an open problem in computational complexity theory. Also of note is that the proof of Theorem 13 does not rely on diagonalization (the prevalent technique for most computational models) but, rather, on a quintessential property of sublinear-time ACA computation (i.e., locality as in the sense of Lemma 9).

In Sect. 5, we considered a plausible definition of ACAs as language deciders as opposed to simply acceptors, obtaining DACAs. The respective constant-time class is Inline graphic (Theorem 25), which surprisingly is a (strict) superset of Inline graphic. Meanwhile, Inline graphic is the time complexity threshold for deciding languages other than those in Inline graphic (Theorem 26 and Proposition 27).

As for future work, the primary concern is extending the results of Sect. 4 to DACAs. Inline graphic is closed under union and intersection and we saw that Inline graphic is closed under complement for any Inline graphic; a further question would be whether Inline graphic is also closed under union and intersection. Finally, we have Inline graphic, Inline graphic, and that Inline graphic and Inline graphic are incomparable for Inline graphic; it remains open what the relation between the two classes is for Inline graphic.

Acknowledgments

I would like to thank Thomas Worsch for the fruitful discussions and feedback during the development of this work. I would also like to thank the DLT 2020 reviewers for their valuable comments and suggestions and, in particular, one of the reviewers for pointing out a proof idea for Theorem 16, which was listed as an open problem in a preliminary version of the paper.

Footnotes

1

The term “(locally) testable in the strict sense” ((L)TSS) is also common [13, 15, 16].

2

Alternatively, one can also think of Inline graphic as a (natural) problem on graphs presented in the adjacency matrix representation.

3

Just as is the case for Turing machines, there is not a single definition for time-constructibility by CAs (see, e.g., [12] for an alternative). Here, we opt for a plausible variant which has the benefit of simplifying the ensuing line of argument.

4

Number the nodes of Inline graphic from 1 to m according to the order in which they are first visited by P. Then, there is a path in Inline graphic from i to Inline graphic for every Inline graphic, and a shortest such path has length at most m. Piecing these paths together along with a last (shortest) path from m to the ending point of P, we obtain a path of length at most Inline graphic with the purported property.

Some proofs have been omitted due to page constraints. These may be found in the full version of the paper [17].

Contributor Information

Nataša Jonoska, Email: jonoska@mail.usf.edu.

Dmytro Savchuk, Email: savchuk@usf.edu.

Augusto Modanese, Email: modanese@kit.edu.

References

  • 1.Arora S, Barak B. Computational Complexity - A Modern Approach. Cambridge: Cambridge University Press; 2009. [Google Scholar]
  • 2.Mix Barrington DA. Extensions of an idea of McNaughton. Math. Syst. Theory. 1990;23(3):147–164. doi: 10.1007/BF02090772. [DOI] [Google Scholar]
  • 3.Brzozowski JA, Simon I. Characterizations of locally testable events. Discrete Math. 1973;4(3):243–271. doi: 10.1016/S0012-365X(73)80005-6. [DOI] [Google Scholar]
  • 4.Caussinus H, et al. Nondeterministic Inline graphic computation. J. Comput. Syst. Sci. 1998;57(2):200–212. doi: 10.1006/jcss.1998.1588. [DOI] [Google Scholar]
  • 5.Cook SA. A taxonomy of problems with fast parallel algorithms. Inf. Control. 1985;64(1–3):2–21. doi: 10.1016/S0019-9958(85)80041-3. [DOI] [Google Scholar]
  • 6.Delorme M, Mazoyer J, editors. Cellular Automata. A Parallel Model. Netherlands: Springer; 1999. [Google Scholar]
  • 7.Eilenberg S. Automata, Languages, and Machines. New York: Academic Press; 1976. [Google Scholar]
  • 8.Fischer, E.: The art of uninformed decisions. In: Bulletin of the EATCS 75, p. 97 (2001)
  • 9.Furst ML, et al. Parity, circuits, and the polynomial-time hierarchy. Math. Syst. Theory. 1984;17(1):13–27. doi: 10.1007/BF01744431. [DOI] [Google Scholar]
  • 10.Ibarra OH, et al. Fast parallel language recognition by cellular automata. Theor. Comput. Sci. 1985;41:231–246. doi: 10.1016/0304-3975(85)90073-8. [DOI] [Google Scholar]
  • 11.Immerman N. Descriptive Complexity. New York: Springer; 1999. [Google Scholar]
  • 12.Iwamoto C, et al. Constructible functions in cellular automata and their applications to hierarchy results. Theor. Comput. Sci. 2002;270(1–2):797–809. doi: 10.1016/S0304-3975(01)00112-8. [DOI] [Google Scholar]
  • 13.Kim S, McCloskey R, Sam Kim and Robert McCloskey A characterization of constant-time cellular automata computation. Phys. D. 1990;45(1–3):404–419. doi: 10.1016/0167-2789(90)90198-X. [DOI] [Google Scholar]
  • 14.Kutrib M. Cellular automata and language theory. In: Meyers R, editor. Encyclopedia of Complexity and Systems Science. New York: Springer; 2009. pp. 800–823. [Google Scholar]
  • 15.McNaughton R. Algebraic decision procedures for local testability. Math. Syst. Theory. 1974;8(1):60–76. doi: 10.1007/BF01761708. [DOI] [Google Scholar]
  • 16.McNaughton R, Papert S. Counter-Free Automata. Cambridge, MA: The MIT Press; 1971. [Google Scholar]
  • 17.Modanese, A.: Sublinear-Time Language Recognition and Decision by One-Dimensional Cellular Automata. CoRR abs/1909.05828 (2019). arXiv: 1909.05828
  • 18.Rosenfeld A. Picture Languages: Formal Models for Picture Recognition. New York: Academic Press; 1979. [Google Scholar]
  • 19.Rubinfeld R, Shapira A, Ronitt Rubinfeld and Asaf Shapira Sublinear time algorithms. SIAM J. Discrete Math. 2011;25(4):1562–1588. doi: 10.1137/100791075. [DOI] [Google Scholar]
  • 20.Ruzzo WL. On uniform circuit complexity. J. Comput. Syst. Sci. 1981;22(3):365–383. doi: 10.1016/0022-0000(81)90038-6. [DOI] [Google Scholar]
  • 21.Sommerhalder R, van Westrhenen SC. Parallel language recognition in constant time by cellular automata. Acta Inf. 1983;19:397–407. doi: 10.1007/BF00290736. [DOI] [Google Scholar]
  • 22.Straubing H. Finite Automata, Formal Logic, and Circuit Complexity. Boston, MA: Birkhäuser; 1994. [Google Scholar]
  • 23.Sudan M. Probabilistically checkable proofs. Commun. ACM. 2009;52(3):76–84. doi: 10.1145/1467247.1467267. [DOI] [Google Scholar]
  • 24.Terrier V. Language recognition by cellular automata. In: Rozenberg G, Back T, Kok JN, editors. Handbook of Natural Computing. Heidelberg: Springer; 2012. pp. 123–158. [Google Scholar]
  • 25.Vollmer H. Introduction to Circuit Complexity - A Uniform Approach. Heidelberg: Springer; 1999. [Google Scholar]

Articles from Developments in Language Theory are provided here courtesy of Nature Publishing Group

RESOURCES