Recompression: A Simple and Powerful Technique for Word Equations

被引:49
作者
Jez, Artur [1 ]
机构
[1] Univ Wroclaw, Inst Comp Sci, Ul Joliot Curie 15, PL-50383 Wroclaw, Poland
关键词
Algorithms; Theory; Exponent of periodicity; semantic unification; string unification; word equations; APPROXIMATION; SATISFIABILITY; COMPLEXITY; CONSTANTS;
D O I
10.1145/2743014
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
In this article, we present an application of a simple technique of local recompression, previously developed by the author in the context algorithms for compressed strings [Jez 2014a, 2015b, 2015a], to word equations. The technique is based on local modification of variables (replacing X by aX or Xa) and iterative replacement of pairs of letters occurring in the equation by a "fresh" letter, which can be seen as a bottom-up compression of the solution of the given word equation, or, to be more specific, building a Straight-Line Programme for the solution of the word equation. Using this technique, we give new, independent, and self-contained proofs of many known results for word equations. To be more specific, the presented (nondeterministic) algorithm runs in O(nlog n) space and in time polynomial in n and log N, where n is the size of the input equation and N the size of the length-minimal solution of the word equation. Furthermore, for O(1) variables, the bound on the space consumption is in fact linear, that is, O(m), where m is the size of the space used by the input. This yields that for each k the set of satisfiable word equations with k variables is context sensitive. The presented algorithm can be easily generalised to a generator of all solutions of the given word equation (without increasing the space usage). Furthermore, a further analysis of the algorithm yields an independent proof of doubly exponential upper bound on the size of the length-minimal solution. The presented algorithm does not use exponential bound on the exponent of periodicity. Conversely, the analysis of the algorithm yields an independent proof of the exponential bound on exponent of periodicity.
引用
收藏
页码:1 / 51
页数:51
相关论文
共 30 条
[1]  
Alstrup S, 2000, PROCEEDINGS OF THE ELEVENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P819
[2]  
[Anonymous], 1978, P AM MATH SOC, DOI DOI 10.1090/S0002-9939-1978-0500555-0
[3]  
Dabrowski R, 2004, LECT NOTES COMPUT SC, V3142, P408
[4]   On Word Equations in One Variable [J].
Dabrowski, Robert ;
Plandowski, Wojciech .
ALGORITHMICA, 2011, 60 (04) :819-828
[5]  
Diekert Volker, 2014, Computer Science - Theory and Applications. 9th International Computer Science Symposium in Russia, CSR 2014. Proceedings: LNCS 8476, P1, DOI 10.1007/978-3-319-06686-8_1
[6]   Satisfiability of word equations with constants is in exponential space [J].
Gutiérrez, C .
39TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS, 1998, :112-119
[7]   Two-variable word equations [J].
Ilie, L ;
Plandowski, W .
RAIRO-INFORMATIQUE THEORIQUE ET APPLICATIONS-THEORETICAL INFORMATICS AND APPLICATIONS, 2000, 34 (06) :467-501
[8]   MINIMAL AND COMPLETE WORD UNIFICATION [J].
JAFFAR, J .
JOURNAL OF THE ACM, 1990, 37 (01) :47-85
[9]   A really simple approximation of smallest grammar [J].
Jez, Artur .
THEORETICAL COMPUTER SCIENCE, 2016, 616 :141-150
[10]   One-Variable Word Equations in Linear Time [J].
Jez, Artur .
ALGORITHMICA, 2016, 74 (01) :1-48