Arrow Research search
Back to I&C

I&C 2012

Regular languages with variables on graphs

Journal Article journal-article Computer Science ยท Theoretical Computer Science

Abstract

This paper presents a pattern language based on regular expressions that allows the introduction of variables that can be instantiated to portions of the path that matches the expression. The paper will define a simple syntax for the language and its formal semantics. It will also study a modification of finite state automata that, through the introduction of actions on transitions, allows the variables to be instantiated while matching the expression. Finally, the paper will show that the problem of answering queries with variables is inherently harder than simple matching, essentially because, even for fairly simple expressions, the size of the results can be exponential in the size of the graph. The class of expressions and a class of graphs for which query answering is polynomial will be identified, and a processing algorithm for these expressions based on the intersection graph will be provided and analyzed.

Authors

Keywords

  • Regular expressions
  • Graphs
  • Paths in graphs
  • Matching

Context

Venue
Information and Computation
Archive span
1987-2026
Indexed papers
3021
Paper id
931905609682088703
v2026.09.13