Regular expressions into finite automata

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

17 Scopus citations

Abstract

It is a well-established fact that each regular expression can be transformed into a nondeterministic finite automaton (NFA) with or without ∈-transitions, and all authors seem to provide their own variant of the construction. Of these, Berry and Sethi have shown that the construction of an ∈-free NFA due to Glushkov is a natural representation of the regular expression, because it can be described in terms of the Brzozowski derivatives of the expression. Moreover, the Glushkov construction also plays a significant role in the document processing area: The SGML standard, now widely adopted by publishing houses and government agencies for the syntactic specification of textual markup systems, uses deterministic regular expressions, i.e. expressions whose Glushkov automaton is deterministic, as a description language for document types. In this paper, we first show that the Glushkov automaton can be constructed in time quadratic in the size of the expression, and that this is worst case optimal. For deterministic expressions, our algorithm has even linear run time. This improves on the cubic time methods suggested in the literature. A major step of the algorithm consists in bringing the expression into what we call star normal form. This concept is also useful for characterizing the relationship between two types of unambiguity that have been studied in the literature. Namely, we show that, modulo a technical condition, an expression is strongly unambiguous if and only it is weakly unambiguous and in star normal form. This leads to our third result, a quadratic time decision algorithm for weak unambiguity, that improves on the biquadratic method introduced by Book et al.

Original languageEnglish
Title of host publicationLATIN 1992 - 1st Latin American Symposium on Theoretical Informatics, Proceedings
EditorsImre Simon
PublisherSpringer Verlag
Pages87-98
Number of pages12
ISBN (Print)9783540552840
DOIs
StatePublished - 1992
Externally publishedYes
Event1st International Symposium on Latin American Theoretical Informatics, LATIN 1992 - Sao Paulo, Brazil
Duration: 6 Apr 199210 Apr 1992

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume583 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference1st International Symposium on Latin American Theoretical Informatics, LATIN 1992
Country/TerritoryBrazil
CitySao Paulo
Period6/04/9210/04/92

Fingerprint

Dive into the research topics of 'Regular expressions into finite automata'. Together they form a unique fingerprint.

Cite this