A TRICHOTOMY FOR REGULAR TRAIL QUERIES

被引:0
|
作者
Martens, Wim [1 ]
Niewerth, Matthias [1 ]
Popp, Tina [1 ]
机构
[1] Univ Bayreuth, Bayreuth, Germany
关键词
Regular languages; query languages; path queries; graph databases; databases; complexity; trails; simple paths; FINITE MONOIDS; PATHS; LANGUAGE; PRODUCT;
D O I
10.46298/lmcs-19(4:20)2023
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Regular path queries (RPQs) are an essential component of graph query languages. Such queries consider a regular expression r and a directed edge-labeled graph G and search for paths in G for which the sequence of labels is in the language of r. In order to avoid having to consider infinitely many paths, some database engines restrict such paths to be trails, that is, they only consider paths without repeated edges. In this article we consider the evaluation problem for RPQs under trail semantics, in the case where the expression is fixed. We show that, in this setting, there exists a trichotomy. More precisely, the complexity of RPQ evaluation divides the regular languages into the finite languages, the class Ttract (for which the problem is tractable), and the rest. Interestingly, the tractable class in the trichotomy is larger than for the trichotomy for simple paths, discovered by Bagan, Bonifati, and Groz [JCSS 2020]. In addition to this trichotomy result, we also study characterizations of the tractable class, its expressivity, the recognition problem, closure properties, and show how the decision problem can be extended to the enumeration problem, which is relevant to practice.
引用
收藏
页码:20:1 / 20:38
页数:38
相关论文
共 50 条
  • [1] A Trichotomy for Regular Trail Queries
    Martens, Wim
    Niewerth, Matthias
    Trautner, Tina
    37TH INTERNATIONAL SYMPOSIUM ON THEORETICAL ASPECTS OF COMPUTER SCIENCE (STACS 2020), 2020, 154
  • [2] A trichotomy for regular simple path queries on graphs
    Bagan, Guillaume
    Bonifati, Angela
    Groz, Benoit
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2020, 108 : 29 - 48
  • [3] The Complexity of Regular Trail and Simple Path Queries on Undirected Graphs
    Martens, Wim
    Popp, Tina
    PROCEEDINGS OF THE 41ST ACM SIGMOD-SIGACT-SIGAI SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS (PODS '22), 2022, : 165 - 174
  • [4] A Quantum Query Complexity Trichotomy for Regular Languages
    Aaronson, Scott
    Grier, Daniel
    Schaeffer, Luke
    2019 IEEE 60TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE (FOCS 2019), 2019, : 942 - 965
  • [5] Partially ordered regular languages for graph queries
    Flesca, S
    Greco, S
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2005, 70 (01) : 1 - 25
  • [6] Dichotomies for Evaluating Simple Regular Path Queries
    Martens, Wim
    Trautner, Tina
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2019, 44 (04):
  • [7] Jumping Evaluation of Nested Regular Path Queries
    Niehren, Joachim
    Salvati, Sylvain
    Azimov, Rustam
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2022, 364 : 79 - 92
  • [8] Conjunctive Regular Path Queries with Capture Groups
    Schmid, Markus L.
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2022, 47 (02):
  • [9] Regular Queries on Graph Databases
    Reutter, Juan L.
    Romero, Miguel
    Vardi, Moshe Y.
    THEORY OF COMPUTING SYSTEMS, 2017, 61 (01) : 31 - 83
  • [10] Regular Queries on Graph Databases
    Juan L. Reutter
    Miguel Romero
    Moshe Y. Vardi
    Theory of Computing Systems, 2017, 61 : 31 - 83