The Critical Exponent is Computable for Automatic Sequences Jeffrey - - PowerPoint PPT Presentation

the critical exponent is computable for automatic
SMART_READER_LITE
LIVE PREVIEW

The Critical Exponent is Computable for Automatic Sequences Jeffrey - - PowerPoint PPT Presentation

The Critical Exponent is Computable for Automatic Sequences Jeffrey Shallit School of Computer Science University of Waterloo Waterloo, Ontario N2L 3G1 Canada shallit@cs.uwaterloo.ca http://www.cs.uwaterloo.ca/~shallit 1 / 93 Powers in


slide-1
SLIDE 1

The Critical Exponent is Computable for Automatic Sequences

Jeffrey Shallit School of Computer Science University of Waterloo Waterloo, Ontario N2L 3G1 Canada shallit@cs.uwaterloo.ca http://www.cs.uwaterloo.ca/~shallit

1 / 93

slide-2
SLIDE 2

Powers in words

A square is a nonempty word of the form xx.

2 / 93

slide-3
SLIDE 3

Powers in words

A square is a nonempty word of the form xx. Examples include

◮ murmur and hotshots in English

3 / 93

slide-4
SLIDE 4

Powers in words

A square is a nonempty word of the form xx. Examples include

◮ murmur and hotshots in English ◮ jenjen and taktak in Czech

4 / 93

slide-5
SLIDE 5

Powers in words

A square is a nonempty word of the form xx. Examples include

◮ murmur and hotshots in English ◮ jenjen and taktak in Czech

Similarly, a cube is a nonempty word of the form xxx.

5 / 93

slide-6
SLIDE 6

Fractional powers

We can extend the notion of integer power of a word to fractional powers.

6 / 93

slide-7
SLIDE 7

Fractional powers

We can extend the notion of integer power of a word to fractional powers. A word w is a fractional power if it can be written in the form w = xnx′, where n ≥ 1 and x′ is a prefix of x.

7 / 93

slide-8
SLIDE 8

Fractional powers

We can extend the notion of integer power of a word to fractional powers. A word w is a fractional power if it can be written in the form w = xnx′, where n ≥ 1 and x′ is a prefix of x. We say w has period |x| and exponent |w|/|x|. The shortest period is the period and the largest exponent is the exponent.

8 / 93

slide-9
SLIDE 9

Fractional powers

We can extend the notion of integer power of a word to fractional powers. A word w is a fractional power if it can be written in the form w = xnx′, where n ≥ 1 and x′ is a prefix of x. We say w has period |x| and exponent |w|/|x|. The shortest period is the period and the largest exponent is the exponent. For example, the exponent of the English word alfalfa is 7/3.

9 / 93

slide-10
SLIDE 10

Fractional powers

We can extend the notion of integer power of a word to fractional powers. A word w is a fractional power if it can be written in the form w = xnx′, where n ≥ 1 and x′ is a prefix of x. We say w has period |x| and exponent |w|/|x|. The shortest period is the period and the largest exponent is the exponent. For example, the exponent of the English word alfalfa is 7/3. The exponent of the Czech words jajaj and jejej is 5/2.

10 / 93

slide-11
SLIDE 11

Morphisms

Let h : Σ∗ → Σ∗ be a morphism.

11 / 93

slide-12
SLIDE 12

Morphisms

Let h : Σ∗ → Σ∗ be a morphism. If there exists k such that |h(a)| = k for all a ∈ Σ, then we say h is k-uniform.

12 / 93

slide-13
SLIDE 13

Morphisms

Let h : Σ∗ → Σ∗ be a morphism. If there exists k such that |h(a)| = k for all a ∈ Σ, then we say h is k-uniform. If h is 1-uniform, it is called a coding.

13 / 93

slide-14
SLIDE 14

Morphisms

Let h : Σ∗ → Σ∗ be a morphism. If there exists k such that |h(a)| = k for all a ∈ Σ, then we say h is k-uniform. If h is 1-uniform, it is called a coding. If there is a letter a ∈ Σ such that (a) h(a) = ax for some x ∈ Σ∗; and

14 / 93

slide-15
SLIDE 15

Morphisms

Let h : Σ∗ → Σ∗ be a morphism. If there exists k such that |h(a)| = k for all a ∈ Σ, then we say h is k-uniform. If h is 1-uniform, it is called a coding. If there is a letter a ∈ Σ such that (a) h(a) = ax for some x ∈ Σ∗; and (b) hi(x) = ǫ for all i ≥ 0

15 / 93

slide-16
SLIDE 16

Morphisms

Let h : Σ∗ → Σ∗ be a morphism. If there exists k such that |h(a)| = k for all a ∈ Σ, then we say h is k-uniform. If h is 1-uniform, it is called a coding. If there is a letter a ∈ Σ such that (a) h(a) = ax for some x ∈ Σ∗; and (b) hi(x) = ǫ for all i ≥ 0 then we say h is prolongable on a.

16 / 93

slide-17
SLIDE 17

Prolongable morphisms and fixed points

If h is prolongable, we can generate an infinite fixed point of h by iteration:

17 / 93

slide-18
SLIDE 18

Prolongable morphisms and fixed points

If h is prolongable, we can generate an infinite fixed point of h by iteration: hω(a) := lim

i→∞ hi(a)

18 / 93

slide-19
SLIDE 19

Prolongable morphisms and fixed points

If h is prolongable, we can generate an infinite fixed point of h by iteration: hω(a) := lim

i→∞ hi(a)

= a x h(x) h2(x) h3(x) · · ·

19 / 93

slide-20
SLIDE 20

Classes of morphic words

If an infinite word w is generated by iterating a morphism, it is called pure morphic.

20 / 93

slide-21
SLIDE 21

Classes of morphic words

If an infinite word w is generated by iterating a morphism, it is called pure morphic. If w = τ(x) for a pure morphic word x, and a coding τ, it is called morphic.

21 / 93

slide-22
SLIDE 22

Classes of morphic words

If an infinite word w is generated by iterating a morphism, it is called pure morphic. If w = τ(x) for a pure morphic word x, and a coding τ, it is called morphic. If an infinite word w is generated by iterating a uniform morphism, it is called pure uniform morphic.

22 / 93

slide-23
SLIDE 23

Classes of morphic words

If an infinite word w is generated by iterating a morphism, it is called pure morphic. If w = τ(x) for a pure morphic word x, and a coding τ, it is called morphic. If an infinite word w is generated by iterating a uniform morphism, it is called pure uniform morphic. If w = τ(x) for a k-uniform morphic word x, and a coding τ, it is called k-automatic.

23 / 93

slide-24
SLIDE 24

Automatic sequences

By Cobham’s theorem, we know that automatic sequences can be characterized in two different ways:

24 / 93

slide-25
SLIDE 25

Automatic sequences

By Cobham’s theorem, we know that automatic sequences can be characterized in two different ways:

  • as the image (under a coding) of the fixed point of a k-uniform

morphism

25 / 93

slide-26
SLIDE 26

Automatic sequences

By Cobham’s theorem, we know that automatic sequences can be characterized in two different ways:

  • as the image (under a coding) of the fixed point of a k-uniform

morphism

  • as the infinite word generated by an automaton taking the base-k

expansion of n as input, and producing the n’th term of the sequence as output

26 / 93

slide-27
SLIDE 27

Exponent of an infinite word

The critical exponent of an infinite word is defined to be the sup,

  • ver all factors, of the exponent of that factor.

27 / 93

slide-28
SLIDE 28

Exponent of an infinite word

The critical exponent of an infinite word is defined to be the sup,

  • ver all factors, of the exponent of that factor.

It could be infinite: consider 010101010101 · · · .

28 / 93

slide-29
SLIDE 29

Exponent of an infinite word

The critical exponent of an infinite word is defined to be the sup,

  • ver all factors, of the exponent of that factor.

It could be infinite: consider 010101010101 · · · . It could be irrational: it is known that the critical exponent of the Fibonacci word 01001010 · · · generated by iterating 0 → 01 and 1 → 0, is (3 + √ 5)/2 (Mignosi & Pirillo, 1992).

29 / 93

slide-30
SLIDE 30

Exponent of an infinite word

The critical exponent of an infinite word is defined to be the sup,

  • ver all factors, of the exponent of that factor.

It could be infinite: consider 010101010101 · · · . It could be irrational: it is known that the critical exponent of the Fibonacci word 01001010 · · · generated by iterating 0 → 01 and 1 → 0, is (3 + √ 5)/2 (Mignosi & Pirillo, 1992). It can be rational & attained: the critical exponent of the Thue-Morse word t = 01101001 · · · , generated by iterating 0 → 01 and 1 → 01, is 2, and it is attained.

30 / 93

slide-31
SLIDE 31

Exponent of an infinite word

The critical exponent of an infinite word is defined to be the sup,

  • ver all factors, of the exponent of that factor.

It could be infinite: consider 010101010101 · · · . It could be irrational: it is known that the critical exponent of the Fibonacci word 01001010 · · · generated by iterating 0 → 01 and 1 → 0, is (3 + √ 5)/2 (Mignosi & Pirillo, 1992). It can be rational & attained: the critical exponent of the Thue-Morse word t = 01101001 · · · , generated by iterating 0 → 01 and 1 → 01, is 2, and it is attained. It can be rational & not be attained: the word 210201210120210201202101210 · · · , which counts the run lengths

  • f 1’s in t, and is generated by 2 → 210, 1 → 20, and 0 → 1, has

critical exponent 2, but it is not attained.

31 / 93

slide-32
SLIDE 32

Critical exponents

More generally: any real number > 1 can be the critical exponent

  • f a word (over a sufficiently large finite alphabet) (Krieger & JOS,

2007).

32 / 93

slide-33
SLIDE 33

Critical exponents

More generally: any real number > 1 can be the critical exponent

  • f a word (over a sufficiently large finite alphabet) (Krieger & JOS,

2007). Any real number ≥ 2 can be the critical exponent of a binary word (Currie and Rampersad, 2008).

33 / 93

slide-34
SLIDE 34

Critical exponents

More generally: any real number > 1 can be the critical exponent

  • f a word (over a sufficiently large finite alphabet) (Krieger & JOS,

2007). Any real number ≥ 2 can be the critical exponent of a binary word (Currie and Rampersad, 2008). Further, for words that are fixed points of morphisms, the critical exponent lies in the field extension generated by the eigenvalues of the associated incidence matrix (Krieger, 2006).

34 / 93

slide-35
SLIDE 35

Computing the critical exponent

  • rational and computable for fixed points of uniform binary

morphisms (Krieger, 2009)

35 / 93

slide-36
SLIDE 36

Computing the critical exponent

  • rational and computable for fixed points of uniform binary

morphisms (Krieger, 2009)

  • computable in many cases for pure morphic words (Krieger)

36 / 93

slide-37
SLIDE 37

Computing the critical exponent

  • rational and computable for fixed points of uniform binary

morphisms (Krieger, 2009)

  • computable in many cases for pure morphic words (Krieger)
  • it is decidable, for an infinite word generated by iterating an

arbitrary morphism, if its critical exponent is < ∞ (Ehrenfeucht & Rozenberg, 1983)

37 / 93

slide-38
SLIDE 38

Computing the critical exponent

  • rational and computable for fixed points of uniform binary

morphisms (Krieger, 2009)

  • computable in many cases for pure morphic words (Krieger)
  • it is decidable, for an infinite word generated by iterating an

arbitrary morphism, if its critical exponent is < ∞ (Ehrenfeucht & Rozenberg, 1983)

  • in this talk: it is rational and computable for all k-automatic

sequences

38 / 93

slide-39
SLIDE 39

Morphic, pure morphic, and automatic sequences

39 / 93

slide-40
SLIDE 40

Encoding natural numbers

Fix an integer k ≥ 2, and let Σk = {0, 1, 2, . . . , k − 1}.

40 / 93

slide-41
SLIDE 41

Encoding natural numbers

Fix an integer k ≥ 2, and let Σk = {0, 1, 2, . . . , k − 1}. We can represent natural numbers n ≥ 0 in base-k. A representation is canonical if it has no leading zeroes.

41 / 93

slide-42
SLIDE 42

Encoding natural numbers

Fix an integer k ≥ 2, and let Σk = {0, 1, 2, . . . , k − 1}. We can represent natural numbers n ≥ 0 in base-k. A representation is canonical if it has no leading zeroes. If m is a natural number, then (m)k denotes its canonical representation.

42 / 93

slide-43
SLIDE 43

Encoding natural numbers

Fix an integer k ≥ 2, and let Σk = {0, 1, 2, . . . , k − 1}. We can represent natural numbers n ≥ 0 in base-k. A representation is canonical if it has no leading zeroes. If m is a natural number, then (m)k denotes its canonical representation. If w is a word, then [w]k is the integer it represents in base k.

43 / 93

slide-44
SLIDE 44

Encoding natural numbers

Fix an integer k ≥ 2, and let Σk = {0, 1, 2, . . . , k − 1}. We can represent natural numbers n ≥ 0 in base-k. A representation is canonical if it has no leading zeroes. If m is a natural number, then (m)k denotes its canonical representation. If w is a word, then [w]k is the integer it represents in base k. This gives a 1–1 correspondence between N and elements of {ǫ} ∪ (Σk − {0})Σ∗

k.

44 / 93

slide-45
SLIDE 45

Encoding pairs of natural numbers

A pair of natural numbers (m, n) can be encoded as a word over the larger alphabet Σ2

k.

45 / 93

slide-46
SLIDE 46

Encoding pairs of natural numbers

A pair of natural numbers (m, n) can be encoded as a word over the larger alphabet Σ2

k.

To do so, we take the base-k representations of m and n, and pad the shorter with leading zeroes, if necessary, so it is the same length as the longer.

46 / 93

slide-47
SLIDE 47

Encoding pairs of natural numbers

A pair of natural numbers (m, n) can be encoded as a word over the larger alphabet Σ2

k.

To do so, we take the base-k representations of m and n, and pad the shorter with leading zeroes, if necessary, so it is the same length as the longer. Then we pair up the digits and consider them as elements of Σ2

k.

47 / 93

slide-48
SLIDE 48

Encoding pairs of natural numbers

A pair of natural numbers (m, n) can be encoded as a word over the larger alphabet Σ2

k.

To do so, we take the base-k representations of m and n, and pad the shorter with leading zeroes, if necessary, so it is the same length as the longer. Then we pair up the digits and consider them as elements of Σ2

k.

For example, if m = 23 and n = 10, then (m)2 = 10111 and (n)2 = 1010. We pad the representation of n to get 01010 and then pair up with the digits of m to get (23, 10)2 = [1, 0][0, 1][1, 0][1, 1][1, 0].

48 / 93

slide-49
SLIDE 49

Encoding sets of integers and pairs

A language L ⊆ Σ∗

k encodes a set S of integers as follows: n ∈ S if

and only if the canonical base-k representation of n is contained in L.

49 / 93

slide-50
SLIDE 50

Encoding sets of integers and pairs

A language L ⊆ Σ∗

k encodes a set S of integers as follows: n ∈ S if

and only if the canonical base-k representation of n is contained in L. If L is regular, we get the class of k-automatic sets.

50 / 93

slide-51
SLIDE 51

Encoding sets of integers and pairs

A language L ⊆ Σ∗

k encodes a set S of integers as follows: n ∈ S if

and only if the canonical base-k representation of n is contained in L. If L is regular, we get the class of k-automatic sets. In a similar way, we can encode a set of pairs of integers as a language over (Σ2

k)∗.

51 / 93

slide-52
SLIDE 52

Representing rational numbers

We can represent a rational number p/q as the base-k encoding of the pair (p, q).

52 / 93

slide-53
SLIDE 53

Representing rational numbers

We can represent a rational number p/q as the base-k encoding of the pair (p, q). Note that we do not insist that p/q be in lowest terms.

53 / 93

slide-54
SLIDE 54

Representing rational numbers

We can represent a rational number p/q as the base-k encoding of the pair (p, q). Note that we do not insist that p/q be in lowest terms. We define f ((p, q)k) = p/q.

54 / 93

slide-55
SLIDE 55

Representing rational numbers

We can represent a rational number p/q as the base-k encoding of the pair (p, q). Note that we do not insist that p/q be in lowest terms. We define f ((p, q)k) = p/q. Similarly, we can encode a set of rationals as a language L over (Σ2

k)∗.

55 / 93

slide-56
SLIDE 56

Representing rational numbers

We can represent a rational number p/q as the base-k encoding of the pair (p, q). Note that we do not insist that p/q be in lowest terms. We define f ((p, q)k) = p/q. Similarly, we can encode a set of rationals as a language L over (Σ2

k)∗.

A given rational may have one or more representations in L.

56 / 93

slide-57
SLIDE 57

The main theorem

  • Theorem. Suppose L ⊆ (Σ2

k)∗ is a regular language. Then

α := sup

x∈L

f (x) is either infinite or rational.

57 / 93

slide-58
SLIDE 58

The main theorem

  • Theorem. Suppose L ⊆ (Σ2

k)∗ is a regular language. Then

α := sup

x∈L

f (x) is either infinite or rational. Further, given an automaton for L, we can compute α.

58 / 93

slide-59
SLIDE 59

Outline of the proof

  • 1. We assume that α = supx∈L f (x) is finite and irrational and L is

accepted by a DFA of n states.

59 / 93

slide-60
SLIDE 60

Outline of the proof

  • 1. We assume that α = supx∈L f (x) is finite and irrational and L is

accepted by a DFA of n states.

  • 2. Therefore we can find x ∈ L with f (x) arbitrarily close to α.

60 / 93

slide-61
SLIDE 61

Outline of the proof

  • 1. We assume that α = supx∈L f (x) is finite and irrational and L is

accepted by a DFA of n states.

  • 2. Therefore we can find x ∈ L with f (x) arbitrarily close to α.
  • 3. Using the pumping lemma, we construct x′ ∈ L with f (x′) > α,

a contradiction.

61 / 93

slide-62
SLIDE 62

A useful lemma

Let u, v, w be words over (Σ2

k)∗.

62 / 93

slide-63
SLIDE 63

A useful lemma

Let u, v, w be words over (Σ2

k)∗.

Then exactly one of the following cases holds:

63 / 93

slide-64
SLIDE 64

A useful lemma

Let u, v, w be words over (Σ2

k)∗.

Then exactly one of the following cases holds: (a) f (uv iw) = f (uv i+1w) for all i ≥ 0;

64 / 93

slide-65
SLIDE 65

A useful lemma

Let u, v, w be words over (Σ2

k)∗.

Then exactly one of the following cases holds: (a) f (uv iw) = f (uv i+1w) for all i ≥ 0; (b) f (uv iw) < f (uv i+1w) for all i ≥ 0;

65 / 93

slide-66
SLIDE 66

A useful lemma

Let u, v, w be words over (Σ2

k)∗.

Then exactly one of the following cases holds: (a) f (uv iw) = f (uv i+1w) for all i ≥ 0; (b) f (uv iw) < f (uv i+1w) for all i ≥ 0; (c) f (uv iw) > f (uv i+1w) for all i ≥ 0.

66 / 93

slide-67
SLIDE 67

A useful lemma

Let u, v, w be words over (Σ2

k)∗.

Then exactly one of the following cases holds: (a) f (uv iw) = f (uv i+1w) for all i ≥ 0; (b) f (uv iw) < f (uv i+1w) for all i ≥ 0; (c) f (uv iw) > f (uv i+1w) for all i ≥ 0. This allows us to construct an x′ with f (x′) > α, a contradiction.

67 / 93

slide-68
SLIDE 68

Computability

The same argument shows that α = supx∈L f (x) lies in an easily describable set, so it is computable.

68 / 93

slide-69
SLIDE 69

Computability

The same argument shows that α = supx∈L f (x) lies in an easily describable set, so it is computable. More precisely, α ∈ S1

  • S2,

69 / 93

slide-70
SLIDE 70

Computability

The same argument shows that α = supx∈L f (x) lies in an easily describable set, so it is computable. More precisely, α ∈ S1

  • S2,

where S1 = {p/q : 0 ≤ p < kn, 1 ≤ q < kn}

70 / 93

slide-71
SLIDE 71

Computability

The same argument shows that α = supx∈L f (x) lies in an easily describable set, so it is computable. More precisely, α ∈ S1

  • S2,

where S1 = {p/q : 0 ≤ p < kn, 1 ≤ q < kn} S2 = { [u1]k + [v1]k

ka−1

[u2]k + [v2]k

ka−1

: |u1v1| ≤ n, |u2v2| ≤ n, |u1| = |u2|, |v1| = |v2| = a ≥ 1}.

71 / 93

slide-72
SLIDE 72

Computability

The same argument shows that α = supx∈L f (x) lies in an easily describable set, so it is computable. More precisely, α ∈ S1

  • S2,

where S1 = {p/q : 0 ≤ p < kn, 1 ≤ q < kn} S2 = { [u1]k + [v1]k

ka−1

[u2]k + [v2]k

ka−1

: |u1v1| ≤ n, |u2v2| ≤ n, |u1| = |u2|, |v1| = |v2| = a ≥ 1}. where n is the number of states in the minimal DFA accepting L.

72 / 93

slide-73
SLIDE 73

Applications of the lemma

  • 1. The critical exponent of k-automatic words is either finite or
  • rational. Furthermore, it is computable.

73 / 93

slide-74
SLIDE 74

Applications of the lemma

  • 1. The critical exponent of k-automatic words is either finite or
  • rational. Furthermore, it is computable.
  • 2. The optimal constant for linear recurrence of k-automatic words

is either finite or rational. Furthermore, it is computable.

74 / 93

slide-75
SLIDE 75

Applications of the lemma

  • 1. The critical exponent of k-automatic words is either finite or
  • rational. Furthermore, it is computable.
  • 2. The optimal constant for linear recurrence of k-automatic words

is either finite or rational. Furthermore, it is computable.

  • 3. The quantities lim supn→∞ f (n)/n and lim infn→∞ f (n)/n are

computable for automatic sequences, where f denotes subword complexity.

75 / 93

slide-76
SLIDE 76

Application to the critical exponent

Given an automaton generating the k-automatic sequence a = a0a1 · · · , we transform it into an automaton M accepting L = {(p, q)k : ∃ a factor of a of length q with period p }.

76 / 93

slide-77
SLIDE 77

Application to the critical exponent

Given an automaton generating the k-automatic sequence a = a0a1 · · · , we transform it into an automaton M accepting L = {(p, q)k : ∃ a factor of a of length q with period p }.

i + q − 1 i + p i q p p p a =

77 / 93

slide-78
SLIDE 78

Application to the critical exponent

Given an automaton generating the k-automatic sequence a = a0a1 · · · , we transform it into an automaton M accepting L = {(p, q)k : ∃ a factor of a of length q with period p }.

i + q − 1 i + p i q p p p a =

The idea is to nondeterministically choose an index i at which a factor of length q begins in a, and then verify that a[j] = a[j + p] for i ≤ j ≤ i + q − p − 1.

78 / 93

slide-79
SLIDE 79

Application to the critical exponent

Given an automaton generating the k-automatic sequence a = a0a1 · · · , we transform it into an automaton M accepting L = {(p, q)k : ∃ a factor of a of length q with period p }.

i + q − 1 i + p i q p p p a =

The idea is to nondeterministically choose an index i at which a factor of length q begins in a, and then verify that a[j] = a[j + p] for i ≤ j ≤ i + q − p − 1. The critical exponent of a is then supx∈L f (x), which is either rational or infinite.

79 / 93

slide-80
SLIDE 80

Application to linear recurrence

A sequence a is recurrent if every factor that occurs, occurs infinitely often.

80 / 93

slide-81
SLIDE 81

Application to linear recurrence

A sequence a is recurrent if every factor that occurs, occurs infinitely often. It is linearly recurrent if there exists a constant C such that for all ℓ ≥ 0 and all factors x of length ℓ occurring in a, any two consecutive occurrences of x are separated by at most Cℓ positions.

81 / 93

slide-82
SLIDE 82

Application to linear recurrence

A sequence a is recurrent if every factor that occurs, occurs infinitely often. It is linearly recurrent if there exists a constant C such that for all ℓ ≥ 0 and all factors x of length ℓ occurring in a, any two consecutive occurrences of x are separated by at most Cℓ positions. Theorem. If an automatic sequence a is linearly recurrent, then the optimal constant C is rational and computable.

82 / 93

slide-83
SLIDE 83

Sketch of the proof

Define L = {(n, l)k : (a) there exists i ≥ 0 s. t. for all j, 0 ≤ j < ℓ we have a[i + j] = a[i + n + j] and (b) there is no t, 0 < t < n s. t. for all j, 0 ≤ j < ℓ we have a[i + j] = a[i + t + j]}

83 / 93

slide-84
SLIDE 84

Sketch of the proof

Define L = {(n, l)k : (a) there exists i ≥ 0 s. t. for all j, 0 ≤ j < ℓ we have a[i + j] = a[i + n + j] and (b) there is no t, 0 < t < n s. t. for all j, 0 ≤ j < ℓ we have a[i + j] = a[i + t + j]}

a = i i + ℓ − 1 i + n i + n − 1 + ℓ

84 / 93

slide-85
SLIDE 85

Sketch of the proof

Define L = {(n, l)k : (a) there exists i ≥ 0 s. t. for all j, 0 ≤ j < ℓ we have a[i + j] = a[i + n + j] and (b) there is no t, 0 < t < n s. t. for all j, 0 ≤ j < ℓ we have a[i + j] = a[i + t + j]}

a = i i + ℓ − 1 i + n i + n − 1 + ℓ

Another way to say this is that L consists of the base-k representation of those pairs of integers (n, ℓ) such that (a) there is some factor of length ℓ for which there is another occurrence at distance n and (b) this occurrence is actually the very next

  • ccurrence.

85 / 93

slide-86
SLIDE 86

Sketch of the proof

Now from our Theorem we know sup{n/ℓ : (n, ℓ)k ∈ L} is either infinite or rational. In the latter case this sup is computable, and this gives the optimal constant C for the linear recurrence of a.

86 / 93

slide-87
SLIDE 87

Applications to subword complexity

Let f (n) denote the number of distinct factors of length n in a given k-autmatic sequence (aka subword complexity).

87 / 93

slide-88
SLIDE 88

Applications to subword complexity

Let f (n) denote the number of distinct factors of length n in a given k-autmatic sequence (aka subword complexity). The quantities lim sup

n→∞ f (n)/n

and lim inf

n→∞ f (n)/n

are computable.

88 / 93

slide-89
SLIDE 89

Applications to subword complexity

Let f (n) denote the number of distinct factors of length n in a given k-autmatic sequence (aka subword complexity). The quantities lim sup

n→∞ f (n)/n

and lim inf

n→∞ f (n)/n

are computable. The idea for lim sup is essentially the same as the idea for sup.

89 / 93

slide-90
SLIDE 90

Applications to subword complexity

Let f (n) denote the number of distinct factors of length n in a given k-autmatic sequence (aka subword complexity). The quantities lim sup

n→∞ f (n)/n

and lim inf

n→∞ f (n)/n

are computable. The idea for lim sup is essentially the same as the idea for sup. Hence their equality is computable (cf. Goldstein [2011]).

90 / 93

slide-91
SLIDE 91

Open problems

– Extend these ideas to all morphic sequences, not just automatic sequences.

91 / 93

slide-92
SLIDE 92

Open problems

– Extend these ideas to all morphic sequences, not just automatic sequences. – Is the theorem about supx∈L f (x) also true for context-free languages?

92 / 93

slide-93
SLIDE 93

For further reading

  • 1. E. Charlier, N. Rampersad, and J. Shallit, Enumeration and

decidable properties of automatic sequences. In DLT 2011, pp. 165–179.

93 / 93