One Algorithm to Evaluate Them All: Unified Linear Algebra Based Approach to Evaluate Both Regular and Context-Free Path Queries

03/26/2021
by   Ekaterina Shemetova, et al.
0

The Kronecker product-based algorithm for context-free path querying (CFPQ) was proposed by Orachev et al. (2020). We reduce this algorithm to operations over Boolean matrices and extend it with the mechanism to extract all paths of interest. We also prove O(n^3/logn) time complexity of the proposed algorithm, where n is a number of vertices of the input graph. Thus, we provide the alternative way to construct a slightly subcubic algorithm for CFPQ which is based on linear algebra and incremental transitive closure (a classic graph-theoretic problem), as opposed to the algorithm with the same complexity proposed by Chaudhuri (2008). Our evaluation shows that our algorithm is a good candidate to be the universal algorithm for both regular and context-free path querying.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/07/2020

An Algorithm for Context-Free Path Queries over Graph Databases

RDF (Resource Description Framework) is a standard language to represent...
research
08/05/2022

Jumping Evaluation of Nested Regular Path Queries

Nested regular path queries are used for querying graph databases and RD...
research
09/03/2018

Typed Linear Algebra for Efficient Analytical Querying

This paper uses typed linear algebra (LA) to represent data and perform ...
research
07/27/2023

Evaluating Regular Path Queries on Compressed Adjacency Matrices

Regular Path Queries (RPQs), which are essentially regular expressions t...
research
11/12/2021

Regular Path Query Evaluation Sharing a Reduced Transitive Closure Based on Graph Reduction

Regular path queries (RPQs) find pairs of vertices of paths satisfying g...
research
10/31/2018

A Concurrent Unbounded Wait-Free Graph

In this paper, we propose a concurrent non-blocking unbounded directed g...
research
06/19/2020

Graphs with Multiple Sources per Vertex

Several attempts have been made at constructing Abstract Meaning Represe...

Please sign up or login with your details

Forgot password? Click here to reset