-
Diversity of Answers to Conjunctive Queries
Authors:
Timo Camillo Merkl,
Reinhard Pichler,
Sebastian Skritek
Abstract:
Enumeration problems aim at outputting, without repetition, the set of solutions to a given problem instance. However, outputting the entire solution set may be prohibitively expensive if it is too big. In this case, outputting a small, sufficiently diverse subset of the solutions would be preferable. This leads to the Diverse-version of the original enumeration problem, where the goal is to achie…
▽ More
Enumeration problems aim at outputting, without repetition, the set of solutions to a given problem instance. However, outputting the entire solution set may be prohibitively expensive if it is too big. In this case, outputting a small, sufficiently diverse subset of the solutions would be preferable. This leads to the Diverse-version of the original enumeration problem, where the goal is to achieve a certain level d of diversity by selecting k solutions. In this paper, we look at the Diverse-version of the query answering problem for Conjunctive Queries and extensions thereof. That is, we study the problem if it is possible to achieve a certain level d of diversity by selecting k answers to the given query and, in the positive case, to actually compute such k answers.
△ Less
Submitted 31 October, 2023; v1 submitted 20 January, 2023;
originally announced January 2023.
-
On tractable query evaluation for SPARQL
Authors:
Stefan Mengel,
Sebastian Skritek
Abstract:
Despite much work within the last decade on foundational properties of SPARQL - the standard query language for RDF data - rather little is known about the exact limits of tractability for this language. In particular, this is the case for SPARQL queries that contain the OPTIONAL-operator, even though it is one of the most intensively studied features of SPARQL. The aim of our work is to provide a…
▽ More
Despite much work within the last decade on foundational properties of SPARQL - the standard query language for RDF data - rather little is known about the exact limits of tractability for this language. In particular, this is the case for SPARQL queries that contain the OPTIONAL-operator, even though it is one of the most intensively studied features of SPARQL. The aim of our work is to provide a more thorough picture of tractable classes of SPARQL queries.
In general, SPARQL query evaluation is PSPACE-complete in combined complexity, and it remains PSPACE-hard already for queries containing only the OPTIONAL-operator. To amend this situation, research has focused on "well-designed SPARQL queries" and their recent generalization "weakly well-designed SPARQL queries". For these two fragments the evaluation problem is coNP-complete in the absence of projection and SigmaP2-complete otherwise. Moreover, they have been shown to contain most SPARQL queries asked in practical settings.
In this paper, we study tractable classes of weakly well-designed queries in parameterized complexity considering the equivalent formulation as pattern trees. We give a complete characterization of the tractable classes in the case without projection. Moreover, we show a characterization of all tractable classes of simple well-designed pattern trees in the presence of projection.
△ Less
Submitted 24 December, 2017;
originally announced December 2017.
-
A Complexity Theory for Hard Enumeration Problems
Authors:
Nadia Creignou,
Markus Kröll,
Reinhard Pichler,
Sebastian Skritek,
Heribert Vollmer
Abstract:
Complexity theory provides a wealth of complexity classes for analyzing the complexity of decision and counting problems. Despite the practical relevance of enumeration problems, the tools provided by complexity theory for this important class of problems are very limited. In particular, complexity classes analogous to the polynomial hierarchy and an appropriate notion of problem reduction are mis…
▽ More
Complexity theory provides a wealth of complexity classes for analyzing the complexity of decision and counting problems. Despite the practical relevance of enumeration problems, the tools provided by complexity theory for this important class of problems are very limited. In particular, complexity classes analogous to the polynomial hierarchy and an appropriate notion of problem reduction are missing. In this work, we lay the foundations for a complexity theory of hard enumeration problems by proposing a hierarchy of complexity classes and by investigating notions of reductions for enumeration problems.
△ Less
Submitted 24 October, 2017; v1 submitted 18 October, 2016;
originally announced October 2016.