Avoiding Circular Repetitions Hamoon Mousavi and Jeffrey Shallit - - PowerPoint PPT Presentation

avoiding circular repetitions
SMART_READER_LITE
LIVE PREVIEW

Avoiding Circular Repetitions Hamoon Mousavi and Jeffrey Shallit - - PowerPoint PPT Presentation

Avoiding Circular Repetitions Hamoon Mousavi and Jeffrey Shallit School of Computer Science University of Waterloo sh2mousa@uwaterloo.ca Canadian Discrete and Algorithmic Mathematics Conference CanaDAM June 10, 2013 H. Mousavi (University of


slide-1
SLIDE 1

Avoiding Circular Repetitions

Hamoon Mousavi and Jeffrey Shallit

School of Computer Science University of Waterloo sh2mousa@uwaterloo.ca

Canadian Discrete and Algorithmic Mathematics Conference CanaDAM

June 10, 2013

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 1 / 31

slide-2
SLIDE 2

Avoidability

The seminal paper of Axel Thue (1906). Thue asked the existence of an infinite word over the alphabet {a, b, c} that avoids squares, i.e., factors of the form xx. Constructed a squarefree word by iterating the following morphism a → abcab b → acabcb c → acbcacb Iterating it gives us a → abcab → abcabacabcbacbcacbabcabacabcb → · · · Ternary alphabet is the smallest with an infinite squarefree word.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 2 / 31

slide-3
SLIDE 3

Various themes

Is the pattern ABCBABC avoidable? Is it 3-avoidable? Smallest n for which P is n-avoidable? Decidability Over circular words (necklaces) Smallest avoidable exponent (repetition threshold)

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 3 / 31

slide-4
SLIDE 4

Repetitions

k-power: xk =

k

xx · · · x x2 is 3-avoidable but not 2-avoidable (Thue). α-power: y = x⌊α⌋x′ such that |y|

|x| = α. We then write

y = xα. Examples hotshots = (hots)2 alfalfa = (alf)2a = (alf)

7 3

Definition w is α-power-free if none of its factors is a β-power for any β ≥ α. w is α+-power-free if none of its factors is a β-power for any β > α.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 4 / 31

slide-5
SLIDE 5

Conjugation

Two words x, y are conjugate if one is a cyclic shift of the other. That is if there exist words u, v such that x = uv and y = vu. ‘bookcase′ and ‘casebook′. One simple observation is that all conjugates of a k-power are k-powers. abcabc = (abc)2 cabcab = (cab)2

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 5 / 31

slide-6
SLIDE 6

Circular repetition

Observation w is α-power-free if for every factor x w = x x is α-power-free Definition w is circularly α-power-free if for every factor x w = x x and all its conjugates are α-power-free.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 6 / 31

slide-7
SLIDE 7

Circular repetition: example

Example w = dividing x = dividi a conjugate of x is vididi which has a 5

2-power: ididi = (id)

5 2

So w is not circularly 5

2-power-free.

In fact, w is circularly ( 5

2)+-power-free.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 7 / 31

slide-8
SLIDE 8

Circular repetition

w is circularly α-power-free if for every pair of factors x and y w = x y yx is α-power-free. (x, y) is a circular α-power if yx is α-power. Example w = d i v i d i n g x y yx = ididi = (id)

5 2

Hence (x, y) is a circular 5

2-power.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 8 / 31

slide-9
SLIDE 9

Repetition threshold

Definition The repetition threshold, RT(n), is the smallest α for which there exists an infinite α+-power-free word over Σn. Example Dejean proved RT(3) = 7

4 by proving

1 there are only finitely many 7

4-power-free words.

2 there are infinite ( 7

4)+-power-free words.

ν(a) = abcacbcabcbacbcacba, ν(b) = bcabacabcacbacabacb, ν(c) = cabcbabcabacbabcbac. νω(a) = a bcacbca bcbacbcacba · · ·

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 9 / 31

slide-10
SLIDE 10

Dejean’s conjecture

Dejean’s conjecture Thue, Dejean, Pansiot, Moulin Ollagnier, Carpi, Currie, Mohammad- Noori, Rampersad, and Rao: RT(n) =     

7 4,

if n = 3;

7 5,

if n = 4;

n n−1,

if n = 3, 4.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 10 / 31

slide-11
SLIDE 11

Repetition threshold for circular factors

Definition The repetition threshold for circular factors, RTC(n), is the smallest α for which there exists an infinite circularly α+-power-free word over Σn. n RT(n) RTC(n) 2 2 4 3

7 4 13 4

4

7 5 5 2

5

5 4 105 46

6

6 5

1 + 6

5 = 11 6

. . . . . . . . . k

k k−1

1 + RT(k) = 2k−1

k−1

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 11 / 31

slide-12
SLIDE 12

Bounds on RTC(n)

1 + RT(n) 2 RT(n) n = 2 n = 3 n = 4 n = 5 n = 6 n = 7 n = 8 . . . Theorem 1 + RT(n) ≤ RTC(n) ≤ 2 RT(n)

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 12 / 31

slide-13
SLIDE 13

Thue-Morse word and RTC(2)

Thue morphism h(0) = 01 h(1) = 10. The Thue-Morse word t = hω(0) = 01101001 · · · is 2+-power-free. Theorem t is circularly 4+-power-free.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 13 / 31

slide-14
SLIDE 14

Thue-Morse word and RTC(2)

Theorem t is circularly 4+-power-free. Proof. Suppose (x, y) is a circular 4+-power of t, i.e., t = x y · · · and yx is a 4+-power. Then either y or x is a 2+-power, a contradiction.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 14 / 31

slide-15
SLIDE 15

RTC(2) = 4

Theorem RTC(2) = 4. Proof. Since t is circularly 4+-power-free, we have RTC(2) ≤ 4. No binary word of length 12 is circularly 4-power-free, so RTC(2) ≥ 4.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 15 / 31

slide-16
SLIDE 16

RTC(3) = 13

4

Overview of the proof: A finite search shows that RTC(3) ≥ 13

4 .

So to prove RTC(3) = 13

4 , we just need to construct an infinite word

that is circularly ( 13

4 )+-power-free.

We give a pair of morphisms: ψ : Σ∗

6 → Σ∗ 6

µ : Σ∗

6 → Σ∗ 3

We prove µ(ψω(0)) is circularly ( 13

4 )+-power-free.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 16 / 31

slide-17
SLIDE 17

Pair of morphisms

ψ(0) = 0435 ψ(1) = 2341 ψ(2) = 3542 ψ(3) = 3540 ψ(4) = 4134 ψ(5) = 4105. µ(0) = 012102120102012 µ(1) = 201020121012021 µ(2) = 012102010212010 µ(3) = 201210212021012 µ(4) = 102120121012021 µ(5) = 102010212021012.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 17 / 31

slide-18
SLIDE 18

µ(ψω(0))

Theorem µ(ψω(0)) is circularly ( 13

4 )+-power-free.

Proof idea The proof has two parts

1 r = ψω(0) is circularly cubefree. 2 s = µ(r) is circularly ( 13

4 )+-power-free.

1

s has no short circular ( 13

4 )+-power. (This is checked by computer)

2

s has no long circular ( 13

4 )+-power.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 18 / 31

slide-19
SLIDE 19

µ is well-behaved!

µ : Σ∗

6 → Σ∗ 3 is 15-uniform

|µ(a)| = 15 for all a ∈ Σ6. µ is synchronizing, i.e., for no a, b, c ∈ Σ6 µ(a) µ(b) µ(c) µ is strongly synchronizing, i.e., for all a, b, c ∈ Σ6 and x, y ∈ Σ∗

3 if

x y x y µ(a) = µ(b) = µ(c) = either c = a or c = b.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 19 / 31

slide-20
SLIDE 20

Main lemma

Lemma Let φ be a strongly synchronizing q-uniform morphism. Let w be a circularly cubefree word. If (x1, x2) is a circular ( 13

4 )+-power in φ(w), i.e.,

φ(w) = x1 x2 x2x1 is ( 13

4 )+-power, then

|x2x1| < 22q.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 20 / 31

slide-21
SLIDE 21

Main lemma: proof

Proof is by contradiction. Suppose (x1, x2) is a circular ( 13

4 )+-power of φ(w), and

|x2x1| ≥ 22q.

φ(w) =

x1 x2

slide-22
SLIDE 22

Main lemma: proof

Proof is by contradiction. Suppose (x1, x2) is a circular ( 13

4 )+-power of φ(w), and

|x2x1| ≥ 22q.

φ(w) =

x1 x2

φ(a) φ(w1) φ(b) φ(c) φ(w2) φ(d) a w1 b c w2 d w =

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 21 / 31

slide-23
SLIDE 23

Main lemma: proof

φ(w) =

x1 x2

φ(a) φ(w1) φ(b) φ(c) φ(w2) φ(d) y1 y2 y3 y4 x1 = y1 φ(w1) y2 x2 = y3 φ(w2) y4 zα = x2x1 = y3 φ(w2) y4 y1 φ(w1) y2

Here z is a word and α > 13

4 . There are two cases to consider:

1 y4y1 = ǫ 2 y4y1 = ǫ

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 22 / 31

slide-24
SLIDE 24

Main lemma: case 1

Case 1 is y4y1 = ǫ. Therefore we have x1 = φ(w1)y2, x2 = y3φ(w2).

φ(w) =

x1 x2

φ(w1) φ(b) φ(c) φ(w2) y2 y3 zα = x2x1 = y3 φ(w2) φ(w1) y2 = y3 φ(w2w1) y2

Note that α > 13

4 = 3.25.

We get that φ(w2w1) contains a cube. w2w1 contains a cube. (synchronizing) w contains a circular cube, a contradiction.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 23 / 31

slide-25
SLIDE 25

Main lemma: case 2

φ(w) =

x1 x2

φ(a) φ(w1) φ(b) φ(c) φ(w2) φ(d)

We would like to show that by shrinking x1 and enlarging x2 we can get another circular ( 13

4 )+-power of the same length:

φ(w) =

x1 x2

φ(a) φ(w1) φ(b) φ(c) φ(w2) φ(d)

x′

1

x′

2

Then clearly (x′

1, x′ 2) falls under case 1.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 24 / 31

slide-26
SLIDE 26

Main lemma: case 2

Goal: x′

2x′ 1 = x2x1

φ(w) =

x1 x2

φ(a) φ(w1) φ(b) φ(c) φ(w2) φ(d)

x′

1

x′

2

y1 y2 y3 y4

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 25 / 31

slide-27
SLIDE 27

Main lemma: case 2

Goal: x′

2x′ 1 = x2x1

φ(w) =

x1 x2

φ(a) φ(w1) φ(b) φ(c) φ(w2) φ(d)

x′

1

x′

2

y1 y2 y3 y4

We just need to show that φ(d) = y4y1.

φ(w) =

x1 x2

φ(a) φ(w1) φ(b) φ(c) φ(w2) φ(d)

x′

1

x′

2

y1 y2 y3 y4 y1

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 25 / 31

slide-28
SLIDE 28

Main lemma: case 2

Let s = φ(e)y4y1φ(f ), where e is the last letter of w2 and f is the first letter of w1.

zα = x2x1 = y3 φ(w2) y4 y1 φ(w1) y2 s

s also appears in φ(w1):

zα = x2x1 = y3 φ(w2) y4 y1 φ(w1) y2 s s

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 26 / 31

slide-29
SLIDE 29

Main lemma: case 2

Since φ is synchronizing, the word y4y1 is the complete image of a letter:

φ(w[0]) · · · φ(w[i]) φ(w[i + 1])φ(w[i + 2]) · · · φ(w) = φ(e) y4y1 φ(f ) s =

Recall that y4 is a prefix of φ(d) and y1 is suffix of φ(a).

y4 y1 y4 y1 φ(d) = φ(a) = φ(w[i + 1]) =

Since φ is strongly synchronizing, we have either y4y1 = φ(d) or y4y1 = φ(a).

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 27 / 31

slide-30
SLIDE 30

Main lemma: case 2

Without loss of generality, we can assume y4y1 = φ(d).

φ(w) =

x1 x2

φ(a) φ(w1) φ(b) φ(c) φ(w2) φ(d)

x′

1

x′

2

y1 y2 y3 y4y1

So x′

2x′ 1 = x2x1.

(x′

1, x′ 2) falls under case 1.

A contradiction.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 28 / 31

slide-31
SLIDE 31

Open problem 1

Prove or disprove RTC(4) = 5 2 , RTC(5) = 105 46 , and RTC(n) = 1 + RT(n) = 2n − 1 n − 1 for n ≥ 6.

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 29 / 31

slide-32
SLIDE 32

Open problem 2: generalized circular repetitions

We can study repetition avoidance in the products of factors of words. Let RTk denote the repetition threshold for this new problem, where k is the number of factors we take into consideration. We can easily prove RTk(2) = 2k. It would be interesting to obtain more values of RTk(n). Conjecture: RT2(n) = RTC(n) For large integers n, we conjecture that RTk(n) = k − 1 + RT(n).

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 30 / 31

slide-33
SLIDE 33

Open problem 3: algorithmic problems

For a finite word w, define the circular exponent, cexp(w), to be cexp(w) = max{α : w has a circular α-power}. Is cexp(w) computable in linear time? Given α and w, can we compute in linear time whether w avoids circular α-powers?

  • H. Mousavi (University of Waterloo)

Circular Repetitions June 10 31 / 31