English

Boundedness of Conjunctive Regular Path Queries

Databases 2019-04-02 v1 Discrete Mathematics Formal Languages and Automata Theory Logic in Computer Science

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 Π2p\Pi^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.

Keywords

Cite

@article{arxiv.1904.00850,
  title  = {Boundedness of Conjunctive Regular Path Queries},
  author = {Pablo Barceló and Diego Figueira and Miguel Romero},
  journal= {arXiv preprint arXiv:1904.00850},
  year   = {2019}
}
R2 v1 2026-06-23T08:25:25.730Z