,
C can be chosen as the product of A and B. The automaton B can be constructed in time time O(2 |V| ) which is constant since V is a parameter of the certainty problem rather than being part of its input Then ? is a certain answer of Q(A) on G iff Inst(G * ?)?Struct) iff the empty ?-assignment is a certain answer of Q(C) on G . Based on this fact, the PTime reduction Cert, ) is obvious. Also, ? is a certain non-answer of Q(A) on G iff Inst(G * ?) ? L(A) = ? iff Inst(G ) ? L(A) = ? iff the empty ?-assignment is a certain non-answer of Q(A). This yields the PTime reduction showing Cert ¬ans ?,V (G, A) ? p Cert ¬ans ? V ,? (G, A) ,
, Corollary 1 (Non-linear patterns) For all B ? {ans, ¬ans}, G ? {Pat, cPat} and A ? {Dfa, Nfa}, the problem Cert B ?,V (G, A) is PSpace-complete
Since Incl ? (G, A) and Incl ? V (G, A) are PSpace-complete by Theorem 2, the problem Cert ans ?,V (G, A) is also PSpace-complete. On the other hand, ) by Lemma 5 and Proposition 5. Then by Theorem 2, coMatch ? (G, A) and coMatch ? V (G, A) are PSpace-complete (since PSpace is closed by complementation ), and thus Cert ¬ans ?,V (G, A) is PSpace-complete. This completes the proof. Our next objective is to study the complexity of the four certainty problems but restricted to compressed linear string patterns ,
, For all A ? {Dfa, Nfa}, the certainty problems Cert ¬ans ?,V (cLinPat, A) (1) and Cert ans ?,V (cLinPat, Dfa) (2) can be solved in PTime. The problem Cert ans ?,V (G, Nfa) is PSpace-complete for all G ? {LinPat, Corollary, vol.2, issue.3
The statements are proved respectively ,
A) ? p coMatch ? V (cLinPat, A) ? PTime, so Cert ¬ans ?,V (cLinPat, A) ? PTime, ) follows Theorem 3 and the reductions Cert ans ?,V (cLinPat, Dfa) ? p Cert ans ? V ,? (cLinPat, Dfa) ? p Incl ? V (cLinPat, Nfa) ? PTime. (3) For all G ? {LinPat, cLinPat}, Incl ? (G, Nfa) = p Cert ans ?,? (G, Nfa) ? ,
Since for all G ? {LinPat, Nfa) are PSpacecomplete by Theorem 3, we have that Cert ans ?,V (G, Nfa) is PSpace-complete ,
Foundations of Modern Query Languages for Graph Databases, ACM Computing Surveys, vol.50, issue.5, 1610. ,
DOI : 10.1007/978-1-4419-6045-0_6
Finding patterns common to a set of strings, Journal of Computer and System Sciences, vol.21, issue.1, pp.46-62, 1980. ,
DOI : 10.1016/0022-0000(80)90041-0
On The Complexity Of Matrix Group Problems I, 25th Annual Symposium onFoundations of Computer Science, 1984., pp.229-240, 1984. ,
DOI : 10.1109/SFCS.1984.715919
Stream firewalling of xml constraints, Proceedings of the 2008 ACM SIGMOD international conference on Management of data , SIGMOD '08, pp.487-498, 2008. ,
DOI : 10.1145/1376616.1376667
Random Access to Grammar-Compressed Strings and Trees, SIAM Journal on Computing, vol.44, issue.3, pp.513-539, 2015. ,
DOI : 10.1137/130936889
, Incremental XPath evaluation. ACM Trans. Database Syst, vol.35, issue.4, p.29, 2010.
The complexity of intersecting finite automata having few final states. computational complexity, pp.775-814, 2016. ,
Approximating Certain Query Answering on Hyperstreams, 2018. ,
Certain answers for XML queries, Proceedings of the twenty-ninth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems of data, PODS '10, pp.191-202, 2010. ,
DOI : 10.1145/1807085.1807112
Early nested word automata for XPath query answering on XML streams, Theoretical Computer Science, vol.578, pp.100-125, 2015. ,
DOI : 10.1016/j.tcs.2015.01.017
URL : https://hal.archives-ouvertes.fr/hal-00676178
Context Matching for Compressed Terms, 2008 23rd Annual IEEE Symposium on Logic in Computer Science, pp.93-102, 2008. ,
DOI : 10.1109/LICS.2008.17
Streamable Fragments of Forward XPath, International Conference on Implementation and Application of Automata, pp.3-15, 2011. ,
DOI : 10.1145/1458082.1458305
URL : https://hal.archives-ouvertes.fr/inria-00442250
Earliest??Query??Answering for Deterministic Nested Word Automata, 17th International Symposium on Fundamentals of Computer Theory, pp.121-132, 2009. ,
DOI : 10.1016/j.ipl.2008.08.002
URL : https://hal.archives-ouvertes.fr/inria-00390236
Queries on XML streams with bounded delay and concurrency. Information and Computation, pp.409-442, 2011. ,
URL : https://hal.archives-ouvertes.fr/inria-00491495
Processing XML streams with deterministic automata and stream indexes, ACM Transactions on Database Systems, vol.29, issue.4, pp.752-788, 2004. ,
DOI : 10.1145/1042046.1042051
A streaming XSLT processor In Balisage: The Markup Conference 2010, Balisage Series on Markup Technologies, vol.5, 2010. ,
Lower bounds for natural proof systems, 18th Annual Symposium on Foundations of Computer Science (sfcs 1977), pp.254-266, 1977. ,
DOI : 10.1109/SFCS.1977.16
Visibly pushdown automata for streaming XML, Proceedings of the 16th international conference on World Wide Web , WWW '07, pp.1053-1062, 2007. ,
DOI : 10.1145/1242572.1242714
Model Checking of Safety Properties, Formal Methods in System Design, vol.19, issue.3, pp.291-314, 2001. ,
DOI : 10.1007/3-540-48683-6_17
A functional language for hyperstreaming XSLT, 2013. ,
URL : https://hal.archives-ouvertes.fr/hal-00806343
Transforming XML Streams with References, String Processing and Information Retrieval -22nd International Symposium, SPIRE 2015 Proceedings, volume 9309 of Lecture Notes in Computer Science, pp.33-45, 2015. ,
DOI : 10.1007/978-3-319-23826-5_4
High-performance complex event processing over XML streams, Proceedings of the 2012 international conference on Management of Data, SIGMOD '12, pp.253-264, 2012. ,
DOI : 10.1145/2213836.2213866
SPEX: Streamed and Progressive Evaluation of XPath, IEEE Transactions on Knowledge and Data Engineering, vol.19, issue.7, pp.934-949, 2007. ,
DOI : 10.1109/TKDE.2007.1063
The complexity of the morphism equivalence problem for contextfree languages, 1995. ,
Combined Static and Dynamic Analysis for Effective Buffer Minimization in Streaming XQuery Evaluation, 2007 IEEE 23rd International Conference on Data Engineering, pp.236-245, 2007. ,
DOI : 10.1109/ICDE.2007.367869
URL : http://www.cs.cornell.edu/%7Ekoch/www.infosys.uni-sb.de/publications/INFOSYS-TR-2006-13.pdf
Finite Automata, Formal Logic, and Circuit Complexity, Progress in Computer Science and Applied Series. Birkhäuser, 1994. ,
DOI : 10.1007/978-1-4612-0289-9