The Complexity of Compressed Membership Problems for Finite Automata

被引:10
作者
Jez, Artur [1 ,2 ]
机构
[1] Max Planck Inst Informat, D-66123 Saarbrucken, Germany
[2] Univ Wroclaw, Inst Comp Sci, PL-50383 Wroclaw, Poland
关键词
Compressed membership problem; SLP; Finite automata; Algorithms for compressed data; WORD; EQUIVALENCE; EQUATIONS;
D O I
10.1007/s00224-013-9443-6
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In this paper, a compressed membership problem for finite automata, both deterministic (DFAs) and non-deterministic (NFAs), with compressed transition labels is studied. The compression is represented by straight-line programs (SLPs), i.e. context-free grammars generating exactly one string. A novel technique of dealing with SLPs is employed: the SLPs are recompressed, so that substrings of the input word are encoded in SLPs labelling the transitions of the NFA (DFA) in the same way, as in the SLP representing the input text. To this end, the SLPs are locally decompressed and then recompressed in a uniform way. Furthermore, in order to reflect the recompression in the NFA, we need to modify it only a little, in particular its size stays polynomial in the input size. Using this technique it is shown that the compressed membership for NFA with compressed labels is in NP, thus confirming the conjecture of Plandowski and Rytter (Jewels Are Forever, pp. 262-272, Springer, Berlin, 1999) and extending the partial result of Lohrey and Mathissen (in CSR, LNCS, vol. 6651, pp. 275-288, Springer, Berlin, 2011); as this problem is known to be NP-hard (in Plandowski and Rytter, Jewels Are Forever, pp. 262-272, Springer, Berlin, 1999), we settle its exact computational complexity. Moreover, the same technique applied to the compressed membership for DFA with compressed labels yields that this problem is in P, and this problem is known to be P-hard (in Markey and Schnoebelen, Inf. Process. Lett. 90(1):3-6, 2004; Beaudry et al., SIAM J. Comput. 26(1):138-152, 1997).
引用
收藏
页码:685 / 718
页数:34
相关论文
共 40 条
[1]  
Alstrup S, 2000, PROCEEDINGS OF THE ELEVENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P819
[2]  
AMIR A, 1994, PROCEEDINGS OF THE FIFTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P705
[3]   Finite monoids: From word to circuit evaluation [J].
Beaudry, M ;
McKenzie, P ;
Peladeau, P ;
Therien, D .
SIAM JOURNAL ON COMPUTING, 1997, 26 (01) :138-152
[4]  
Bille P, 2011, PROCEEDINGS OF THE TWENTY-SECOND ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P373
[5]   The smallest grammar problem [J].
Charikar, M ;
Lehman, E ;
Liu, D ;
Panigrahy, R ;
Prabhakaran, M ;
Sahai, A ;
Shelat, A .
IEEE TRANSACTIONS ON INFORMATION THEORY, 2005, 51 (07) :2554-2576
[6]   Fast equivalence-checking for normed context-free processes [J].
Czerwinski, Wojciech ;
Lasota, Slawomir .
IARCS ANNUAL CONFERENCE ON FOUNDATIONS OF SOFTWARE TECHNOLOGY AND THEORETICAL COMPUTER SCIENCE (FSTTCS 2010), 2010, 8 :260-271
[7]  
Farach M., 1995, Proceedings of the Twenty-Seventh Annual ACM Symposium on the Theory of Computing, P703, DOI 10.1145/225058.225288
[8]  
Ferragina P., 1999, Proceedings of the Thirty-First Annual ACM Symposium on Theory of Computing, P483, DOI 10.1145/301250.301378
[9]  
Gasieniec L., 1996, Algorithm Theory - SWAT '96. 5th Scandinavian Workshop on Algorithm Theory. Proceedings, P392
[10]   Almost optimal fully LZW-compressed pattern matching [J].
Gasieniec, L ;
Rytter, W .
DCC '99 - DATA COMPRESSION CONFERENCE, PROCEEDINGS, 1999, :316-325