Skip to main content
QUICK REVIEW

[Paper Review] Boundedness of Conjunctive Regular Path Queries

Pablo Barceló, Diego Figueira|arXiv (Cornell University)|Apr 1, 2019
semigroups and automata theoryComputer Science21 references7 citations
TL;DR

This paper establishes the boundedness problem for unions of conjunctive regular path queries with inverses (UC2RPQs) as ExpSpace-complete, showing equivalence to union of conjunctive queries (UCQs). It proves that bounded UC2RPQs can be rewritten as UCQs of at most triple-exponential size, and this bound is optimal. The results extend to acyclic UC2RPQs of bounded thickness (PSpace-complete) and strongly connected UCRPQs (Π₂^P-complete), using novel extensions of distance automata with alternation and two-wayness.

ABSTRACT

We study the boundedness problem for unions of conjunctive regular path queries with inverses (UC2RPQs). This is the problem of, given a UC2RPQ, checking whether it is equivalent to a union of conjunctive queries (UCQ). We show the problem to be ExpSpace-complete, thus coinciding with the complexity of containment for UC2RPQs. As a corollary, when a UC2RPQ is bounded, it is equivalent to a UCQ of at most triple-exponential size, and in fact we show that this bound is optimal. We also study better behaved classes of UC2RPQs, namely acyclic UC2RPQs of bounded thickness, and strongly connected UCRPQs, whose boundedness problem are, respectively, PSpace-complete and $Π^p_2$-complete. Most upper bounds exploit results on limitedness for distance automata, in particular extending the model with alternation and two-wayness, which may be of independent interest.

Motivation & Objective

  • To determine the computational complexity of the boundedness problem for unions of conjunctive regular path queries with inverses (UC2RPQs).
  • To establish whether a UC2RPQ is equivalent to a union of conjunctive queries (UCQ), a key optimization task in database query processing.
  • To analyze boundedness for restricted classes of UC2RPQs, including acyclic UC2RPQs of bounded thickness and strongly connected UCRPQs.
  • To develop and apply extensions of distance automata with alternation and two-wayness to prove upper bounds.
  • To provide tight complexity bounds and optimal size estimates for UCQ rewritings of bounded UC2RPQs.

Proposed method

  • Reduces the boundedness problem for UC2RPQs to the limitedness problem for cost automata over trees, leveraging known decidability results.
  • Introduces a two-way, alternating extension of distance automata to model path queries and capture boundedness via uniform cost bounds.
  • Uses homomorphism-based reductions and expansion techniques to relate query expansions to boundedness conditions.
  • Applies logical and automata-theoretic constructions to prove upper bounds, including a triple-exponential size upper bound for UCQ rewritings.
  • Employs reductions from known hard problems (e.g., Π₂^P-complete problem on cliques) to prove lower bounds for restricted classes.
  • Leverages the structure of strongly connected components and cycle analysis to derive complexity results for special UC2RPQ subclasses.

Experimental results

Research questions

  • RQ1What is the computational complexity of checking whether a UC2RPQ is bounded, i.e., equivalent to a UCQ?
  • RQ2Can bounded UC2RPQs be rewritten as UCQs of finite, and optimally bounded, size?
  • RQ3How does the boundedness problem behave for restricted classes of UC2RPQs, such as acyclic or strongly connected queries?
  • RQ4Can the limitedness problem for cost automata be extended with alternation and two-wayness to capture boundedness in recursive query languages?
  • RQ5What is the precise complexity of boundedness for acyclic UC2RPQs of bounded thickness and for strongly connected UCRPQs?

Key findings

  • The boundedness problem for UC2RPQs is ExpSpace-complete, matching the complexity of containment for UC2RPQs.
  • Every bounded UC2RPQ is equivalent to a UCQ of at most triple-exponential size, and this bound is optimal.
  • For acyclic UC2RPQs of bounded thickness, the boundedness problem is PSpace-complete.
  • For strongly connected UCRPQs, the boundedness problem is Π₂^P-complete.
  • The proof techniques extend distance automata with alternation and two-wayness, which may be of independent interest in automata theory.
  • A key technical contribution is the use of homomorphism-based expansion arguments to relate query expansions to boundedness, particularly in strongly connected components.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.