''k''-regular sequence

In mathematics and theoretical computer science, a k-regular sequence is an infinite sequence of terms characterized by a finite automaton with auxiliary storage.[1] They are a generalization of k-automatic sequences to alphabets of infinite size.

Definition

There exist several characterizations of k-regular sequences, all of which are equivalent. Some common characterizations are as follows. For each, we take R′ to be a commutative Noetherian ring and we take R to be a ring containing R′.

k-kernel

Let k  2. The k-kernel of the sequence s(n) is the set of subsequences

The sequence s(n) is (R′, k)-regular (often shortened to just "k-regular") if Kk(s) is a sub-module of a finitely-generated R′-module.[2]

Linear combinations

A sequence s(n) is k-regular if there exists an integer E such that, for all ej > E and 0 ≤ rjkej  1, every subsequence of s of the form s(kejn + rj) is expressible as an R′-linear combination , where cij is an integer, fijE, and 0 ≤ bijkfij  1.[3]

Alternatively, a sequence s(n) is k-regular if there exist an integer r and subsequences s1(n), ..., sr(n) such that, for all 1 ≤ ir and 0 ≤ ak  1, every sequence si(kn + a) in the k-kernel Kk(s) is an R′-linear combination of the subsequences si(n).[3]

Formal series

Let x0, ..., xk  1 be a set of k non-commuting variables and let τ be a map sending some natural number n to the string xa0 ... xae  1, where the base-k representation of x is the string ae  1...a0. Then a sequence s(n) is k-regular if and only if the formal series is -rational.[4]

Automata-theoretic

The formal series definition of a k-regular sequence leads to an automaton characterization similar to Schützenberger's matrix machine.[1][5]

History

The notion of k-regular sequences was first investigated in a pair of papers by Allouche and Shallit.[6] Prior to this, Berstel and Reutenauer studied the theory of rational series, which is closely related to k-regular sequences.[7]

Examples

Thue–Morse sequence

The Thue–Morse sequence t(n) (A010060) is the fixed point of the morphism 0 → 01, 1 → 10. It is known that the Thue–Morse sequence is 2-automatic. Thus, it is also 2-regular, and its 2-kernel

consists of the subsequences and .

Ruler sequence

Let h(n) = ν2(n + 1) be the 2-adic valuation of n + 1. The ruler sequence h(n) (A007814) is 2-regular, and the 2-kernel

is contained in the two-dimensional vector space generated by h(n) and the constant sequence . These basis elements lead to the recurrence relations

which, along with the initial conditions h(0) = 0 and h(1) = 1, uniquely determine the sequence.[8]

Cantor numbers

The sequence of Cantor numbers c(n) (A005823) consists of numbers whose ternary expansions contain no 1s. It is straightforward to show that

and therefore the sequence of Cantor numbers is 2-regular.[9]

Merge sort

A somewhat interesting application of the notion of k-regularity to the broader study of algorithms is found in the analysis of the merge sort algorithm. Given a list of n values, the number of comparisons made by the merge sort algorithm is governed by the recurrence relation

As a result, the sequence defined by the recurrence relation for merge sort, T(n), constitutes a 2-regular sequence.[10]

Other sequences

If is an integer-valued polynomial, then is k-regular for every .

Allouche and Shallit give a number of additional examples of k-regular sequences in their papers.[6]

Properties

k-regular sequences exhibit a number of interesting properties. A non-exhaustive list of these properties is presented below.

Notes

  1. 1 2 Allouche & Shallit (1992), Theorem 4.4
  2. Allouche & Shallit (1992), Definition 2.1
  3. 1 2 Allouche & Shallit (1992), Theorem 2.2
  4. Allouche & Shallit (1992), Theorem 4.3
  5. Schützenberger, M.-P. (1961), "On the definition of a family of automata", Information and Control, 4: 245–270, doi:10.1016/S0019-9958(61)80020-X.
  6. 1 2 Allouche & Shallit (1992, 2003)
  7. Berstel, Jean; Reutenauer, Christophe (1988). Rational Series and Their Languages. EATCS Monographs on Theoretical Computer Science. 12. Springer-Verlag. ISBN 978-3-642-73237-9.
  8. Allouche & Shallit (1992), Example 8
  9. Allouche & Shallit (1992), Example 3
  10. Allouche & Shallit (1992), Example 28
  11. Allouche & Shallit (1992), Theorem 2.3
  12. 1 2 Allouche & Shallit (2003) p. 441
  13. Allouche & Shallit (1992), Theorem 2.5
  14. Allouche & Shallit (1992), Theorem 3.1
  15. Allouche & Shallit (2003) p. 445
  16. Bell, J. (2006). "A generalization of Cobham’s theorem for regular sequences". Seminaire Lotharingien de Combinatoire. 54A.
  17. Cobham, A. (1969). "On the base-dependence of sets of numbers recognizable by finite automata". Math. Systems Theory. 3 (2): 186–192. doi:10.1007/BF01746527.

References

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.