By using SIAM Journals Online you agree to abide by the
Terms and Conditions of Use.

©  SIAM

 

SIAM Journal on Computing

Previous Article
Adaptive Pattern Matching
Pattern matching is an important operation used in many applications such as functional programming, rewriting, and rule-based expert systems. By preprocessing the patterns into a deterministic finite...
Next Article
What Can be Computed Locally?
The purpose of this paper is a study of computation that can be done locally in a distributed network, where "locally" means within time (or distance) independent of the size of the network....

You are not logged in to this journal. Log in

Finding Regular Simple Paths in Graph Databases

SIAM J. Comput. Volume 24, Issue 6, pp. 1235-1258 (1995)

Issue Date: 1995
Buy This PDF   (US$25)
Download PDF (3220 kB) View Cart
We consider the following problem: given a labelled directed graph $G$ and a regular expression $R$, find all pairs of nodes connected by a simple path such that the concatenation of the labels along the path satisfies $R$. The problem is motivated by the observation that many recursive queries in relational databases can be expressed in this form, and by the implementation of a query language, $\textbf{G}^{+}$, based on this observation. We show that the problem is in general intractable, but present an algorithm than runs in polynomial time in the size of the graph when the regular expression and the graph are free of conflicts. We also present a class of languages whose expressions can always be evaluated in time polynomial in the size of both the graph and the expression, and characterize syntactically the expressions for such languages. ©1995 Society for Industrial and Applied Mathematics
History: Received 1991-09-05; accepted 1994-06-27
Permalink: http://dx.doi.org/10.1137/S009753979122370X

KEYWORDS and AMS

PUBLICATION DATA

ISSN:
0097-5397 (print)   1095-7111 (online)
Publisher:
AIP is a member of CrossRef SIAM

REFERENCES (24)

For access to fully linked references, you need to log in. For access to fully linked references, you need to Log in.

CITING ARTICLES

For access to citing articles, you need to log in.
For access to citing articles, you need to Log in.