111 : 2 A Circuit-Based Approach to Efficient Enumeration

We study the problem of enumerating the satisfying valuations of a circuit while bounding the delay, i.e., the time needed to compute each successive valuation. We focus on the class of structured d-DNNF circuits originally introduced in knowledge compilation, a sub-area of artificial intelligence. We propose an algorithm for these circuits that enumerates valuations with linear preprocessing and delay linear in the Hamming weight of each valuation. Moreover, valuations of constant Hamming weight can be enumerated with linear preprocessing and constant delay. Our results yield a framework for efficient enumeration that applies to all problems whose solutions can be compiled to structured d-DNNFs. In particular, we use it to recapture classical results in database theory, for factorized database representations and for MSO evaluation. This gives an independent proof of constant-delay enumeration for MSO formulae with first-order free variables on bounded-treewidth structures. 1998 ACM Subject Classification F.2.2 Nonnumerical Algorithms and Problems

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

[2]  Pierre Marquis,et al.  A Knowledge Compilation Map , 2002, J. Artif. Intell. Res..

[3]  Neil Immerman,et al.  On Uniformity within NC¹ , 1990, J. Comput. Syst. Sci..

[4]  Luc Segoufin,et al.  First-order queries on classes of structures with bounded expansion , 2018, Log. Methods Comput. Sci..

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

[6]  Ran Raz,et al.  A Lower Bound for the Size of Syntactically Multilinear Arithmetic Circuits , 2007, 48th Annual IEEE Symposium on Foundations of Computer Science (FOCS'07).

[7]  Arnaud Durand,et al.  Efficient Enumeration for Conjunctive Queries over X-underbar Structures , 2010, CSL.

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

[9]  Nicole Schweikardt,et al.  Enumerating answers to first-order queries over databases of low degree , 2014, PODS.

[10]  David Thomas,et al.  The Art in Computer Programming , 2001 .

[11]  Pierre Senellart,et al.  Tractable Lineages on Treelike Instances: Limits and Extensions , 2016, PODS.

[12]  Jakub Závodný,et al.  Size Bounds for Factorised Representations of Query Results , 2015, TODS.

[13]  Adnan Darwiche,et al.  DPLL with a Trace: From SAT to Knowledge Compilation , 2005, IJCAI.

[14]  Frédéric Olive,et al.  Computing the jth solution of a first-order query , 2008, RAIRO Theor. Informatics Appl..

[15]  Ingo Wegener,et al.  Branching Programs and Binary Decision Diagrams , 1987 .

[16]  Antoine Amarilli,et al.  A Circuit-Based Approach to Efficient Enumeration , 2017, ICALP.

[17]  Luc Segoufin A glimpse on constant delay enumeration (Invited Talk) , 2014, STACS.

[18]  Adnan Darwiche,et al.  On the Tractable Counting of Theory Models and its Application to Truth Maintenance and Belief Revision , 2001, J. Appl. Non Class. Logics.

[19]  Wim Martens,et al.  MSO queries on trees: enumerating answers under updates , 2014, CSL-LICS.

[20]  James W. Thatcher,et al.  Generalized finite automata theory with an application to a decision problem of second-order logic , 1968, Mathematical systems theory.

[21]  Adnan Darwiche,et al.  New Compilation Languages Based on Structured Decomposability , 2008, AAAI.

[22]  Umut Oztok,et al.  A Top-Down Compiler for Sentential Decision Diagrams , 2015, IJCAI.

[23]  Pierre Senellart,et al.  Provenance Circuits for Trees and Treelike Instances , 2015, ICALP.

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

[25]  Wojciech Kazana,et al.  Query evaluation with constant delay , 2013 .

[26]  Luc Segoufin,et al.  Enumeration of monadic second-order queries on trees , 2013, TOCL.