Fine-Grained Complexity of Regular Path Queries

01/06/2021
by   Katrin Casel, et al.
0

A regular path query (RPQ) is a regular expression q that returns all node pairs (u, v) from a graph database that are connected by an arbitrary path labelled with a word from L(q). The obvious algorithmic approach to RPQ-evaluation (called PG-approach), i.e., constructing the product graph between an NFA for q and the graph database, is appealing due to its simplicity and also leads to efficient algorithms. However, it is unclear whether the PG-approach is optimal. We address this question by thoroughly investigating which upper complexity bounds can be achieved by the PG-approach, and we complement these with conditional lower bounds (in the sense of the fine-grained complexity framework). A special focus is put on enumeration and delay bounds, as well as the data complexity perspective. A main insight is that we can achieve optimal (or near optimal) algorithms with the PG-approach, but the delay for enumeration is rather high (linear in the database). We explore three successful approaches towards enumeration with sub-linear delay: super-linear preprocessing, approximations of the solution sets, and restricted classes of RPQs.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/12/2023

Complexity of conjunctive regular path query homomorphisms

A graph database is a digraph whose arcs are labeled with symbols from a...
research
06/28/2023

Fine-grained reductions around CFL-reachability

In this paper we study the fine-grained complexity of the CFL reachabili...
research
06/10/2022

Conjunctive queries with self-joins, towards a fine-grained complexity analysis

The complexity of evaluating conjunctive queries without self-joins is w...
research
03/09/2020

Containment of Simple Regular Path Queries

Testing containment of queries is a fundamental reasoning task in knowle...
research
04/27/2023

The Fine-Grained Complexity of Boolean Conjunctive Queries and Sum-Product Problems

We study the fine-grained complexity of evaluating Boolean Conjunctive Q...
research
12/19/2019

Conjunctive Regular Path Queries with String Variables

We introduce the class CXRPQ of conjunctive xregex path queries, which a...
research
02/18/2019

Achieving Throughput via Fine-Grained Path Planning in Small World DTNs

We explore the benefits of using fine-grained statistics in small world ...

Please sign up or login with your details

Forgot password? Click here to reset