Test sets of commutative languages t epn Holub Department of - - PowerPoint PPT Presentation

test sets of commutative languages
SMART_READER_LITE
LIVE PREVIEW

Test sets of commutative languages t epn Holub Department of - - PowerPoint PPT Presentation

Test sets of commutative languages t epn Holub Department of Algebra Charles University in Prague JM06, 29th August, Rennes t epn Holub Test sets of commutative languages Commutative languages Commutative closure of a word u


slide-1
SLIDE 1

Test sets of commutative languages

Štˇ epán Holub

Department of Algebra Charles University in Prague

JM’06, 29th August, Rennes

Štˇ epán Holub Test sets of commutative languages

slide-2
SLIDE 2

Commutative languages

Commutative closure of a word u = ℓ1 . . . ℓn is the language c(u) = {ℓσ(1) . . . ℓσ(n) | σ ∈ Sn}. Commutative closure of a language is c(L) =

  • u∈L

c(u). Language L is said to be commutative iff L = c(L).

Štˇ epán Holub Test sets of commutative languages

slide-3
SLIDE 3

Test sets

Two morphisms agree on a language L iff g(u) = h(u) for any u ∈ L. Write g ≡L h A subset T of the language L is called its test set iff for any two morphisms g, h g ≡L h ⇔ g ≡T h.

Štˇ epán Holub Test sets of commutative languages

slide-4
SLIDE 4

Parikh vectors

Parikh vector of a word u = ak1

1 . . . akn n is the n-tuple (k1, . . . , kn). ◮ A commutative language is given by the set of its Parikh

vectors

◮ A basis of the vector space over Q spanned by the Parikh

vectors of a language is called Parikh basis of the language

◮ If two morphisms agree lengthwise on a Parikh basis, they

agree lengthwise on the whole language.

Štˇ epán Holub Test sets of commutative languages

slide-5
SLIDE 5

Parikh vectors

Parikh vector of a word u = ak1

1 . . . akn n is the n-tuple (k1, . . . , kn). ◮ A commutative language is given by the set of its Parikh

vectors

◮ A basis of the vector space over Q spanned by the Parikh

vectors of a language is called Parikh basis of the language

◮ If two morphisms agree lengthwise on a Parikh basis, they

agree lengthwise on the whole language.

Štˇ epán Holub Test sets of commutative languages

slide-6
SLIDE 6

Known bounds

Theorem (Hakala, Kortelainen 1997) Any commutative language over n letters has a test of cardinality at most 3n2. There is a commutative language over n letters, the smallest test set of which has cardinality at least 1

9n2.

Theorem (Holub, Kortelainen 2001) The commutative language c(ak1

1 · · · akn n ) has a test of

cardinality at most 10n. Each test set of the commutative language c(a1 · · · an) has cardinality at least n − 1.

Štˇ epán Holub Test sets of commutative languages

slide-7
SLIDE 7

Known bounds

Theorem (Hakala, Kortelainen 1997) Any commutative language over n letters has a test of cardinality at most 3n2. There is a commutative language over n letters, the smallest test set of which has cardinality at least 1

9n2.

Theorem (Holub, Kortelainen 2001) The commutative language c(ak1

1 · · · akn n ) has a test of

cardinality at most 10n. Each test set of the commutative language c(a1 · · · an) has cardinality at least n − 1.

Štˇ epán Holub Test sets of commutative languages

slide-8
SLIDE 8

Known bounds

Theorem (Hakala, Kortelainen 1997) Any commutative language over n letters has a test of cardinality at most 3n2. There is a commutative language over n letters, the smallest test set of which has cardinality at least 1

9n2.

Theorem (Holub, Kortelainen 2001) The commutative language c(ak1

1 · · · akn n ) has a test of

cardinality at most 10n. Each test set of the commutative language c(a1 · · · an) has cardinality at least n − 1.

Štˇ epán Holub Test sets of commutative languages

slide-9
SLIDE 9

Known bounds

Theorem (Hakala, Kortelainen 1997) Any commutative language over n letters has a test of cardinality at most 3n2. There is a commutative language over n letters, the smallest test set of which has cardinality at least 1

9n2.

Theorem (Holub, Kortelainen 2001) The commutative language c(ak1

1 · · · akn n ) has a test of

cardinality at most 10n. Each test set of the commutative language c(a1 · · · an) has cardinality at least n − 1.

Štˇ epán Holub Test sets of commutative languages

slide-10
SLIDE 10

The Main Question

Commutative language can be

◮ simple: it has a Parikh test set of size O(n) ◮ complicated: it has only Parikh test sets of size Ω(n2)

What is the criterion?

Štˇ epán Holub Test sets of commutative languages

slide-11
SLIDE 11

The Main Question

Commutative language can be

◮ simple: it has a Parikh test set of size O(n) ◮ complicated: it has only Parikh test sets of size Ω(n2)

What is the criterion?

Štˇ epán Holub Test sets of commutative languages

slide-12
SLIDE 12

Parikh test set

A set T ⊂ L is a Parikh test set of L iff c(T) is a test set of c(L). Two sources of the size of a test sets:

◮ Large Parikh test sets ◮ Many words with the same Parikh vector

Štˇ epán Holub Test sets of commutative languages

slide-13
SLIDE 13

Parikh test set

A set T ⊂ L is a Parikh test set of L iff c(T) is a test set of c(L). Two sources of the size of a test sets:

◮ Large Parikh test sets ◮ Many words with the same Parikh vector

Štˇ epán Holub Test sets of commutative languages

slide-14
SLIDE 14

Parikh test set

A set T ⊂ L is a Parikh test set of L iff c(T) is a test set of c(L). Two sources of the size of a test sets:

◮ Large Parikh test sets ◮ Many words with the same Parikh vector

Štˇ epán Holub Test sets of commutative languages

slide-15
SLIDE 15

Parikh test sets and classical test sets

A set T ⊂ L is a Parikh test set of L iff c(T) is a test set of c(L).

◮ Parikh test sets give a lower bound to cardinality of test

sets

◮ If T is a Parikh test set of L, then L has a test set of

cardinality 10 T , where T =

  • t∈T

|t|.

Štˇ epán Holub Test sets of commutative languages

slide-16
SLIDE 16

A complicated language

◮ X = {a1, . . . , an, b1, . . . , bn, c1, . . . , cn}, |X| = 3n. ◮ L = c({aibjci | i, j = 1, . . . , n}), |L| = (6)n2

T ⊂ L, |T| < n2 ⇒ c(anbncn) ∩ T = ∅ g(an) = a2 g(bn) = b h(cn) = a2 g(an) = a g(bn) = b g(cn) = a h(aj) = a h(bj) = a g(cj) = a h(aj) = a h(bj) = a h(cj) = a

Štˇ epán Holub Test sets of commutative languages

slide-17
SLIDE 17

A complicated language

◮ X = {a1, . . . , an, b1, . . . , bn, c1, . . . , cn}, |X| = 3n. ◮ L = c({aibjci | i, j = 1, . . . , n}), |L| = (6)n2

T ⊂ L, |T| < n2 ⇒ c(anbncn) ∩ T = ∅ g(an) = a2 g(bn) = b h(cn) = a2 g(an) = a g(bn) = b g(cn) = a h(aj) = a h(bj) = a g(cj) = a h(aj) = a h(bj) = a h(cj) = a

Štˇ epán Holub Test sets of commutative languages

slide-18
SLIDE 18

A complicated language

◮ X = {a1, . . . , an, b1, . . . , bn, c1, . . . , cn}, |X| = 3n. ◮ L = c({aibjci | i, j = 1, . . . , n}), |L| = (6)n2

T ⊂ L, |T| < n2 ⇒ c(anbncn) ∩ T = ∅ g(an) = a2 g(bn) = b h(cn) = a2 g(an) = a g(bn) = b g(cn) = a h(aj) = a h(bj) = a g(cj) = a h(aj) = a h(bj) = a h(cj) = a

Štˇ epán Holub Test sets of commutative languages

slide-19
SLIDE 19

A complicated language

L = c({aibjci | i, j = 1, . . . , n}); c(anbncn) ∩ T = ∅ g(an) = a2 g(bn) = b g(cn) = a h(an) = a h(bn) = b h(cn) = a2 g(aj) = a g(bj) = a g(cj) = a h(aj) = a h(bj) = a h(cj) = a

a =

n

b =

n

c =

n

a =

j

b =

j

c =

j

Many Parikh vectors??

Štˇ epán Holub Test sets of commutative languages

slide-20
SLIDE 20

A complicated language

L = c({aibjci | i, j = 1, . . . , n}); c(anbncn) ∩ T = ∅

a =

n

b =

n

c =

n

a =

j

b =

j

c =

j

Many Parikh vectors??

Štˇ epán Holub Test sets of commutative languages

slide-21
SLIDE 21

A simple language with many Parikh vectors

◮ X1 = {a1, . . . , an, b1, . . . , bn}, |X| = 2n. ◮ L1 = c({aibj | i, j = 1, . . . , n}), |L| = 2n2

T = {anbi | i = 1, . . . , n}

  • {aibn | i = 1, . . . , n}

is a test set of L with |T| = 2n − 1, and the Parikh size n.

Štˇ epán Holub Test sets of commutative languages

slide-22
SLIDE 22

A simple language with many Parikh vectors

◮ X1 = {a1, . . . , an, b1, . . . , bn}, |X| = 2n. ◮ L1 = c({aibj | i, j = 1, . . . , n}), |L| = 2n2

T = {anbi | i = 1, . . . , n}

  • {aibn | i = 1, . . . , n}

is a test set of L with |T| = 2n − 1, and the Parikh size n.

Štˇ epán Holub Test sets of commutative languages

slide-23
SLIDE 23

Coincidence graph

Coincidence graph of L:

◮ G(L)=(X,E)

◮ X is alphabet ◮ (a, b) ∈ E

iff a and b occur together in a word.

◮ Undirected ◮ Loops are allowed

Štˇ epán Holub Test sets of commutative languages

slide-24
SLIDE 24

Difference support

Example: Let ai ∈ L for each letter ai. Then the coincidence graph is irrelevant. We say that D ⊂ X is a difference support of L if there exist morphisms g and h, which are lenght equivavelnt on L, and |g(a)| = |h(a)| iff a ∈ D.

Štˇ epán Holub Test sets of commutative languages

slide-25
SLIDE 25

Difference support

Example: Let ai ∈ L for each letter ai. Then the coincidence graph is irrelevant. We say that D ⊂ X is a difference support of L if there exist morphisms g and h, which are lenght equivavelnt on L, and |g(a)| = |h(a)| iff a ∈ D.

Štˇ epán Holub Test sets of commutative languages

slide-26
SLIDE 26

Difference support

Example: Let ai ∈ L for each letter ai. Then the coincidence graph is irrelevant. We say that D ⊂ X is a difference support of L if there exist morphisms g and h, which are lenght equivavelnt on L, and |g(a)| = |h(a)| iff a ∈ D.

Štˇ epán Holub Test sets of commutative languages

slide-27
SLIDE 27

Difference support

Example: Let ai ∈ L for each letter ai. Then the coincidence graph is irrelevant. We say that D ⊂ X is a difference support of L if there exist morphisms g and h, which are lenght equivavelnt on L, and |g(a)| = |h(a)| iff a ∈ D. In the example the only difference support is the empty set.

Štˇ epán Holub Test sets of commutative languages

slide-28
SLIDE 28

Difference support

Example: Let ai ∈ L for each letter ai. Then the coincidence graph is irrelevant. We say that D ⊂ X is a difference support of L if there exist morphisms g and h, which are lenght equivavelnt on L, and |g(a)| = |h(a)| iff a ∈ D. The difference support is given by the basis of Parikh vectors. B · d = 0 d = (d1, . . . , dn) D = {ai | di = 0}

Štˇ epán Holub Test sets of commutative languages

slide-29
SLIDE 29

The main claim

Theorem: If G(L), G(T), and Parikh basis of L are effectively given, then it is decidable whether T is a Parikh test set of L. Note: Difference supports can be effectivelly found.

Štˇ epán Holub Test sets of commutative languages

slide-30
SLIDE 30

Parikh test set criterion

We say that a and b are D-connected, D ⊂ X, iff there exists a path from a to b, which do not contain two consecutive vertices from X \ D. Theorem: T ⊂ L is a Parikh test set iff T contains a Parikh basis of L for each difference support D the graph G(T) satisfies:

◮ a and b are D-connected in G(L) ⇒ a and b are

D-connected in G(T)

◮ For a letter a ∈ D there is a path from a to a of odd length

in G(L) ⇒ there is such a path in G(T)

Štˇ epán Holub Test sets of commutative languages

slide-31
SLIDE 31

Parikh test set criterion

We say that a and b are D-connected, D ⊂ X, iff there exists a path from a to b, which do not contain two consecutive vertices from X \ D. Theorem: T ⊂ L is a Parikh test set iff T contains a Parikh basis of L for each difference support D the graph G(T) satisfies:

◮ a and b are D-connected in G(L) ⇒ a and b are

D-connected in G(T)

◮ For a letter a ∈ D there is a path from a to a of odd length

in G(L) ⇒ there is such a path in G(T)

Štˇ epán Holub Test sets of commutative languages

slide-32
SLIDE 32

Parikh test set criterion

We say that a and b are D-connected, D ⊂ X, iff there exists a path from a to b, which do not contain two consecutive vertices from X \ D. Theorem: T ⊂ L is a Parikh test set iff T contains a Parikh basis of L for each difference support D the graph G(T) satisfies:

◮ a and b are D-connected in G(L) ⇒ a and b are

D-connected in G(T)

◮ For a letter a ∈ D there is a path from a to a of odd length

in G(L) ⇒ there is such a path in G(T)

Štˇ epán Holub Test sets of commutative languages

slide-33
SLIDE 33

Parikh test set criterion

We say that a and b are D-connected, D ⊂ X, iff there exists a path from a to b, which do not contain two consecutive vertices from X \ D. Theorem: T ⊂ L is a Parikh test set iff T contains a Parikh basis of L for each difference support D the graph G(T) satisfies:

◮ a and b are D-connected in G(L) ⇒ a and b are

D-connected in G(T)

◮ For a letter a ∈ D there is a path from a to a of odd length

in G(L) ⇒ there is such a path in G(T)

Štˇ epán Holub Test sets of commutative languages

slide-34
SLIDE 34

Parikh test set criterion

We say that a and b are D-connected, D ⊂ X, iff there exists a path from a to b, which do not contain two consecutive vertices from X \ D. Theorem: T ⊂ L is a Parikh test set iff T contains a Parikh basis of L for each difference support D the graph G(T) satisfies:

◮ a and b are D-connected in G(L) ⇒ a and b are

D-connected in G(T)

◮ For a letter a ∈ D there is a path from a to a of odd length

in G(L) ⇒ there is such a path in G(T)

Štˇ epán Holub Test sets of commutative languages

slide-35
SLIDE 35

Examples

b

1

b

2

b

3

b

4

a2 a1 a3 a4 a

1

c1 b

1

a

2

c2 b

2

a

3

c3 b

3

a

4

c4 b

4

Štˇ epán Holub Test sets of commutative languages

slide-36
SLIDE 36

Examples

b

1

b

2

b

3

b

4

a2 a1 a3 a4 a

1

c1 b

1

a

2

c2 b

2

a

3

c3 b

3

a

4

c4 b

4

Štˇ epán Holub Test sets of commutative languages

slide-37
SLIDE 37

Examples

b

1

b

2

b

3

b

4

a2 a1 a3 a4 a

1

c1 b

1

a

2

c2 b

2

a

3

c3 b

3

a

4

c4 b

4

Štˇ epán Holub Test sets of commutative languages

slide-38
SLIDE 38

Examples

b

1

b

2

b

3

b

4

a2 a1 a3 a4 a

1

c1 b

1

a

2

c2 b

2

a

3

c3 b

3

a

4

c4 b

4

Štˇ epán Holub Test sets of commutative languages

slide-39
SLIDE 39

Why cycles of odd length are important

X={a,b,c,d} g(a) = rsr g(b) = s g(c) = rsr g(d) = s h(a) = r h(b) = srs h(c) = r h(d) = srs g and h agree on c{ab, bc, cd, da} but not on c{ab, bc, ca}

Štˇ epán Holub Test sets of commutative languages