Skip to main content
Springer Nature - PMC COVID-19 Collection logoLink to Springer Nature - PMC COVID-19 Collection
. 2020 Jan 7;12038:260–271. doi: 10.1007/978-3-030-40608-0_18

Complexity of Automatic Sequences

Hans Zantema 12,13,
Editors: Alberto Leporati8, Carlos Martín-Vide9, Dana Shapira10, Claudio Zandron11
PMCID: PMC7206635

Abstract

Automatic sequences can be defined by DFAs with output (DFAO) in two natural ways. We propose to consider the minimal size of a corresponding DFAO as the complexity measure of the automatic sequence, for both variants. This paper compares these complexity measures and investigates their properties like the relationships with kernel and morphic sequences. There exist automatic sequences for which the one complexity is exponentially greater than the other one, in both directions. For both complexity measures we investigate the effect of taking basic operations on sequences like removing or adding an element in front, and observe that these operations may increase the complexity by at most a quadratic factor.

Introduction

Automatic sequences form an important class of infinite sequences over a finite alphabet; roughly speaking it is a first regular class going beyond ultimately periodic sequences. They have been extensively studied, in particular in the book [1] that serves as the main reference for research in this area. More recent references on the topic include [5, 9].

Automatic sequences depend on a base Inline graphic, with special interest for Inline graphic. Two well-known 2-automatic sequences are the Thue-Morse sequence and the regular paper folding sequence, to be defined in Sect. 2. Automatic sequences admit several equivalent characterizations, many of which are closely related to the following two. In the first one the ith element Inline graphic of the sequence a is the output of a DFAO when taking as input the k-ary notation of i. The second one is similar, but then the reverse of the k-ary notation of i is taken as input. It is natural to consider the minimal size of a corresponding DFAO as the complexity measure of the automatic sequence, for both variants, and we denote them by Inline graphic and Inline graphic. These complexity measures are the main topic of this paper. We show how they relate to other characterizations; in particular, Inline graphic is closely related to the size of the kernel of a, and Inline graphic is closely related to the size of the smallest alphabet needed to describe a as a morphic sequence with respect to a k-uniform morphism. In doing so, we follow constructions as presented in [1] for which we investigate the precise effect on the measures Inline graphic and Inline graphic.

A first result states that there is an exponential gap between both measures: there exist sequences of automatic sequences ab for which Inline graphic is exponential in Inline graphic, and Inline graphic is exponential in Inline graphic.

A next natural question is about the effect of taking basic operations on sequences. For instance, for any sequence a its tail Inline graphic is obtained by removing its first element. We show that Inline graphic and Inline graphic for all k-automatic sequences, and that the last inequality is sharp. Similar results hold for adding an element in front rather than removing. Also other operations are considered, like pointwise combining two sequences and taking particular subsequences. About all of these basic operations f the main observation is that their sizes do not increase more than quadratically: Inline graphic and Inline graphic for all a.

Another interesting question is what happens for periodic sequences. In the current paper we only derive a quadratic upper bound for Inline graphic and a linear upper bound for Inline graphic, so opposite to the effect of Inline graphic. Whether and when these upper bounds are reached is a much more involved question that is investigated in [2]. The research project on this topic is a joined project of Wieb Bosma and the current author; as this analysis for periodic sequences requires arguments of a completely different combinatorial flavor than the automata based arguments in this paper, we decided to present the current paper and [2] separately.

Throughout the paper we make several claims about the exact values of Inline graphic and Inline graphic for particular sequences a. To compute these values we wrote a program to search for a DFAO of minimal size n having the corresponding property for Inline graphic for all Inline graphic for N being typically around Inline graphic. This was done by expressing the requirements as a satisfiability problem and then call a SAT solver. The smallest n for which the formula is satisfiable then is given. As only the requirements for Inline graphic are checked, this only yields a lower bound, but for N large enough it gives the exact value. According to [6], corollary 3.1 (page 59) two states in a DFAO of n states are equivalent are equivalent if and only if for every string of length Inline graphic they produce the same output. This can be improved to Inline graphic. Applying this for the union of the found automaton and the real automaton with bounds derived in this paper, this shows that for Inline graphic the exact value is obtained.

This paper is organized as follows. In Sect. 2 we give the basic definitions and a general lemma for proving lower bounds. In Sect. 3 we investigate the exponential gap between Inline graphic and Inline graphic. In Sect. 4 we define the kernel of an automatic sequence and investigate its relationship with Inline graphic. In Sect. 5 we present how to define automatic sequences as morphic sequences with respect to uniform morphisms, and investigate the relationship with Inline graphic. In Sect. 6 we investigate the effect of basic operations like Inline graphic on Inline graphic and Inline graphic. In Sect. 7 we give the upper bounds of Inline graphic and Inline graphic for periodic sequences. We conclude in Sect. 8.

Basic Definitions

Let Inline graphic and Inline graphic.

The set of infinite sequences Inline graphic over a finite alphabet Inline graphic is denoted by Inline graphic.

A DFA M with output (DFAO) is defined to be a tuple Inline graphic, where

  • Q is the finite set of states,

  • Inline graphic is the finite input alphabet,

  • Inline graphic is the transition function,

  • Inline graphic is the initial state,

  • Inline graphic is the finite output alphabet,

  • Inline graphic is the output function.

DFAOs are denoted by states and arrows just as is usual for DFAs; the extra information that Inline graphic is denoted by writing q/x in the state q.

As in DFAs, Inline graphic extends to Inline graphic by Inline graphic, Inline graphic. A DFAO M defines a function Inline graphic defined by Inline graphic. A function Inline graphic is called a finite state function if a DFAO M exists such that Inline graphic. For every finite state function f there exists a unique (up to renaming of states) DFAO M with a minimal number of states such that Inline graphic.

A DFAO of which the input alphabet Inline graphic is equal to Inline graphic, is called a k-DFAO.

Every natural number n has a unique representation Inline graphic, where Inline graphic and

graphic file with name M65.gif

for Inline graphic. So Inline graphic and Inline graphic. Note that non-empty strings of which the leftmost symbol is 0 do not occur as Inline graphic for some number n.

Conversely, every Inline graphic represents a number Inline graphic:

graphic file with name M72.gif

For any Inline graphic and any string Inline graphic the reverse Inline graphic of u is defined by Inline graphic.

An infinite sequence Inline graphic is called k-automatic if a k-DFAO Inline graphic exists such that Inline graphic for all Inline graphic. According to Theorem 5.2.1 from [1] a is k-automatic if and only if a k-DFAO Inline graphic exists such that Inline graphic for all Inline graphic. According to Theorem 5.2.3 from [1] a is k-automatic if and only if a k-DFAO Inline graphic exists such that Inline graphic for all Inline graphic.

Now we are ready to define the two natural measures Inline graphic, Inline graphic for k-automatic sequences that we investigate in this paper.

Definition 1

For any k-automatic sequence Inline graphic its size Inline graphic is defined to be the size of a smallest k-DFAO Inline graphic such that Inline graphic for all Inline graphic.

For any k-automatic sequence Inline graphic its reversed size Inline graphic is defined to be the size of a smallest k-DFAO Inline graphic such that Inline graphic for all Inline graphic.

Conversely, every k-DFAO Inline graphic defines two infinite sequences Inline graphic and Inline graphic over Inline graphic:

graphic file with name M103.gif

for all Inline graphic. From the above definition it is immediate that Inline graphic and Inline graphic.

  The Thue-Morse sequence Inline graphic

Inline graphic is defined by Inline graphic if the number of 1s in Inline graphic is even, and Inline graphic if the number of 1s in Inline graphic is odd, see, e.g., [1] Section 1.6, or OEIS A010060. We have Inline graphic, both justified by the DFAO on the right. graphic file with name 492458_1_En_18_Figa_HTML.jpg

The regular paper-folding sequence Inline graphic (or dragon curve sequence is defined by Inline graphic for every Inline graphic for the unique representation Inline graphic, see, e.g., [1] Example 5.16., or OEIS A014577. We have Inline graphic, respectively justified by the following two DFAOs.graphic file with name 492458_1_En_18_Figb_HTML.jpg graphic file with name 492458_1_En_18_Figc_HTML.jpg

The following lemma is the basic tool for lower bounds on Inline graphic and Inline graphic.

Lemma 1

Let a be a k-automatic sequence, and Inline graphic such that for every Inline graphic there exists Inline graphic satisfying Inline graphic, then Inline graphic.

Let a be a k-automatic sequence, and Inline graphic such that for every Inline graphic there exists Inline graphic satisfying Inline graphic, then Inline graphic.

Proof

For the first claim let Inline graphic be a smallest k-DFAO such that Inline graphic for all Inline graphic. For Inline graphic define Inline graphic. For Inline graphic from the assumption we obtain Inline graphic, so Inline graphic. This shows Inline graphic, so Inline graphic.

The proof of the second claim is similar.    Inline graphic

The Exponential Gap

The following theorem shows that there can be an exponential gap between Inline graphic and Inline graphic, in both directions. Its proof is inspired by the folklore result that the language Inline graphic has an NFA of size Inline graphic, and its reverse has a DFA of size Inline graphic, but its smallest DFA has size at least Inline graphic. We found it in [8], Sect. 3.2, page 67, exercise 3. Many similar results on state complexity are known, e.g., in [7], it is proved that all values until Inline graphic can be reached as sizes.

Theorem 1

For every Inline graphic there exist k-automatic sequences ab such that Inline graphic and Inline graphic, and Inline graphic and Inline graphic.

Proof

Define a by Inline graphic for Inline graphic, and Inline graphic if and only if the nth digit of Inline graphic is j, for Inline graphic, Inline graphic. The following DFAO satisfies Inline graphic by construction:graphic file with name 492458_1_En_18_Figd_HTML.jpg

in which all unlabeled arrows are assumed to be labeled by all symbols Inline graphic. Since this DFAO has Inline graphic states we obtain Inline graphic.

For proving Inline graphic we apply Lemma 1. For Inline graphic define Inline graphic, so the numbers Inline graphic are exactly the numbers of k-ary length n, starting in a digit Inline graphic. For any two distinct such numbers Inline graphic and Inline graphic there is a position p on which they differ, so by choosing Inline graphic, the strings Inline graphic and Inline graphic differ in their n-th position. So the condition of Lemma 1 holds and we conclude Inline graphic.

Define b by Inline graphic for Inline graphic, and Inline graphic if and only if the nth element of Inline graphic is j, for Inline graphic, Inline graphic. A similar argument using the same automaton proves the claim for b.    Inline graphic

The k-kernel

For Inline graphic we define Inline graphic by Inline graphic for all Inline graphic. So for Inline graphic we have Inline graphic and Inline graphic.

For an infinite sequence Inline graphic over Inline graphic we define its k-kernel Inline graphic to be the smallest set Inline graphic such that

  • Inline graphic,

  • for every Inline graphic and every Inline graphic we have Inline graphic.

We recall from [4], Prop. V.3.3, or [1], Theorem 6.6.2, that a is k-automatic if and only if Inline graphic is finite.

For a k-automatic sequence Inline graphic over the alphabet Inline graphic its k-kernel Inline graphic has a natural DFAO structure: the DFAO Inline graphic, where

  • the input alphabet is Inline graphic,

  • Inline graphic is the set of states,

  • Inline graphic is defined by Inline graphic,

  • a is the initial state,

  • the output alphabet is Inline graphic,

  • the output function Inline graphic is defined by Inline graphic.

Recall that for Inline graphic we have Inline graphic and Inline graphic, so in Inline graphic the 0-steps describe Inline graphic and the 1-steps describe Inline graphic. For Inline graphic the 2-kernel exactly coincides with the DFAO Inline graphic given in Sect. 2, in which Inline graphic coincides with Inline graphic and Inline graphic coincides with the sequence obtained from Inline graphic by swapping symbols 0 and 1. For Inline graphic the 2-kernel exactly coincides with the given DFAO Inline graphic, in which Inline graphic coincides with Inline graphic, Inline graphic with Inline graphic, Inline graphic with Inline graphic and Inline graphic with Inline graphic.

The following theorem is straightforwardly proved by induction on i:

Theorem 2

For every k-automatic sequence Inline graphic and every Inline graphic we have Inline graphic where Inline graphic refer to Inline graphic.

As a consequence, by only giving the DFAO Inline graphic the sequence a is fully defined.

Theorem 3

The DFAO Inline graphic is the unique DFAO of minimal size such that Inline graphic for every Inline graphic.

Proof

Let Inline graphic. Combining Theorem 2 with the fact that Inline graphic for all Inline graphic yields Inline graphic for every Inline graphic. Assume it is not of minimal size with this property. Then there are two distinct states Inline graphic such that Inline graphic for all Inline graphic. Since Inline graphic are sequences over Inline graphic, applying Theorem 2 to Inline graphic and Inline graphic yield Inline graphic for all Inline graphic. But then Inline graphic are equal as sequences, contradicting that they are distinct.    Inline graphic

Recall that Inline graphic is the minimal size |Q| for which a DFAO Inline graphic Inline graphic exists such that Inline graphic for every Inline graphic. We observe that a DFAO with this property does not need to be unique. For instance, for Inline graphic the DFAO Inline graphic is a minimal DFAO with this property, having two states a and Inline graphic, and Inline graphic, Inline graphic, Inline graphic. But the DFAO with the same two states ab and Inline graphic, Inline graphic, Inline graphic produces the same sequence Inline graphic.

  Next we observe that Inline graphic can be strictly smaller than Inline graphic, the size of the state space of Inline graphic. Define Inline graphic if the number of zeros in Inline graphic is odd, and Inline graphic if this number is even. Clearly it admits the following DFAO, in which as usual Inline graphic is denoted by q/x in the state q: graphic file with name 492458_1_En_18_Fige_HTML.jpg

Hence Inline graphic; we obtain Inline graphic since the sequence contains both 0 and 1. However, Inline graphic, since Inline graphic is the following DFAO:graphic file with name 492458_1_En_18_Figf_HTML.jpg The sequences abcd are as follows:

graphic file with name M282.gif
graphic file with name M283.gif

Observe that a and d differ only at the first position, and similarly for b and c. The next lemma states that this always occurs if Inline graphic is greater then Inline graphic.

Lemma 2

Let a be an infinite sequence over Inline graphic with kernel Inline graphic Inline graphic. Let Inline graphic such that Inline graphic for all Inline graphic. Assume that Inline graphic for Inline graphic. Then

graphic file with name M294.gif

Proof

Let Inline graphic. For any Inline graphic define the numbers Inline graphic by Inline graphic; this is possible since Inline graphic does not start in 0 since Inline graphic. For any Inline graphic we obtain Inline graphic by considering Inline graphic. Hence

graphic file with name M304.gif
graphic file with name M305.gif

   Inline graphic

Theorem 4

Let a be a k-automatic sequence over an alphabet Inline graphic. Then

graphic file with name M308.gif

Moreover, if a is periodic then Inline graphic.

Proof

The inequality Inline graphic holds since the automaton Inline graphic satisfies Inline graphic for every Inline graphic. For the other inequality let Inline graphic be a DFAO of minimal size Inline graphic such that Inline graphic for every Inline graphic. For every Inline graphic choose Inline graphic such that Inline graphic. Define Inline graphic on Inline graphic by Inline graphic.

According to Lemma 2 Inline graphic implies that Inline graphic for all Inline graphic, so the difference between b and c may only be caused by Inline graphic. Hence every equivalence class of Inline graphic has at most Inline graphic elements, while the number of equivalence classes is Inline graphic. This proves Inline graphic.

In case a is periodic then all elements of Inline graphic are periodic too, and Inline graphic for all Inline graphic implies Inline graphic. Hence in that case all equivalence classes consist of a single element, proving Inline graphic.    Inline graphic

Morphic Sequences

Recall that Inline graphic for the smallest Inline graphic being the set of states of a DFAO Inline graphic for which Inline graphic for every Inline graphic. Again this DFAO of minimal size is not unique: for Inline graphic the DFAO Inline graphic as given above also satisfies Inline graphic for all Inline graphic, but after changing Inline graphic to Inline graphic this property still holds, since Inline graphic never starts by 0.

Just like Inline graphic is strongly related to the kernel of a as described in Theorem 4, Inline graphic is strongly related to the number of symbols needed to describe a as a morphic sequence with respect to a k-uniform morphism. A sequence a over an alphabet Inline graphic is called morphic with respect to a morphism Inline graphic and a coding Inline graphic if Inline graphic for some Inline graphic satisfying Inline graphic, by which Inline graphic is a fixed point of h. The morphism Inline graphic is called k-uniform if the string Inline graphic has length k for every Inline graphic. It is well-known (Cobham [3], see also [1] Theorem 6.3.2) that a is k-automatic if and only if it is morphic with respect to a k-uniform morphism. For instance, Inline graphic for Inline graphic, and Inline graphic for Inline graphic, Inline graphic, Inline graphic.

Theorem 5

Let a be a k-automatic sequence. Let d(a) be the minimal size of the alphabet Inline graphic such that Inline graphic for a k-uniform morphism Inline graphic and a coding Inline graphic. Then Inline graphic.

Proof

The k-DFAO Inline graphic with Inline graphic and Inline graphic, where we write Inline graphic, satisfies Inline graphic for all Inline graphic as is showed in the proof of Theorem 6.3.2 of [1]. As Inline graphic is the smallest size of a k-DFAO with this property we obtain Inline graphic.

Conversely, if Inline graphic is a k-DFAO of size Inline graphic with Inline graphic for all Inline graphic, then by choosing a fresh state Inline graphic and defining Inline graphic, Inline graphic for Inline graphic, Inline graphic, Inline graphic for Inline graphic, Inline graphic, Inline graphic for Inline graphic, we obtain the k-DFAO Inline graphic of size Inline graphic with Inline graphic for all Inline graphic. Using the fact that Inline graphic we obtain Inline graphic for h defined by Inline graphic as is shown in the proof of Theorem 6.3.2 of [1]. Hence Inline graphic.    Inline graphic

The Effect of Basic Operations

For any sequence Inline graphic we define its tail Inline graphic by Inline graphic for all Inline graphic.

Theorem 6

For any k-automatic sequence a we have Inline graphic and Inline graphic. For every Inline graphic there exists a k-automatic sequence a such that Inline graphic and Inline graphic.

Proof

For the first claim take a DFAO Inline graphic of size Inline graphic with Inline graphic for all Inline graphic. Let Inline graphic be the smallest number Inline graphic such that Inline graphic exists with Inline graphic. Introduce fresh states Inline graphic and define the DFAO Inline graphic by

graphic file with name M423.gif
graphic file with name M424.gif
graphic file with name M425.gif
graphic file with name M426.gif

By construction we have Inline graphic for all Inline graphic, Inline graphic. So by defining Inline graphic for Inline graphic and Inline graphic for Inline graphic we obtain

graphic file with name M434.gif

and

graphic file with name M435.gif

for all Inline graphic, Inline graphic. Since Inline graphic, and Inline graphic, and every number in Inline graphic is either of the shape Inline graphic or Inline graphic, this proves that Inline graphic is a DFAO for Inline graphic. Since Inline graphic this yields Inline graphic.

For the second claim take a DFAO Inline graphic of size Inline graphic with Inline graphic for all Inline graphic. Define the DFAO Inline graphic of size Inline graphic by

graphic file with name M453.gif
graphic file with name M454.gif
graphic file with name M455.gif

for all Inline graphic, Inline graphic. For every Inline graphic we have either Inline graphic or Inline graphic, for some Inline graphic, Inline graphic, Inline graphic. In the first case we have Inline graphic, in the second case Inline graphic. The DFAO Inline graphic has been constructed in such a way that Inline graphic and Inline graphic. Hence for all Inline graphic we have Inline graphic, proving the second claim.

As Inline graphic, for the last claim it suffices to prove Inline graphic. We define a by Inline graphic if the number of zeros in Inline graphic is divisible by n, and Inline graphic otherwise. A DFAO consisting of a single n-cycle easily produces a, so Inline graphic, and since a smaller one is not possible we obtain Inline graphic. Let Inline graphic, so Inline graphic for all Inline graphic. We prove Inline graphic by Lemma 1. Choose Inline graphic to be the numbers Inline graphic for Inline graphic. Let Inline graphic and Inline graphic for Inline graphic, then Inline graphic.

First we consider the case where Inline graphic and Inline graphic are distinct modulo n, choose r such that Inline graphic is divisible by n and Inline graphic is not. Choose Inline graphic. Then Inline graphic.

In the remaining case Inline graphic and Inline graphic are equal modulo n, and since Inline graphic we obtain that p and Inline graphic are distinct modulo n. Choose r such that Inline graphic is divisible by n and Inline graphic is not. Choose Inline graphic, then Inline graphic.

So the conditions of Lemma 1 hold, and Inline graphic.    Inline graphic

For our examples Inline graphic and Inline graphic we have Inline graphic, Inline graphic, Inline graphic and Inline graphic.

For any sequence Inline graphic over Inline graphic, and Inline graphic the sequence Inline graphic is defined by Inline graphic and Inline graphic for all Inline graphic. The next theorem states that the effect of Inline graphic is similar to Inline graphic.

Theorem 7

For any k-automatic sequence a over Inline graphic, and Inline graphic we have Inline graphic and Inline graphic. For every Inline graphic there exists a k-automatic sequence a such that Inline graphic and Inline graphic.

Proof

Similar to the proof of Theorem 6, with the roles of the symbols 0 and Inline graphic swapped, exploiting the property Inline graphic for any string v and any Inline graphic.    Inline graphic

For our examples Inline graphic and Inline graphic we have Inline graphic, Inline graphic, Inline graphic and Inline graphic.

Recall that for Inline graphic the operator Inline graphic on sequences a is defined by Inline graphic for all Inline graphic.

Theorem 8

For any k-automatic sequence a and Inline graphic we have Inline graphic and Inline graphic.

Proof

Let Inline graphic be a DFAO of size Inline graphic with Inline graphic for all Inline graphic. Define Inline graphic by Inline graphic for all Inline graphic. Then

graphic file with name M551.gif

for all Inline graphic, so Inline graphic is a DFAO of size Inline graphic producing Inline graphic, so Inline graphic.

For the other claim let Inline graphic be a DFAO of size Inline graphic with Inline graphic for all Inline graphic. Define Inline graphic. Then

graphic file with name M562.gif

for all Inline graphic, so Inline graphic is a DFAO of size Inline graphic producing Inline graphic, so Inline graphic.    Inline graphic

For our examples Inline graphic and Inline graphic we have Inline graphic, Inline graphic, Inline graphic and Inline graphic.

When applying an operator Inline graphic on two sequences Inline graphic, Inline graphic, by Inline graphic we mean the sequence defined by Inline graphic for all Inline graphic. For instance, Inline graphic applied on boolean sequences denotes the elementwise conjunction of the two boolean sequences.

Theorem 9

For any two k-automatic sequences Inline graphic, Inline graphic and every function Inline graphic we have Inline graphic and Inline graphic.

Proof

Let Inline graphic be a DFAO of size Inline graphic with Inline graphic for all Inline graphic. Let Inline graphic be a DFAO of size Inline graphic with Inline graphic for all Inline graphic. Then Inline graphic for Inline graphic defined by Inline graphic and Inline graphic for all Inline graphic, is a DFAO of size Inline graphic for f(ab). The proof for the reversed version is similar.    Inline graphic

Combining our examples Inline graphic and Inline graphic we have Inline graphic and Inline graphic.

Periodic Sequences

Theorem 10

Let Inline graphic be a periodic sequence with Inline graphic. Then Inline graphic and Inline graphic.

Proof

Writing Inline graphic we obtain Inline graphic for all Inline graphic. Define Inline graphic by Inline graphic, Inline graphic, Inline graphic, Inline graphic, for all Inline graphic. Then by induction on the length of Inline graphic one proves that Inline graphic for every Inline graphic. Hence Inline graphic for all Inline graphic, proving that Inline graphic.

For the other claim we prove that Inline graphic, then the result follows from Theorem 4. The states of Inline graphic are sequences b for which there are numbers qj such that Inline graphic for all Inline graphic. We have to show that there are at most Inline graphic such sequences b. This follows from the fact that this only i depends on the n values for Inline graphic and the at most Inline graphic values for Inline graphic. The latter follows since if kn are relatively prime, then the values of Inline graphic are among the Inline graphic values Inline graphic, and otherwise there is some Inline graphic dividing both n and k, and the values are among the n/p multiples of p modulo n.    Inline graphic

A natural question is for which cases the bounds of Theorem 10 can be reached, in particular the quadratic bound for Inline graphic. This question is beyond the scope of this paper, but has been addressed in [2]. A main result of [2] is that if Inline graphic is prime and 2 is a primitive root modulo n (on which Artin’s conjecture states that this holds for infinitely many primes), then Inline graphic for Inline graphic.

Conclusions

We investigated two natural complexity measures for a k-automatic sequence a: Inline graphic closely related to the alphabet size required to present a as a morphic sequence with respect to a k-uniform morphism, and Inline graphic closely related to the size of the kernel of a. We saw how there can be an exponential gap between Inline graphic and Inline graphic, but basic operations like Inline graphic, adding an element in front, or applying a binary operator elementwise, never increases Inline graphic or Inline graphic by more than a quadratic factor. Many other operations, like changing the tenth element of a sequence, can be obtained by combining such basic operations, and hence yield a polynomial upper bound too. Probably these polynomial bounds can be improved strongly. Other open questions include a further investigation of when these upper bounds can be reached. Conversely, our SAT based tool provides values that are likely to be exact, but formally are only lower bounds. It would make sense to further investigate how to be sure to have the exact value, either depending on particular ways to define automatic sequences, or by giving general criteria for exactness depending on known upper bounds.

On periodic sequences this paper only contains some very basic observations; more involved observations are given in [2].

We want to thank Wieb Bosma for fruitful collaboration on this topic and careful proof reading. We want to thank Jeffrey Shallit for giving pointers to state complexity.

Contributor Information

Alberto Leporati, Email: alberto.leporati@unimib.it.

Carlos Martín-Vide, Email: carlos.martin@urv.cat.

Dana Shapira, Email: shapird@g.ariel.ac.il.

Claudio Zandron, Email: zandron@disco.unimib.it.

Hans Zantema, Email: h.zantema@tue.nl.

References

  • 1.Allouche JP, Shallit J. Automatic Sequences: Theory, Applications, Generalizations. Cambridge: Cambridge University Press; 2003. [Google Scholar]
  • 2.Bosma, W.: Complexity of periodic sequences (2019). https://www.math.ru.nl/~bosma/pubs/periodic.pdf
  • 3.Cobham A. Uniform tag sequences. Math. Systems Theory. 1972;6:164–192. doi: 10.1007/BF01706087. [DOI] [Google Scholar]
  • 4.Eilenberg S. Automata, Languages and Machines. New York: Academic Press; 1974. [Google Scholar]
  • 5.Endrullis J, Grabmayer C, Hendriks D. Mix-automatic sequences. In: Dediu A-H, Martín-Vide C, Truthe B, editors. Language and Automata Theory and Applications; Heidelberg: Springer; 2013. pp. 262–274. [Google Scholar]
  • 6.Gill A. Introduction to the Theory of Finite-State Machines. New York: McGraw-Hill; 1962. [Google Scholar]
  • 7.Jiraskova G. The ranges of state complexities for complement, star and reversal of regular languages. Int. J. Found. Comput. Sci. 2014;25(1):101–124. doi: 10.1142/S0129054114500063. [DOI] [Google Scholar]
  • 8.Lawson MV. Finite Automata. Boca Raton: Chapman and Hall/CRC; 2004. [Google Scholar]
  • 9.Shallit J. Decidability and enumeration for automatic sequences: a survey. In: Bulatov AA, Shur AM, editors. Computer Science – Theory and Applications; Heidelberg: Springer; 2013. pp. 49–63. [Google Scholar]

Articles from Language and Automata Theory and Applications are provided here courtesy of Nature Publishing Group

RESOURCES