2023conference-paper/exploiting-semantic-treewidth-for-graph-queries-evaluation

Exploiting Semantic Treewidth for Graph Queries Evaluation

Conjunctive two-way regular path queries (C2RPQs) are a common abstraction of the core of query languages for graph databases, much like conjunctive queries (CQs) in the relational case.As in the case of CQs, their evaluation is NP-complete.Also, similarly to the CQ case, existing work on efficient evaluation showed that bounded semantic treewidth (TW) is a sufficient condition for fixed-parameter tractable (fpt) evaluation.This has been achieved by providing witnesses for bounded semantic TW, i.e., equivalent queries of bounded syntactic TW.In subsequent steps, a witness of TW up to twice the semantic TW of the query has been constructed, followed more recently by a witness of TW equal to the semantic TW of the query.Both witnesses can be exploited to obtain fpt evaluation algorithms, the latter giving better data complexity due to the optimal treewidth.However, while the size of the suboptimal-TW witness is exponential in the size of the query, the size of the optimal-TW witness is doubly exponential, which leads to an evaluation algorithm doubly exponential in the size of the query.We show that the additional blow-up in combined complexity can be avoided by exploiting the connection between the two witnesses.We devise an evaluation algorithm that fully exploits the equivalent witness of minimal TW without actually computing it, and runs in time singly exponential in the size of the query.

Related projects

No projects linked.

Attachments

No attachments yet.