English

Ranked Enumeration for MSO on Trees via Knowledge Compilation

Databases 2024-01-23 v2 Data Structures and Algorithms Logic in Computer Science

Abstract

We study the problem of enumerating the satisfying assignments for circuit classes from knowledge compilation, where assignments are ranked in a specific order. In particular, we show how this problem can be used to efficiently perform ranked enumeration of the answers to MSO queries over trees, with the order being given by a ranking function satisfying a subset-monotonicity property. Assuming that the number of variables is constant, we show that we can enumerate the satisfying assignments in ranked order for so-called multivalued circuits that are smooth, decomposable, and in negation normal form (smooth multivalued DNNF). There is no preprocessing and the enumeration delay is linear in the size of the circuit times the number of values, plus a logarithmic term in the number of assignments produced so far. If we further assume that the circuit is deterministic (smooth multivalued d-DNNF), we can achieve linear-time preprocessing in the circuit, and the delay only features the logarithmic term.

Keywords

Cite

@article{arxiv.2310.00731,
  title  = {Ranked Enumeration for MSO on Trees via Knowledge Compilation},
  author = {Antoine Amarilli and Pierre Bourhis and Florent Capelli and Mikaël Monet},
  journal= {arXiv preprint arXiv:2310.00731},
  year   = {2024}
}

Comments

26 pages; this is the authors version of the corresponding ICDT'24 article

R2 v1 2026-06-28T12:37:37.751Z