Enumerating regular expressions and their languages

Computer Science – Formal Languages and Automata Theory

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

Chapter 13 in the handbook "AutoMathA". 30 + 1 pages, 3 figures. To view the source code attachments, please download and extr

Scientific paper

In this chapter we discuss the problem of enumerating distinct regular expressions by size and the regular languages they represent. We discuss various notions of the size of a regular expression that appear in the literature and their advantages and disadvantages. We consider a formal definition of regular expressions using a context-free grammar. We then show how to enumerate strings generated by an unambiguous context-free grammar using the Chomsky-Sch\"utzenberger theorem. This theorem allows one to construct an algebraic equation whose power series expansion provides the enumeration. Classical tools from complex analysis, such as singularity analysis, can then be used to determine the asymptotic behavior of the enumeration. We use these algebraic and analytic methods to obtain asymptotic estimates on the number of regular expressions of size n. A single regular language can often be described by several regular expressions, and we estimate the number of distinct languages denoted by regular expressions of size n. We also give asymptotic estimates for these quantities. For the first few values, we provide exact enumeration results.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Enumerating regular expressions and their languages does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Enumerating regular expressions and their languages, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Enumerating regular expressions and their languages will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-443604

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.