We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Containment of UC2RPQ: The Hard and Easy Cases

00:00

Formale Metadaten

Titel
Containment of UC2RPQ: The Hard and Easy Cases
Serientitel
Anzahl der Teile
25
Autor
Lizenz
CC-Namensnennung - keine Bearbeitung 3.0 Deutschland:
Sie dürfen das Werk in unveränderter Form zu jedem legalen Zweck nutzen, vervielfältigen, verbreiten und öffentlich zugänglich machen, sofern Sie den Namen des Autors/Rechteinhabers in der von ihm festgelegten Weise nennen.
Identifikatoren
Herausgeber
Erscheinungsjahr
Sprache

Inhaltliche Metadaten

Fachgebiet
Genre
Abstract
We study the containment problem for UC2RPQ, that is, two-way Regular Path Queries, closed under conjunction, projection and union. We show a dichotomy property between PSpace-c and ExpSpace-c based on a property on the underlying graph of queries. We show that for any class C of graphs, the containment problem for queries whose underlying graph is in C is in PSpace if and only if C has bounded bridgewidth. Bridgewidth is a graph measure we introduce to this end, defined as the maximum size of a minimal edge separator of a graph.
Data Encryption StandardFinite-Elemente-MethodeRegulärer GraphVirtualisierungDatenbankMultigraphGraphAbfrageComputeranimation
RahmenproblemGraphFinitismusZeichenvorratDesign by ContractMaßerweiterungGebäude <Mathematik>Beobachtungsstudiep-BlockZellularer AutomatRegulärer GraphFormale SpracheComputeranimation
BildschirmmaskeRekursive FunktionMaßerweiterungGebäude <Mathematik>Graphp-BlockOrdinalzahlAbfrageComputeranimation
KnotenpunktRelativitätstheorieReguläre SpracheBildschirmmaskeComputeranimation
Regulärer GraphMultigraphReguläre SpracheSchnittmengeComputeranimation
ResultanteDivergente ReiheGraphVorzeichen <Mathematik>DatenbankComputeranimation
LeistungsbewertungGraphFormale SemantikAbfrageIRIS-TMultigraphGerichteter GraphComputeranimation
Elektronische PublikationGerichteter GraphBildschirmmaskeWort <Informatik>Folge <Mathematik>MultigraphFormale Sprache
Generator <Informatik>
Funktion <Mathematik>KnotenmengeSchnittmengeAbfrageTonnelierter RaumComputeranimation
ResultanteBeobachtungsstudieDatenbankGraphComputeranimation
Elektronische PublikationComputeranimation
SchlussregelFermatsche VermutungNP-hartes ProblemAbfrageVariableResultanteQuadratzahlComputeranimation
SchlussregelBoolesche AlgebraShape <Informatik>VollständigkeitSchnittmengeFormale SpracheAggregatzustandGraphfärbungComputeranimation
SchlussregelElektronische PublikationAbfrageSchnittmengeFormale SpracheXML
Elektronische PublikationZahlenbereichBildgebendes VerfahrenMultigraphAbfrageParallele SchnittstelleKategorie <Mathematik>Computeranimation
SchlussregelEinflussgrößeShape <Informatik>Klasse <Mathematik>EreignishorizontGRASS <Programm>AggregatzustandProgrammierungMinkowski-MetrikGraphfärbungPhysikalische TheorieBridge <Kommunikationstechnik>MagnettrommelspeicherEndliche ModelltheorieCliquenweiteVollständigkeitAbfrageTheoremComputeranimation
TheoremTopologieGraphProzess <Informatik>
Elektronische PublikationRahmenproblemBridge <Kommunikationstechnik>Luenberger-BeobachterVollständigkeit
Elektronische PublikationKlasse <Mathematik>EinflussgrößeMultigraphVollständigkeitCliquenweite
Bridge <Kommunikationstechnik>CliquenweiteEinflussgrößeElement <Gruppentheorie>Klasse <Mathematik>GraphWeb-SeiteGRASS <Programm>Computeranimation
Lie-GruppeMultigraphElektronische PublikationTopologieUmsetzung <Informatik>CliquenweiteBridge <Kommunikationstechnik>Klasse <Mathematik>StichprobenumfangCASE <Informatik>ErneuerungstheorieComputeranimation
SchlussregelHill-DifferentialgleichungGraphBridge <Kommunikationstechnik>Parallele SchnittstelleCliquenweite
SchlussregelZahlenbereichWhiteboardLokales MinimumGRASS <Programm>Bridge <Kommunikationstechnik>MultigraphCliquenweiteSchnittmengeGraphEinfach zusammenhängender RaumComputeranimation
Elektronische PublikationGradientGRASS <Programm>Shape <Informatik>ResultanteMultigraphMinkowski-MetrikKlasse <Mathematik>DichotomieComputeranimation
GradientElektronische PublikationSchlussregelMultigraphTopologieParallele SchnittstelleBridge <Kommunikationstechnik>InstantiierungZahlenbereichFamilie <Mathematik>CliquenweiteComputeranimation
SchlussregelPhysikalische TheorieInstantiierungResultanteAggregatzustandFolge <Mathematik>EinsMinkowski-MetrikInverseOrdnungsreduktionMultigraphBridge <Kommunikationstechnik>CliquenweiteHelmholtz-ZerlegungComputeranimation
Lokales MinimumIkosaederSchlussregelAbfrageTheoremInverseComputeranimation
SchlussregelE-FunktionTheoremComputeranimation
Elektronische PublikationGRASS <Programm>Prädiktor-Korrektor-VerfahrenProzess <Informatik>Formale SpracheKlasse <Mathematik>Web-SeiteTermRegulärer Ausdruck <Textverarbeitung>TabelleSchnittmengeShape <Informatik>Reguläre SpracheAbfrageComputeranimation
SchlussregelMachsches PrinzipWeb-SeiteRegulärer Ausdruck <Textverarbeitung>AbfrageBeobachtungsstudieMAPComputeranimation
VerschlingungComputeranimation
Transkript: Englisch(automatisch erzeugt)
Hello, and welcome to the virtual session on query containment. I'm Diego Figueira, and this is a work on containment for regular path queries on graph databases. Now for our purposes here, a graph database is just an edge labeled finite graph,
like this one, where A is a finite alphabet of labels. So the language we study is conjunctive regular path queries, or CRPQs. This is a basic building block for querying graph structured data,
and it is basically the extension of conjunctive queries with some simple form of recursion. CRPQs are just like conjunctive queries, where instead of having a conjunction of atoms over a binary relation, we have a conjunction of things of the form L1 to LN,
where L1 to LN are regular languages over the set of edge labels, which we usually write as arrows, like this. For example, this is a CRPQ, which can also be seen in a graph form, like this.
The semantics for the evaluation in a graph database, like this one, is such that a given assignment for the variables, like this one, satisfies this query
if for every edge of the query there exists a directed path from the node assigned to the source to the node assigned to the target, whose sequence of labels forms a word from the edge language. For example, this is a satisfying assignment,
because for this edge, one can find a directed path, which is this one here, whose labels are in this language, and for this edge, one can find this green directed path,
which goes all the way here, which is in this language. So it is a satisfying assignment. And this satisfying assignment witnesses that the pair of vertices B1, B2 here
are in the output of the query when evaluated on this graph, and we write it like this. It is a pair, because remember that the variable set is existentially quantified.
Okay. The containment problem, the problem we study here in this work, is the following. Given two CRPQs, Q1 and Q2, whether for every graph database G, every result of Q1 is also a result of Q2.
The containment problem for CRPQs is in general X-based complete, and this is nothing new. It's been known for more than 20 years now. And this hardness result holds even for queries of a very simple shape.
Like this one here, that is only two variables which are quantified, and the left query is just an atom.
Then this means that given this set of multigraphs P, basically all possible parallel edges, the fragment of CRPQs restricted to the shapes of P, which we call here CRPQP, is still X-based hard, X-based complete.
To be clear, by CRPQP, we mean the set of all queries whose underlying multigraph, so if we remove the languages and the arrows, it is in P.
Note that the important property here is that the number of parallel edges on the right-hand side query is unbounded. Otherwise, the problem would be in PSPACE.
The question we pose here is the following. Which shapes of queries ensure a PSPACE containment problem? More concretely, for a class of multigraph C, can we tell whether the containment problem is in PSPACE?
Can we tell whether it is X-based complete? Can it be complete for some in-between classes? And this is the question we answer, and the main theorem is this one. For every class of multigraphs, the containment problem is either PSPACE complete or X-based complete.
There is no middle point. And this depends on whether the bridge width of the class is bounded or unbounded. So now you may wonder, what is bridge width? It is a graph measure, just like tree width, but different,
that we introduce to this end, so that the theorem holds, basically. But it is a rather intuitive measure, you will see. Observe that we will need to have that P has unbounded bridge width,
since we said the containment problem for P is X-based complete. And note that, however, P has bounded tree width, so this measure will not quite be tree width.
In fact, it follows easily that every class containing infinitely many graphs from P has an X-based complete containment problem. And this is even true if it contains them as minors.
So, well, basically, this can be taken as the definition of unbounded bridge width. So a class has unbounded bridge width if and only if it contains infinitely many elements from P as minors.
And the concrete measure associated to this idea is that a graph has bridge width K if it contains this graph with K edges, but not this one with K plus one edges as a minor. So, for example, a tree then has bridge width one,
a large grid has large bridge width, and then any class of large tree width has large bridge width, but the converse is false. And, in fact, tree width is always smaller or equal to bridge width.
So something of tree width K has bridge width at least K. For example, here, this one has tree width two, but it has bridge width four, because it contains the four parallel edges graph as minor.
If you don't like my definition, I have others. Here is another equivalent definition. Define a bridge to be a minimal set of edges whose removal increases the number of connected components. Then the bridge width of a graph is the maximum size of its bridges.
And this dichotomy result between P space and X space had already been shown for the class of tree-like graphs. Actually, in the literature, they call it acyclic, but I find it confusing. So these are defined as graphs with this shape.
Basically, I will not go into detail, but that is trees with parallel edges and self-loops. And restricted to this class, a subclass has bounded bridge width if and only if there is a bound on the number of parallel edges.
So it's a particular instance of our theory. Our result can then be seen as a generalization of these results that appears in this paper to all graphs. And I will actually not talk about the P space upper bound
of the main theorem, which is the main technical contribution. You can read the paper. It's a long and tedious sequence of reductions which follows closely the ones of this paper here, with the additional insights of some decomposition lemmas
for bounded bridge width graphs. Now, I'd like to finish with two remarks. First, the upper bound holds even if we have arbitrary CRPQs in the left-hand query. And second, the same theorem holds
if we also allow inverse navigation in queries. I will not define it now because I don't have the time. And if we also have unions, this is known as UC2RPQ. So here, we can replace in the theorem CRPQs
by UC2RPQ or by anything in between, like C2RPQ or UCRPQ. And it will still hold. And finally, a piece of advertisement.
Contrary to conjunctive queries, defining fragments in terms of the shape of queries is not the only way to go. One could alternatively define for any class of regular languages the set of all CRPQs
which only use languages from the class. And we have studied also this possibility with a lot of co-authors, as you can see, in a yet-unpublished paper that you can find on our archive or on my web page
where the fragments of regular expressions are motivated by practically relevant queries as shown in some recent studies. So this is another take in studying the containment problems for CRPQs. And that is all.
I don't know if I'm already 12 minutes. I forgot. Okay. Thank you for listening or watching if you're still there.