The Complexity of the Shapley Value for Regular Path Queries

12/15/2022
by   Majd Khalil, et al.
0

A path query extracts vertex tuples from a labeled graph, based on the words that are formed by the paths connecting the vertices. We study the computational complexity of measuring the contribution of edges and vertices to an answer to a path query, focusing on the class of conjunctive regular path queries. To measure this contribution, we adopt the traditional Shapley value from cooperative game theory. This value has been recently proposed and studied in the context of relational database queries and has uses in a plethora of other domains. We first study the contribution of edges and show that the exact Shapley value is almost always hard to compute. Specifically, it is #P-hard to calculate the contribution of an edge whenever at least one (non-redundant) conjunct allows for a word of length three or more. In the case of regular path queries (i.e., no conjunction), the problem is tractable if the query has only words of length at most two; hence, this property fully characterizes the tractability of the problem. On the other hand, if we allow for an approximation error, then it is straightforward to obtain an efficient scheme (FPRAS) for an additive approximation. Yet, a multiplicative approximation is harder to obtain. We establish that in the case of conjunctive regular path queries, a multiplicative approximation of the Shapley value of an edge can be computed in polynomial time if and only if all query atoms are finite languages (assuming non-redundancy and conventional complexity limitations). We also study the analogous situation where we wish to determine the contribution of a vertex, rather than an edge, and establish complexity results of similar nature.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/29/2019

The Impact of Negation on the Complexity of the Shapley Value in Conjunctive Queries

The Shapley value is a conventional and well-studied function for determ...
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
03/01/2019

A Trichotomy for Regular Trail Queries

Regular path queries (RPQs) are an essential component of graph query la...
research
08/08/2022

Exact Learning of Multitrees and Almost-Trees Using Path Queries

Given a directed graph, G=(V,E), a path query, path(u,v), returns whethe...
research
04/18/2019

The Shapley Value of Tuples in Query Answering

We investigate the application of the Shapley value to quantifying the c...
research
02/14/2018

Efficient Exact Paths For Dyck and semi-Dyck Labeled Path Reachability

The exact path length problem is to determine if there is a path of a gi...
research
10/13/2018

Approximating Pairwise Correlations in the Ising Model

In the Ising model, we consider the problem of estimating the covariance...

Please sign up or login with your details

Forgot password? Click here to reset