Enumeration Complexity of Logical Query Problems with Second-order Variables

We consider query problems defined by first order formulas of the form F(x,T) with free first order and second order variables and study the data complexity of enumerating results of such queries. By considering the number of alternations in the quantifier prefixes of formulas, we show that such query problems either admit a constant delay or a polynomial delay enumeration algorithm or are hard to enumerate. We also exhibit syntactically defined fragments inside the hard cases that still admit good enumeration algorithms and discuss the case of some restricted classes of database structures as inputs.

[1]  Guillaume Bagan Algorithmes et complexité des problèmes d'énumération pour l'évaluation de requêtes logiques. (Algorithms and complexity of enumeration problems for the evaluation of logical queries) , 2009 .

[2]  Arnaud Durand,et al.  First-order queries on structures of bounded degree are computable with constant delay , 2005, TOCL.

[3]  Steven Lindell A Normal Form for First-Order Logic over Doubly-Linked Data Structures , 2008, Int. J. Found. Comput. Sci..

[4]  Guillaume Bagan,et al.  MSO Queries on Tree Decomposable Structures Are Computable with Linear Delay , 2006, CSL.

[5]  Yann Strozecki,et al.  Enumeration complexity and matroid decomposition , 2010 .

[6]  Ronald Fagin Generalized first-order spectra, and polynomial. time recognizable sets , 1974 .

[7]  Bruno Courcelle,et al.  Linear delay enumeration and monadic second-order logic , 2009, Discret. Appl. Math..

[8]  K. V. Subrahmanyam,et al.  Descriptive Complexity of #P Functions , 1995, J. Comput. Syst. Sci..

[9]  Martha Sideri,et al.  Generating all maximal models of a Boolean expression , 2000, Inf. Process. Lett..

[10]  Arnaud Durand,et al.  On Acyclic Conjunctive Queries and Constant Delay Enumeration , 2007, CSL.

[11]  Nadia Creignou,et al.  On Generating All Solutions of Generalized Satisfiability Problems , 1997, RAIRO Theor. Informatics Appl..

[12]  Jörg Flum,et al.  Parameterized Complexity Theory , 2006, Texts in Theoretical Computer Science. An EATCS Series.

[13]  Leonid Libkin,et al.  Elements of Finite Model Theory , 2004, Texts in Theoretical Computer Science.