Tunnels: Compressing the Solution Subgraph of Regular Path Queries
Abstract
Regular path queries (RPQs) are increasingly expected to return the paths that match them, not only their endpoints. Since the number of matching paths can be exponential or infinite, a standard way to deliver them (PMR) is the subgraph of the product between the graph and the query automaton that contains exactly the nodes lying on some solution path. We show that can be compressed much further when the graph is available to the decoder: most of can be regenerated by re-running small parts of the traversal, and only the places where the traversal would waste significant effort on dead branches need to be stored. We formalize this as \emph{tunnels}: regions of that are re-expanded from a stored entry point with a bounded amount of extra work, either an absolute budget or one proportional to the output produced. We handle the three classes of RPQs: constant-to-variable, constant-to-constant, and variable-to-variable. In the latter, we study the combination of tunnels with cutting the query at a selective articulation point of the automaton and encoding the answer as a union of Cartesian products of leftward and rightward traversals. Our experimental results show improvements of 2 to 3 orders of magnitude over the baseline space of PMR, for an acceptable increase in traversal time.
Create a lesson
Related papers
Directed k-Disjoint Shortest Paths in Polynomial Time
Shared title terminologycs.DSYang Cao, Haoran Qi, Hanzhi Wang
Feedback Rounds and Query Costs in Sparse Product Pure Exploration
Shared title terminologycs.DSYujiao Peng, Qifan Yang
Tight Query Depth of Recursive Randomized Greedy MIS
Shared title terminologycs.DSSlobodan Mitrović, Wen-Horng Sheu
Improved Approximation Algorithms for Multi-Path TSP and Ordered TSP
Shared title terminologycs.DSMorteza Alimi, Michael Ruderer
A Simple Optimal Algorithm for Directed Multi-Failure Replacement Paths
Shared title terminologycs.DSKaito Harada, Tatsuya Terao
Space-Efficient Text Indexing for Advanced Counting Queries
Shared title terminologycs.DSSolon P. Pissis, Sharma V. Thankachan