Logo image
Universal regular path queries
Journal article   Peer reviewed

Universal regular path queries

O De Moor, David Lacey and E Van Wyk
Higher-Order and Symbolic Computation, Vol.16(1), pp.15-35
2003
url
https://doi.org/10.1023/A:1023063919574View
Published Version

Abstract

program transformation regular algebra program analysis query languages
Given are a directed edge-labelled graph G with a distinguished node n0, and a regular expression P which may contain variables. We wish to compute all substitutions φ (of symbols for variables), together with all nodes n such that all paths n0 → n are in φ(P). We derive an algorithm for this problem using relational algebra, a show how it may be implemented in Prolog. The motivation for the problem derives from a declarative framework for specifying compiler optimisations.

Details

Metrics

362 Record Views
Logo image