Solving word equations St ep an Holub Department of Algebra - - PowerPoint PPT Presentation

solving word equations
SMART_READER_LITE
LIVE PREVIEW

Solving word equations St ep an Holub Department of Algebra - - PowerPoint PPT Presentation

Solving word equations St ep an Holub Department of Algebra MFF UK, Prague Prague Gathering of Logicians, February 13, 2016 1/23 St ep an Holub Solving word equations Outline Algorithms Compactness Independent systems


slide-1
SLIDE 1

1/23

Solving word equations

ˇ Stˇ ep´ an Holub

Department of Algebra MFF UK, Prague

Prague Gathering of Logicians, February 13, 2016

ˇ Stˇ ep´ an Holub Solving word equations

slide-2
SLIDE 2

2/23

Outline

Algorithms Compactness Independent systems and their size

ˇ Stˇ ep´ an Holub Solving word equations

slide-3
SLIDE 3

2/23

Outline

Algorithms Compactness Independent systems and their size (running background question: combinatorics or algebra?)

ˇ Stˇ ep´ an Holub Solving word equations

slide-4
SLIDE 4

3/23

Decidable?

ˇ Stˇ ep´ an Holub Solving word equations

slide-5
SLIDE 5

4/23

Decidable?

ˇ Stˇ ep´ an Holub Solving word equations

slide-6
SLIDE 6

5/23

Makanin’s algorithm

  • G. S. Makanin, The problem of solvability of equations in a

free semigroup, Mat. Sb., 1977 (6-NEXPTIME ?)

ˇ Stˇ ep´ an Holub Solving word equations

slide-7
SLIDE 7

5/23

Makanin’s algorithm

  • G. S. Makanin, The problem of solvability of equations in a

free semigroup, Mat. Sb., 1977 (6-NEXPTIME ?) Joxan Jaffar, Minimal and complete word unification. J. ACM, 1990 (4-NEXPTIME, all solutions)

ˇ Stˇ ep´ an Holub Solving word equations

slide-8
SLIDE 8

5/23

Makanin’s algorithm

  • G. S. Makanin, The problem of solvability of equations in a

free semigroup, Mat. Sb., 1977 (6-NEXPTIME ?) Joxan Jaffar, Minimal and complete word unification. J. ACM, 1990 (4-NEXPTIME, all solutions) Klaus U. Schulz, Makanin’s Algorithm for Word Equations - Two Improvements and a Generalization. IWWERT 1990

ˇ Stˇ ep´ an Holub Solving word equations

slide-9
SLIDE 9

5/23

Makanin’s algorithm

  • G. S. Makanin, The problem of solvability of equations in a

free semigroup, Mat. Sb., 1977 (6-NEXPTIME ?) Joxan Jaffar, Minimal and complete word unification. J. ACM, 1990 (4-NEXPTIME, all solutions) Klaus U. Schulz, Makanin’s Algorithm for Word Equations - Two Improvements and a Generalization. IWWERT 1990 Antoni Ko´ scielski and Leszek Pacholski, Complexity of Makanins algorithm. J. ACM, 1996 (3-NEXPTIME)

ˇ Stˇ ep´ an Holub Solving word equations

slide-10
SLIDE 10

5/23

Makanin’s algorithm

  • G. S. Makanin, The problem of solvability of equations in a

free semigroup, Mat. Sb., 1977 (6-NEXPTIME ?) Joxan Jaffar, Minimal and complete word unification. J. ACM, 1990 (4-NEXPTIME, all solutions) Klaus U. Schulz, Makanin’s Algorithm for Word Equations - Two Improvements and a Generalization. IWWERT 1990 Antoni Ko´ scielski and Leszek Pacholski, Complexity of Makanins algorithm. J. ACM, 1996 (3-NEXPTIME) Claudio Guti´ errez, Satisfiability of word equations with constants is in exponential space. FOCS, 1998 (EXPSPACE)

ˇ Stˇ ep´ an Holub Solving word equations

slide-11
SLIDE 11

5/23

Makanin’s algorithm

  • G. S. Makanin, The problem of solvability of equations in a

free semigroup, Mat. Sb., 1977 (6-NEXPTIME ?) Joxan Jaffar, Minimal and complete word unification. J. ACM, 1990 (4-NEXPTIME, all solutions) Klaus U. Schulz, Makanin’s Algorithm for Word Equations - Two Improvements and a Generalization. IWWERT 1990 Antoni Ko´ scielski and Leszek Pacholski, Complexity of Makanins algorithm. J. ACM, 1996 (3-NEXPTIME) Claudio Guti´ errez, Satisfiability of word equations with constants is in exponential space. FOCS, 1998 (EXPSPACE) Volker Diekert, Makanin’s algorithm. In Algebraic Combinatorics on Words, 2002 (rational constraints)

ˇ Stˇ ep´ an Holub Solving word equations

slide-12
SLIDE 12

6/23

Some ideas : Length type

xay = zbzb

ˇ Stˇ ep´ an Holub Solving word equations

slide-13
SLIDE 13

6/23

Some ideas : Length type

xay = zbzb (|x|, |y|, |z|) = (1, 4, 2)

ˇ Stˇ ep´ an Holub Solving word equations

slide-14
SLIDE 14

6/23

Some ideas : Length type

xay = zbzb (|x|, |y|, |z|) = (1, 4, 2) x1 a y1 y2 y3 y4 z1 z2 b z1 z2 b

ˇ Stˇ ep´ an Holub Solving word equations

slide-15
SLIDE 15

6/23

Some ideas : Length type

xay = zbzb (|x|, |y|, |z|) = (1, 4, 2) x1 a y1 y2 y3 y4 z1 z2 b z1 z2 b

ˇ Stˇ ep´ an Holub Solving word equations

slide-16
SLIDE 16

6/23

Some ideas : Length type

xay = zbzb (|x|, |y|, |z|) = (1, 4, 2) x1 a y1 y2 y3 y4 z1 z2 b z1 z2 b x → a y → baab z → aa

ˇ Stˇ ep´ an Holub Solving word equations

slide-17
SLIDE 17

7/23

Some ideas : Elementary transformations

xay = zbzb

ˇ Stˇ ep´ an Holub Solving word equations

slide-18
SLIDE 18

7/23

Some ideas : Elementary transformations

xay = zbzb |x| < |z|

ˇ Stˇ ep´ an Holub Solving word equations

slide-19
SLIDE 19

7/23

Some ideas : Elementary transformations

xay = zbzb |x| < |z| z → xz

ˇ Stˇ ep´ an Holub Solving word equations

slide-20
SLIDE 20

7/23

Some ideas : Elementary transformations

xay = zbzb |x| < |z| z → xz xay = xzbxzb

ˇ Stˇ ep´ an Holub Solving word equations

slide-21
SLIDE 21

7/23

Some ideas : Elementary transformations

xay = zbzb |x| < |z| z → xz xay = xzbxzb x1 a y1 y2 y3 y4 z1 z2 b z1 z2 b → a y1 y2 y3 y4 z1 b x1 z1 b

ˇ Stˇ ep´ an Holub Solving word equations

slide-22
SLIDE 22

8/23

Bound on the exponent of periodicity

φ(u) = φ(v) = pwes

ˇ Stˇ ep´ an Holub Solving word equations

slide-23
SLIDE 23

8/23

Bound on the exponent of periodicity

φ(u) = φ(v) = pwes Makanin: double exponential

ˇ Stˇ ep´ an Holub Solving word equations

slide-24
SLIDE 24

8/23

Bound on the exponent of periodicity

φ(u) = φ(v) = pwes Makanin: double exponential Ko´ scielski and Pacholski: O(21.07d)

ˇ Stˇ ep´ an Holub Solving word equations

slide-25
SLIDE 25

9/23

Different concept of transformations: Compression

Wojciech Plandowski, Wojciech Rytter, Application of Lempel-Ziv encodings to the solution of word equations. ICALP 1998

ˇ Stˇ ep´ an Holub Solving word equations

slide-26
SLIDE 26

9/23

Different concept of transformations: Compression

Wojciech Plandowski, Wojciech Rytter, Application of Lempel-Ziv encodings to the solution of word equations. ICALP 1998 Wojciech Plandowski, Satisfiability of word equations with constants is in NEXPTIME. STOC 1999.

ˇ Stˇ ep´ an Holub Solving word equations

slide-27
SLIDE 27

9/23

Different concept of transformations: Compression

Wojciech Plandowski, Wojciech Rytter, Application of Lempel-Ziv encodings to the solution of word equations. ICALP 1998 Wojciech Plandowski, Satisfiability of word equations with constants is in NEXPTIME. STOC 1999. Wojciech Plandowski, Satisfiability of word equations with constants is in PSPACE. J. ACM 2004.

ˇ Stˇ ep´ an Holub Solving word equations

slide-28
SLIDE 28

9/23

Different concept of transformations: Compression

Wojciech Plandowski, Wojciech Rytter, Application of Lempel-Ziv encodings to the solution of word equations. ICALP 1998 Wojciech Plandowski, Satisfiability of word equations with constants is in NEXPTIME. STOC 1999. Wojciech Plandowski, Satisfiability of word equations with constants is in PSPACE. J. ACM 2004. Wojciech Plandowski, An efficient algorithm for solving word

  • equations. STOC, 2006. (Graph representing all solutions)

ˇ Stˇ ep´ an Holub Solving word equations

slide-29
SLIDE 29

10/23

Lempel - Ziv compression

aacaacabcabaaac (0,0,a) (1,1,c) (3,4,b) (3,3,a) (12,3,$)

ˇ Stˇ ep´ an Holub Solving word equations

slide-30
SLIDE 30

10/23

Lempel - Ziv compression

aacaacabcabaaac (0,0,a) (1,1,c) (3,4,b) (3,3,a) (12,3,$) xay = zbzb

ˇ Stˇ ep´ an Holub Solving word equations

slide-31
SLIDE 31

11/23

Artur Je˙ z: Recompression

Approximation of Grammar-Based Compression via

  • Recompression. CPM 2013

Artur Je˙ z, Recompression: a simple and powerful technique for word equations. STACS 2013. Recompression: Word Equations and Beyond. Developments in Language Theory 2013 The Complexity of Compressed Membership Problems for Finite Automata. Theory Comput. Syst. 2014 Approximation of grammar-based compression via

  • recompression. Theor. Comput. Sci. 2015

Faster Fully Compressed Pattern Matching by Recompression. ACM Transactions on Algorithms 2015 One-Variable Word Equations in Linear Time. Algorithmica 2016

ˇ Stˇ ep´ an Holub Solving word equations

slide-32
SLIDE 32

12/23

Artur Je˙ z: Recompression

Guess letters at the beginning and the end of variables Compress chosen pairs of letters

ˇ Stˇ ep´ an Holub Solving word equations

slide-33
SLIDE 33

12/23

Artur Je˙ z: Recompression

Guess letters at the beginning and the end of variables Compress chosen pairs of letters xay = zbzb

ˇ Stˇ ep´ an Holub Solving word equations

slide-34
SLIDE 34

12/23

Artur Je˙ z: Recompression

Guess letters at the beginning and the end of variables Compress chosen pairs of letters xay = zbzb bxbaayb = azbbazb

ˇ Stˇ ep´ an Holub Solving word equations

slide-35
SLIDE 35

12/23

Artur Je˙ z: Recompression

Guess letters at the beginning and the end of variables Compress chosen pairs of letters xay = zbzb bxbaayb = azbbazb bxbaayb = azbbazb

ˇ Stˇ ep´ an Holub Solving word equations

slide-36
SLIDE 36

12/23

Artur Je˙ z: Recompression

Guess letters at the beginning and the end of variables Compress chosen pairs of letters xay = zbzb bxbaayb = azbbazb bxbaayb = azbbazb bxcayb = azbczb

ˇ Stˇ ep´ an Holub Solving word equations

slide-37
SLIDE 37

13/23

General strategy of all algorithms

Transformation rules (non-deterministic)

boundary equations (Makanin) exponential expressions (Plandowski)

  • rdinary equations (Je˙

z)

Terminating condition based on bounds on

length of the minimal solution size of the transformed equation

ˇ Stˇ ep´ an Holub Solving word equations

slide-38
SLIDE 38

14/23

Current knowledge

exponent of periodicity: O(2cn) (tight)

ˇ Stˇ ep´ an Holub Solving word equations

slide-39
SLIDE 39

14/23

Current knowledge

exponent of periodicity: O(2cn) (tight) length of the minimal solution: N < 2q(n)·ncnv

v ˇ Stˇ ep´ an Holub Solving word equations

slide-40
SLIDE 40

14/23

Current knowledge

exponent of periodicity: O(2cn) (tight) length of the minimal solution: N < 2q(n)·ncnv

v

NTIME: O(log N poly(n))

ˇ Stˇ ep´ an Holub Solving word equations

slide-41
SLIDE 41

14/23

Current knowledge

exponent of periodicity: O(2cn) (tight) length of the minimal solution: N < 2q(n)·ncnv

v

NTIME: O(log N poly(n)) SPACE: O(n log n)

ˇ Stˇ ep´ an Holub Solving word equations

slide-42
SLIDE 42

14/23

Current knowledge

exponent of periodicity: O(2cn) (tight) length of the minimal solution: N < 2q(n)·ncnv

v

NTIME: O(log N poly(n)) SPACE: O(n log n) NP hard (e.g. easy reduction of 3SAT)

ˇ Stˇ ep´ an Holub Solving word equations

slide-43
SLIDE 43

14/23

Current knowledge

exponent of periodicity: O(2cn) (tight) length of the minimal solution: N < 2q(n)·ncnv

v

NTIME: O(log N poly(n)) SPACE: O(n log n) NP hard (e.g. easy reduction of 3SAT) NP complete ?

ˇ Stˇ ep´ an Holub Solving word equations

slide-44
SLIDE 44

15/23

Compactness property

ˇ Stˇ ep´ an Holub Solving word equations

slide-45
SLIDE 45

15/23

Compactness property

System S is equivalent to T if and only if they have the same set of solutions.

ˇ Stˇ ep´ an Holub Solving word equations

slide-46
SLIDE 46

15/23

Compactness property

System S is equivalent to T if and only if they have the same set of solutions.

Theorem (Compactness property)

Every infinite system of equations in finitely many unknowns is equivalent to a finite subsystem.

ˇ Stˇ ep´ an Holub Solving word equations

slide-47
SLIDE 47

15/23

Compactness property

System S is equivalent to T if and only if they have the same set of solutions.

Theorem (Compactness property)

Every infinite system of equations in finitely many unknowns is equivalent to a finite subsystem. Easily equivalent (1980) to “Eherenfeucht’s conjecture” (beginning of 1970s - Nowa Ksi¸ ega Szkocka, problem 105)

Theorem

Every language over a finite alphabet has a finite test set (testing equality of morphisms on the language). Proved independently by Albert & Lawrence (1985); and Guba (1986).

ˇ Stˇ ep´ an Holub Solving word equations

slide-48
SLIDE 48

15/23

Compactness property

System S is equivalent to T if and only if they have the same set of solutions.

Theorem (Compactness property)

Every infinite system of equations in finitely many unknowns is equivalent to a finite subsystem. Easily equivalent (1980) to “Eherenfeucht’s conjecture” (beginning of 1970s - Nowa Ksi¸ ega Szkocka, problem 105)

Theorem

Every language over a finite alphabet has a finite test set (testing equality of morphisms on the language). Proved independently by Albert & Lawrence (1985); and Guba (1986). Core of both proofs: Hilbert’s basis theorem.

ˇ Stˇ ep´ an Holub Solving word equations

slide-49
SLIDE 49

16/23

Compactness

a = 1 1 1

  • ,

b = 1 1 1

  • SL(N0) = a, b ∼

= {a, b}∗ c = 1 2 1

  • ,

d = 1 2 1

  • c, d ∼

= F2

ˇ Stˇ ep´ an Holub Solving word equations

slide-50
SLIDE 50

16/23

Compactness

a = 1 1 1

  • ,

b = 1 1 1

  • SL(N0) = a, b ∼

= {a, b}∗ c = 1 2 1

  • ,

d = 1 2 1

  • c, d ∼

= F2 xj → mj = a(j) b(j) c(j) d(j)

  • Ξ∗

M SL(N0) ψ ϕ ˜ ϕ

ˇ Stˇ ep´ an Holub Solving word equations

slide-51
SLIDE 51

17/23

What is the size of the equivalent subsystem?

The system is independent if it has no equivalent subsystem.

ˇ Stˇ ep´ an Holub Solving word equations

slide-52
SLIDE 52

17/23

What is the size of the equivalent subsystem?

The system is independent if it has no equivalent subsystem. Big open question Is the size of an independent system of equations over n unknowns bounded?

ˇ Stˇ ep´ an Holub Solving word equations

slide-53
SLIDE 53

17/23

What is the size of the equivalent subsystem?

The system is independent if it has no equivalent subsystem.

Big open question

Is the size of an independent system of equations over n unknowns bounded?

ˇ Stˇ ep´ an Holub Solving word equations

slide-54
SLIDE 54

17/23

What is the size of the equivalent subsystem?

The system is independent if it has no equivalent subsystem.

Big open question

Is the size of an independent system of equations over n unknowns bounded? Open already for three unknows (trivial for two).

ˇ Stˇ ep´ an Holub Solving word equations

slide-55
SLIDE 55

17/23

What is the size of the equivalent subsystem?

The system is independent if it has no equivalent subsystem.

Big open question

Is the size of an independent system of equations over n unknowns bounded? Open already for three unknows (trivial for two). Unbounded in free groups (three-generated free group does not satisfy Ascending Chain Condition for normal subgroups). Lower bound Ω(n4) (explicit system by Karhum¨ aki and Plandowski, 1996).

ˇ Stˇ ep´ an Holub Solving word equations

slide-56
SLIDE 56

18/23

Bounds on the size of independent systems for three unknowns

ˇ Stˇ ep´ an Holub Solving word equations

slide-57
SLIDE 57

18/23

Bounds on the size of independent systems for three unknowns

Let E1, . . . , Em, m ≥ 2, be an independent system of equations in three unknowns having a nonperiodic solution. Aleksi Saarela, Systems of word equations, polynomials and linear algebra: A new approach, European J. Combin. 2015 m ≤ (|E1|x + |E1|y)2 + 1 for some pair x, y of unknowns.

ˇ Stˇ ep´ an Holub Solving word equations

slide-58
SLIDE 58

18/23

Bounds on the size of independent systems for three unknowns

Let E1, . . . , Em, m ≥ 2, be an independent system of equations in three unknowns having a nonperiodic solution. Aleksi Saarela, Systems of word equations, polynomials and linear algebra: A new approach, European J. Combin. 2015 m ≤ (|E1|x + |E1|y)2 + 1 for some pair x, y of unknowns. ˇ

  • S. H., Jan ˇ

Zemliˇ cka, Algebraic properties of word equations, Journal of Algebra 2015

1 m ≤ 2(|E1|x + |E1|y) + 1 for any pair x, y of unknowns, and 2 m ≤ |E1| + |E2| + 1. ˇ Stˇ ep´ an Holub Solving word equations

slide-59
SLIDE 59

19/23

Representation by polynomials

Let the alphabet A be a subset of N, and let unknowns be Ξ = {x, y, z}. P : A∗ → N[α] a0a1a2 · · · an → a0 + a1α + a2α2 + · · · + anαn

ˇ Stˇ ep´ an Holub Solving word equations

slide-60
SLIDE 60

19/23

Representation by polynomials

Let the alphabet A be a subset of N, and let unknowns be Ξ = {x, y, z}. P : A∗ → N[α] a0a1a2 · · · an → a0 + a1α + a2α2 + · · · + anαn For a morphism h : Ξ∗ → A∗, let P(h) = (P (h(x)) , P (h(y)) , P (h(z)))

ˇ Stˇ ep´ an Holub Solving word equations

slide-61
SLIDE 61

20/23

Representation by polynomials

S : E × {x, y, z} → Z[X, Y , Z] E : (xyyz, zyyx) SE,x = 1 − ZY 2 SE,y = X + XY − Z − ZY SE,z = XY 2 − 1 SE = (SE,x, SE,y, SE,z) Length type L = (Lx, Ly, Lz) ∈ N3. Define SE(L) by substitution X → αLx Y → αLy Z → αLz

ˇ Stˇ ep´ an Holub Solving word equations

slide-62
SLIDE 62

21/23

Representation by polynomials

h with L(h) = {|h(x)|, |h(y)|, |h(z)|} is a solution of E if and only if SE(L(h)) · P(h) = 0 .

ˇ Stˇ ep´ an Holub Solving word equations

slide-63
SLIDE 63

22/23

Representation by polynomials: Example

E1 :(xyz, zyx) E2 :(xyyz, zyyx) SE1 = (1 − ZY , X − Z, XY − 1) SE2 = (1 − ZY 2, X + XY − Z − ZY , XY 2 − 1) If a common non-periodic solution has a length type L, then SE1(L) and SE2(L) are linearly dependent. This means that the determinant Y (X − Z) must vanish under the

  • substitution. Therefore |x| = |z|.

ˇ Stˇ ep´ an Holub Solving word equations

slide-64
SLIDE 64

23/23

Prize problem

I will pay 200 e to the first person who gives the answer (with a proof) to the following question: Is there a positive integer n ≥ 2 and words u1, u2, . . . , un such that both equalities

  • (u1u2 · · · un)2 = u2

1u2 2 · · · u2 n,

(u1u2 · · · un)3 = u3

1u3 2 · · · u3 n,

hold and the words ui, i = 1, . . . , n, do not pairwise commute (that is, uiuj = ujui for at least one pair of indices i, j ∈ {1, 2, . . . , n} )?

ˇ Stˇ ep´ an Holub Solving word equations