Approximation and Semantic Tree-width of Conjunctive Regular Path Queries

12/03/2022
by   Diego Figueira, et al.
0

We show that the problem of whether a query is equivalent to a query of tree-width k is decidable, for the class of Unions of Conjunctive Regular Path Queries with two-way navigation (UC2RPQs). A previous result by Barceló, Romero, and Vardi has shown decidability for the case k=1, and here we show that decidability in fact holds for any arbitrary k>1. The algorithm is in 2ExpSpace, but for the restricted but practically relevant case where all regular expressions of the query are of the form a^* or (a_1 + … + a_n) we show that the complexity of the problem drops to Π_2^p. We also investigate the related problem of approximating a UC2RPQ by queries of small tree-width. We exhibit an algorithm which, for any fixed number k, builds the maximal under-approximation of tree-width k of a UC2RPQ. The maximal under-approximation of tree-width k of a query q is a query q' of tree-width k which is contained in q in a maximal and unique way, that is, such that for every query q” of tree-width k, if q” is contained in q then q” is also contained in q'.

READ FULL TEXT
research
04/20/2023

PDL on Steroids: on Expressive Extensions of PDL with Intersection and Converse

We introduce CPDL+, a family of expressive logics rooted in Propositiona...
research
02/05/2018

Can One Escape Red Chains? Regular Path Queries Determinacy is Undecidable

For a given set of queries (which are expressions in some query language...
research
01/06/2023

On the Width of the Regular n-Simplex

Consider the regular n-simplex Δ_n - it is formed by the convex-hull of ...
research
08/14/2018

Evaluating Datalog via Tree Automata and Cycluits

We investigate parameterizations of both database instances and queries ...
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
12/06/2021

A Proof of the Simplex Mean Width Conjecture

The mean width of a convex body is the average distance between parallel...
research
12/27/2022

FPT algoritms providing constant ratio approximation of hypertree width parameters for hypergraphs of bounded rank

We propose an algorithm whose input are parameters k and r and a hypergr...

Please sign up or login with your details

Forgot password? Click here to reset