Evaluating Datalog via Tree Automata and Cycluits

08/14/2018
by   Antoine Amarilli, et al.
0

We investigate parameterizations of both database instances and queries that make query evaluation fixed-parameter tractable in combined complexity. We show that clique-frontier-guarded Datalog with stratified negation (CFG-Datalog) enjoys bilinear-time evaluation on structures of bounded treewidth for programs of bounded rule size. Such programs capture in particular conjunctive queries with simplicial decompositions of bounded width, guarded negation fragment queries of bounded CQ-rank, or two-way regular path queries. Our result is shown by translating to alternating two-way automata, whose semantics is defined via cyclic provenance circuits (cycluits) that can be tractably evaluated.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/28/1998

Hypertree Decompositions and Tractable Queries

Several important decision problems on conjunctive queries (CQs) are NP-...
research
03/23/2021

Approximately Counting Answers to Conjunctive Queries with Disequalities and Negations

We study the complexity of approximating the number of answers to a smal...
research
02/13/2018

First-order queries on classes of structures with bounded expansion

We consider the evaluation of first-order queries over classes of databa...
research
04/01/2019

Boundedness of Conjunctive Regular Path Queries

We study the boundedness problem for unions of conjunctive regular path ...
research
12/03/2022

Approximation and Semantic Tree-width of Conjunctive Regular Path Queries

We show that the problem of whether a query is equivalent to a query of ...
research
11/18/2020

First-Order Rewritability of Frontier-Guarded Ontology-Mediated Queries

We focus on ontology-mediated queries (OMQs) based on (frontier-)guarded...
research
01/27/2021

Characterising Fixed Parameter Tractability of Query Evaluation over Guarded TGDs

We study the parameterized complexity of evaluating Ontology Mediated Qu...

Please sign up or login with your details

Forgot password? Click here to reset