on k-abelian palindromes · rich and poor words (equality) rich words the maximal number of...

29
On k -abelian palindromes Julien Cassaigne 1 Juhani Karhum¨ aki 2 Svetlana Puzynina 3,4 Universit´ e Aix-Marseille, France University of Turku, Finland ´ Ecole Normale Sup´ erieure de Lyon, France Sobolev Institute of Mathematics, Russia Julien Cassaigne, Juhani Karhum¨ aki, Svetlana Puzynina On k-abelian palindromes

Upload: others

Post on 11-Sep-2019

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

On k-abelian palindromes

Julien Cassaigne1 Juhani Karhumaki2 Svetlana Puzynina3,4

Universite Aix-Marseille, France

University of Turku, Finland

Ecole Normale Superieure de Lyon, France

Sobolev Institute of Mathematics, Russia

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 2: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Framework

Palindromic rich (many palindromes)and poor (few palindromes) words

palindrome (French): ressasserDutch: koortsmeetsysteemstrook

k-abelian equivalencebetween abelian equivalence and equality

abelian equivalence: words equal up to permutations of lettersaab ∼ab aba

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 3: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Framework

Palindromic rich (many palindromes)and poor (few palindromes) words

palindrome (French): ressasser

Dutch: koortsmeetsysteemstrook

k-abelian equivalencebetween abelian equivalence and equality

abelian equivalence: words equal up to permutations of lettersaab ∼ab aba

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 4: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Framework

Palindromic rich (many palindromes)and poor (few palindromes) words

palindrome (French): ressasserDutch: koortsmeetsysteemstrook

k-abelian equivalencebetween abelian equivalence and equality

abelian equivalence: words equal up to permutations of lettersaab ∼ab aba

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 5: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Framework

Palindromic rich (many palindromes)and poor (few palindromes) words

palindrome (French): ressasserDutch: koortsmeetsysteemstrook

k-abelian equivalencebetween abelian equivalence and equality

abelian equivalence: words equal up to permutations of lettersaab ∼ab aba

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 6: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

k-abelian equivalence

Definition

For k ≥ 1, words u and v in Σ+ are k-abelian equivalent

u ≡k v

iff

for each l ≤ k and w ∈ Σl : |u|w = |v |w .

Example

aabaaaba ≡2 ababaaaa :

a : 5 aa : 3b : 2 ab : 2

ba : 2bb : 0

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 7: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

equivalent definition

Equivalently,

Definition

u ≡k v

iff

∀w ∈ Σk : |u|w = |v |wprefk−1(u) = prefk−1(v) or

u = v for words u, v ∈ Σ≤k

k = 1: abelian equivalence;

k ≥ bn−12 c: equality of words;

k ′ < k, u ≡k v =⇒ u ≡k ′ v

u = v ⇐⇒ ∀k u ≡k v

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 8: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

equivalent definition

Equivalently,

Definition

u ≡k v

iff

∀w ∈ Σk : |u|w = |v |wprefk−1(u) = prefk−1(v) or

u = v for words u, v ∈ Σ≤k

k = 1: abelian equivalence;

k ≥ bn−12 c: equality of words;

k ′ < k, u ≡k v =⇒ u ≡k ′ v

u = v ⇐⇒ ∀k u ≡k v

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 9: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

A hierarchy of approximations of the equality

= ⊆ . . . ⊆ ≡k ⊆ ≡k−1 ⊆ . . . ⊆ ≡1

equality abelian equivalence

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 10: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Problems

Basic question:

When does the k-abelian equivalence ≡k behave like the equality= and when like the abelian equality ≡1?

What was studied:

the number of the equivalence classes

minimal k-abelian complexity

avoidability of k-abelian powers

k-abelian periods

etc.

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 11: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Palindromes

Palindromes with respect to

=: palindrome: w = wR :

ababbaba

∼ab: abelian palindrome: any word is abelian palindrome

≡k : k-abelian palindrome: w ≡k wR :

abaabaa

is a 2-abelian palindrome

How many palindromes a word can contain?

rich words: maximal number of palindromes as factors

poor words: minimal number of palindromes as factors(infinite words with finitely many palindromes)

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 12: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Palindromes

Palindromes with respect to

=: palindrome: w = wR :

ababbaba

∼ab: abelian palindrome: any word is abelian palindrome

≡k : k-abelian palindrome: w ≡k wR :

abaabaa

is a 2-abelian palindrome

How many palindromes a word can contain?

rich words: maximal number of palindromes as factors

poor words: minimal number of palindromes as factors(infinite words with finitely many palindromes)

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 13: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Rich and poor words (equality)

Rich words

The maximal number of palindromes a word of length n cancontain is n + 1.

There exist infinite rich words (all their factors are rich).

Poor words

There exists a reversal closed infinite word containing onlyfinitely many palindromes [Berstel, Boasson, Carton, 2009]

The smallest number of palindromes such a word can contain[Fici, Zamboni, 2013]

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 14: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Rich and poor words (equality)

Rich words

The maximal number of palindromes a word of length n cancontain is n + 1.

There exist infinite rich words (all their factors are rich).

Poor words

There exists a reversal closed infinite word containing onlyfinitely many palindromes [Berstel, Boasson, Carton, 2009]

The smallest number of palindromes such a word can contain[Fici, Zamboni, 2013]

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 15: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Rich and poor words of different types

= ≡k ∼ab

poor C C ∞ for infinite words

BBC our result trivial

rich n + 1 Θ(n2) Θ(n2) for finite words

folklore our result trivial

for poor words k-abelian equality behaves like equality

for rich words k-abelian equality behaves like abelian equality

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 16: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Rich and poor words of different types

= ≡k ∼ab

poor C C ∞ for infinite wordsBBC our result trivial

rich n + 1 Θ(n2) Θ(n2) for finite wordsfolklore our result trivial

for poor words k-abelian equality behaves like equality

for rich words k-abelian equality behaves like abelian equality

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 17: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Main result for k-abelian poor words

l : the cardinality of the alphabet.

Characterization of the existence of (k, l)-poor words:

k\l 2 3 4 5

1 − − − −2 − ⊕ +3 − ⊕ + +4 + +5 ⊕ +

Full classification for three conditions of reversal-closed(reversal-closed, k-abelian reversal closed or no conditions):

+, ⊕: existence with a set of factors closed under reversal: existence, but not with a set of factors closed underk-abelian reversal−: nonexistence

The crucial things to prove are marked ⊕ and .

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 18: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Main result for k-abelian poor words

l : the cardinality of the alphabet.

Characterization of the existence of (k, l)-poor words:

k\l 2 3 4 5

1 − − − −2 − ⊕ +3 − ⊕ + +4 + +5 ⊕ +

Full classification for three conditions of reversal-closed(reversal-closed, k-abelian reversal closed or no conditions):

+, ⊕: existence with a set of factors closed under reversal: existence, but not with a set of factors closed underk-abelian reversal−: nonexistence

The crucial things to prove are marked ⊕ and .Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 19: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Construction I for ⊕ cases

we modify the construction of sesquipowers:

U0 = w0,

Ui+1 = UiwiURi ,

where wi is a suitable marker

E.g., for (2, 4)-poor word:

U0 = abca abda acda,

Un = Un−1(abca)22n

(abda)22n

(acda)22n

URn−1.

The required word is obtained as the limit u = limn→∞ Un:

abca abda acda(abca)4(abda)4(acda)4adca adba acba(abca)16 · · ·

crucial thing: a dominating power in each factor

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 20: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Construction II for ⊕ cases

u0 = A

v0 = B

un+1 = unvnun(vn)Run

vn+1 = vnunvn(un)Rvn

or σ :

A→ ABADA

B → BABCB

C → CBCDC

D → DADCD

where A = C , C = A, B = D, D = B

τ2,4 :

A→ ab

B → cd

C → ba

D → dc

τ3,3 :

A→ abcca

B → abbca

C → accba

D → acbba

τ5,2 :

A→ aabbaabaa

B → aabbabaaa

C → aabaabbaa

D → aaababbaa

τk,lσ∞(a)

k-abelian poor over l letter alphabet

uniformly recurrent

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 21: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Construction II for ⊕ cases

u0 = A

v0 = B

un+1 = unvnun(vn)Run

vn+1 = vnunvn(un)Rvn

or σ :

A→ ABADA

B → BABCB

C → CBCDC

D → DADCD

where A = C , C = A, B = D, D = B

τ2,4 :

A→ ab

B → cd

C → ba

D → dc

τ3,3 :

A→ abcca

B → abbca

C → accba

D → acbba

τ5,2 :

A→ aabbaabaa

B → aabbabaaa

C → aabaabbaa

D → aaababbaa

τk,lσ∞(a)

k-abelian poor over l letter alphabet

uniformly recurrent

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 22: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Construction II: self-avoiding fractal curve

Figure: A :→, B :↑, C :←, D :↓

palindrome ⇐⇒ self-intersection

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 23: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Proving nonexistence

Idea to prove the cases (example for k = 2, |Σ| = 3):

Rewriting rules which do not affect the 2-palindromicity:

for x ∈ Σ, substitute xx → xfor x , y ∈ Σ, substitute xyx → x

reduce a word to a reduced form when no rewriting rule canbe applied

the reduced form of any ternary word v is a factor of (abc)∞

or (cba)∞

a ternary word v is a 2-palindrome if and only if its reducedform is a letter

using the reduced form, we find long palindromes

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 24: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Rewriting rules for the case (4, 2)

For x , y ∈ Σ, substitute

xxx → xx (if this occurrence of xxx is not a prefix or suffix inv)

xxyyxx → xxyxx

xyxyx → xyx

yxyyxy → yxy

xxyxxy → xxy , yxxyxx → yxx

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 25: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

k-abelian rich words

k-abelian rich words

words of length n containing Θ(n2) inequivalent k-abelianpalindromes (i.e., proportion of the total number of factors)

Theorem

Let k be a natural number. There exists a positive constant Csuch that for each n ≥ k there exists a word of length n containingat least Cn2 k-abelian palindromes.

Actually, we can choose C = 1/4k .

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 26: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

k-abelian rich words

Consider words of the form:

v = al(bak−1)m

Let |w | = n and n ≥ k. We can count all k-abelianpalindromes and maximaze their number by the choice of land m:

] of k-abelian palindromes in w ≥ 1/4kn2

These words are k-abelian rich: Θ(n2) k-abelian palindromesand Θ(n2) factors in total.

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 27: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Future work: Problem 1

Optimal numbers of palindromes

What is the exact maximal number of inequivalent k-abelianpalindromes a word of length n can contain?

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 28: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Future work: Problem 2

there are no infinite words such that each factor containsmaximum number of k-palindromes

abelian case: finite rich anbn

Infinite k-abelian rich word

Does there exist an infinite word w such that for some constant Ceach of its factors of length n contains at least Cn2 inequivalentk-abelian palindromes (infinite k-abelian rich word)?

there are no binary infinite abelian rich words [P.,Avgustinovich]

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes

Page 29: On k-abelian palindromes · Rich and poor words (equality) Rich words The maximal number of palindromes a word of length n can contain is n + 1. There exist in nite rich words (all

Future work: Problem 2

there are no infinite words such that each factor containsmaximum number of k-palindromes

abelian case: finite rich anbn

Infinite k-abelian rich word

Does there exist an infinite word w such that for some constant Ceach of its factors of length n contains at least Cn2 inequivalentk-abelian palindromes (infinite k-abelian rich word)?

there are no binary infinite abelian rich words [P.,Avgustinovich]

Julien Cassaigne, Juhani Karhumaki, Svetlana Puzynina On k-abelian palindromes