We consider properties of the solution set of a word equation with one unknown. We prove that the solution set of a word equation possessing infinite number of solutions is of the form (pq)* p where pq is primitive. Next, we prove that a word equation with at most four occurrences of the unknown possesses either infinitely many solutions or at most two solutions. We show that there are equations with at most four occurrences of the unknown possessing exactly two solutions. Finally, we prove that a word equation with at most 2k occurrences of the unknown possesses either infinitely many solutions or at most 8logk + O(1) solutions. Hence, if we consider a class ${\cal E}_k$ of equations with at most 2k occurrences of the unknown, then each equation in this class possesses either infinitely many solutions or a constant number of solutions. Our considerations allow to construct the first truly linear time algorithm for computing the solution set of an equation in a nontrivial class of equations.
[1]
M. Lothaire.
Combinatorics on words: Bibliography
,
1997
.
[2]
M. Lothaire.
Algebraic Combinatorics on Words
,
2002
.
[3]
M. Lothaire.
Applied Combinatorics on Words (Encyclopedia of Mathematics and its Applications)
,
2005
.
[4]
Pavel Goralcik,et al.
Efficient Solving of the Word Equations in One Variable
,
1994,
MFCS.
[5]
M. Lothaire,et al.
Algebraic Combinatorics on Words: Index of Notation
,
2002
.
[6]
Paliath Narendran,et al.
Unification Theory
,
2001,
Handbook of Automated Reasoning.
[7]
Franz Baader,et al.
Unification theory
,
1986,
Decis. Support Syst..
[8]
Arcot Rajasekar.
Applications in Constraint Logic Programming with Strings
,
1994,
PPCP.
[9]
Robert Dabrowski,et al.
On Word Equations in One Variable
,
2002,
Algorithmica.