• Home
  • Search
  • Compiling regular patterns to sequential machines
  • Open Access IconOpen Access
  • Cite Icon4
  • https://doi.org/10.1145/1066677.1066992Copy DOI Icon

Compiling regular patterns to sequential machines

  • Mar 13, 2005
  • Burak Emir
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Pattern matching combined with regular expressions has many applications including semistructured data matching and lexical analysis in compilers. Variables in patterns allow one to refer to parts of the matching input. But some regular patterns suffer from inherent ambiguity, yielding more than one valid result. A match policy like shortest or longest match can disambiguate such patterns.In this paper, we show that regular pattern matching corresponds to sequential transduction. We derive straightforward ways to optimally compile regular patterns to sequential machines and to decide when regular patterns are unambiguous. Unambiguous patterns can be matched in a single traversal of the input. Ambiguities in patterns correspond to nondeterminism in sequential machines. Applying the match policy optimally yields two deterministic sequential machines, which produce the shortest match in two consecutive runs.

Similar Papers
  • Research Article
  • Citations1

R. McNaughton and H. Yamada. Regular expressions and state graphs for automata. Sequential machines, Selected papers, edited by Edward F. Moore, Addison-Wesley Publishing Company, Inc., Reading, Massachusetts, Palo Alto, and London, 1964, pp. 157–174. (Reprinted from IRE transactions on electronic computers, vol. EC-9 (1960), pp. 39–47.)

  • Oct 09, 1967
  • Journal of Symbolic Logic
  • Andrzej J Blikle
  • Conference Article
  • Citations23

Minimal Markov chain embeddings of pattern problems

  • Jan 01, 2007
  • Manuel E Lladser
  • Conference Article
  • Citations4

Hierarchical state machine architecture for regular expression pattern matching

  • May 10, 2009
  • Cheng-Hung Lin +1
  • Conference Article
  • Citations28

Tighter Connections Between Formula-SAT and Shaving Logs

  • Apr 01, 2018
  • DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)
  • Amir Abboud +1
  • Book Chapter
  • Citations5

Generation of Pattern-Matching Algorithms by Extended Regular Expressions

  • Jan 01, 1993
  • Advances in Software Science and Technology
  • Ikuo Nakata
  • Research Article
  • Citations10

Mealy machines are a better model of lexical analyzers

  • Apr 01, 1996
  • Computer Languages
  • Wuu Yang
  • Dissertation

Wheel systems : self-organizing systems for finding periodic recurrences, with applications in ethology

  • Jan 01, 1973
  • The University of Queensland
  • Donald Keith Morris
  • Book Chapter
  • Citations7

Learning of regular expressions by pattern matching

  • Jan 01, 1995
  • Alvis Brāzma
  • Research Article

Generation of Regular Expression from Aligned Sequences of Text Snippets

  • Feb 18, 2023
  • Proceeding International Conference on Science and Engineering
  • Girishkumar K Patnaik, Dinesh D Puri, Akash D Waghmare
  • Conference Article
  • Citations6

A survey on Finite Automata based pattern matching techniques for network Intrusion Detection System (NIDS)

  • Oct 01, 2014
  • Prashantkumar M Rathod +2
  • Book Chapter
  • Citations4

A Dynamically Reconfigurable Pattern Matcher for Regular Expressions on FPGA

  • Jan 01, 2012
  • Davidson Tom +3
  • Conference Article
  • Citations6

An Efficient Hardware Matching Engine for Regular Expression with Nested Kleene Operators

  • Sep 01, 2011
  • Yoichi Wakaba +3
  • Research Article
  • Citations165

A Survey on Regular Expression Matching for Deep Packet Inspection: Applications, Algorithms, and Hardware Platforms

  • Jan 01, 2016
  • IEEE Communications Surveys & Tutorials
  • Chengcheng Xu +4
  • Conference Article
  • Citations1

Parallel complex event detection based on regular tree pattern matching

  • Jan 01, 2018
  • Lei Yan +2
  • Research Article
  • Citations2

Automatic verification of a class of systolic circuits

  • Mar 01, 1992
  • Formal Aspects of Computing
  • Parosh Abdulla
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.