<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Regular_language</id>
	<title>Regular language - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Regular_language"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Regular_language&amp;action=history"/>
	<updated>2026-12-04T04:10:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki1463/index.php?title=Regular_language&amp;diff=16793&amp;oldid=prev</id>
		<title>imported&gt;Jochen Burghardt: /* Complexity results */ ce</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Regular_language&amp;diff=16793&amp;oldid=prev"/>
		<updated>2026-10-05T14:26:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Complexity results: &lt;/span&gt; ce&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Formal language that can be expressed using a regular expression}}&lt;br /&gt;
{{For|natural language that is regulated|List of language regulators}}&lt;br /&gt;
{{Redirect|Kleene&amp;#039;s theorem|his theorems for recursive functions|Kleene&amp;#039;s recursion theorem}}&lt;br /&gt;
&lt;br /&gt;
In [[theoretical computer science]] and [[formal language theory]], a &amp;#039;&amp;#039;&amp;#039;regular language&amp;#039;&amp;#039;&amp;#039; (also called a &amp;#039;&amp;#039;&amp;#039;rational language&amp;#039;&amp;#039;&amp;#039;)&amp;lt;ref name=&amp;quot;Mitkov2003&amp;quot;/&amp;gt;&amp;lt;ref name=&amp;quot;Lawson2003&amp;quot;/&amp;gt; is a [[formal language]] that can be defined by a [[regular expression]], in the strict sense in theoretical computer science (as opposed to many modern regular expression engines, which are [[Regular expression#Patterns for non-regular languages|augmented with features]] that allow the recognition of non-regular languages).&lt;br /&gt;
&lt;br /&gt;
Alternatively, a regular language can be defined as a language recognised by a [[finite automaton]]. The equivalence of regular expressions and finite automata is known as &amp;#039;&amp;#039;&amp;#039;Kleene&amp;#039;s theorem&amp;#039;&amp;#039;&amp;#039;&amp;lt;ref name=&amp;quot;RozenbergSalomaa1997&amp;quot;&amp;gt;{{cite book|editor1=Grzegorz Rozenberg |editor2=Arto Salomaa |title=Handbook of Formal Languages: Volume 1. Word, Language, Grammar|chapter-url=https://books.google.com/books?id=yQ59ojndUt4C&amp;amp;pg=PA41|year=1997|publisher=Springer|isbn=978-3-540-60420-4|page=41|author=Sheng Yu|chapter=Regular languages}}&amp;lt;/ref&amp;gt; (after American mathematician [[Stephen Cole Kleene]]). In the [[Chomsky hierarchy]], regular languages are the languages generated by [[regular grammar|Type-3 grammars]].&lt;br /&gt;
&lt;br /&gt;
== Formal definition ==&lt;br /&gt;
The collection of regular languages over an [[Alphabet (formal languages)|alphabet]] Σ is defined recursively as follows:&lt;br /&gt;
* The empty language ∅ is a regular language.&lt;br /&gt;
* For each &amp;lt;var&amp;gt;a&amp;lt;/var&amp;gt; ∈ Σ (&amp;lt;var&amp;gt;a&amp;lt;/var&amp;gt; belongs to Σ), the [[Singleton (mathematics)|singleton]] language {{mset|&amp;#039;&amp;#039;a&amp;#039;&amp;#039;}} is a regular language.&lt;br /&gt;
* If &amp;lt;var&amp;gt;A&amp;lt;/var&amp;gt; is a regular language, &amp;lt;var&amp;gt;A&amp;lt;/var&amp;gt;* ([[Kleene star]]) is a regular language. Due to this, the empty string language {{mset|ε}} is also regular.&lt;br /&gt;
* If &amp;lt;var&amp;gt;A&amp;lt;/var&amp;gt; and &amp;lt;var&amp;gt;B&amp;lt;/var&amp;gt; are regular languages, then {{nowrap|&amp;lt;var&amp;gt;A&amp;lt;/var&amp;gt; ∪ &amp;lt;var&amp;gt;B&amp;lt;/var&amp;gt;}} (union) and {{nowrap|&amp;lt;var&amp;gt;A&amp;lt;/var&amp;gt; • &amp;lt;var&amp;gt;B&amp;lt;/var&amp;gt;}} (concatenation) are regular languages.&lt;br /&gt;
* No other languages over Σ are regular.&lt;br /&gt;
&lt;br /&gt;
See &amp;#039;&amp;#039;{{slink|Regular expression#Formal language theory}}&amp;#039;&amp;#039; for syntax and semantics of regular expressions.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
All finite languages are regular; in particular the [[empty string]] language {{nowrap|1={{mset|ε}} = ∅*}} is regular. Other typical examples include the language consisting of all strings over the alphabet {{mset|&amp;#039;&amp;#039;a&amp;#039;&amp;#039;, &amp;#039;&amp;#039;b&amp;#039;&amp;#039;}} which contain an even number of &amp;#039;&amp;#039;a&amp;#039;&amp;#039;s, or the language consisting of all strings of the form: several &amp;#039;&amp;#039;a&amp;#039;&amp;#039;s followed by several &amp;#039;&amp;#039;b&amp;#039;&amp;#039;s.&lt;br /&gt;
&lt;br /&gt;
A simple example of a language that is not regular is the set of strings {{mset|&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt; | &amp;#039;&amp;#039;n&amp;#039;&amp;#039; ≥ 0}}.&amp;lt;ref&amp;gt;Eilenberg (1974), p. 16 (Example II, 2.8) and p. 25 (Example II, 5.2).&amp;lt;/ref&amp;gt; Intuitively, it cannot be recognized with a finite automaton, since a finite automaton has finite memory and it cannot remember the exact number of a&amp;#039;s. Techniques to prove this fact rigorously are given [[#Location in the Chomsky hierarchy|below]].&lt;br /&gt;
&lt;br /&gt;
== Equivalent formalisms ==&lt;br /&gt;
A regular language satisfies the following equivalent properties:&lt;br /&gt;
# it is the language of a regular expression (by the above definition)&lt;br /&gt;
# it is the language accepted by a [[nondeterministic finite automaton]] (NFA)&amp;lt;ref group=note&amp;gt;1. ⇒ 2. by [[Thompson&amp;#039;s construction algorithm]]&amp;lt;/ref&amp;gt;&amp;lt;ref group=note&amp;gt;2. ⇒ 1. by [[Kleene&amp;#039;s algorithm]] or using [[Arden&amp;#039;s lemma]]&amp;lt;/ref&amp;gt;&lt;br /&gt;
# it is the language accepted by a [[deterministic finite automaton]] (DFA)&amp;lt;ref group=note&amp;gt;2. ⇒ 3. by the [[powerset construction]]&amp;lt;/ref&amp;gt;&amp;lt;ref group=note&amp;gt;3. ⇒ 2. since the [[deterministic finite automaton#Formal definition|former definition]] is stronger than the [[nondeterministic finite automaton#Formal definition|latter]]&amp;lt;/ref&amp;gt;&lt;br /&gt;
# it can be generated by a [[regular grammar]]&amp;lt;ref group=note&amp;gt;2. ⇒ 4. see Hopcroft, Ullman (1979), Theorem 9.2, p.219&amp;lt;/ref&amp;gt;&amp;lt;ref group=note&amp;gt;4. ⇒ 2. see Hopcroft, Ullman (1979), Theorem 9.1, p.218&amp;lt;/ref&amp;gt;&lt;br /&gt;
# it is the language accepted by an [[alternating finite automaton]]&lt;br /&gt;
# it is the language accepted by a [[two-way finite automaton]]&lt;br /&gt;
# it can be generated by a [[prefix grammar]]&lt;br /&gt;
# it can be accepted by a read-only [[Turing machine]]&lt;br /&gt;
# it can be defined in [[monadic second-order logic]] ([[Büchi–Elgot–Trakhtenbrot theorem]])&amp;lt;ref&amp;gt;M. Weyer: Chapter 12 - Decidability of S1S and S2S, p. 219, Theorem 12.26. In: Erich Grädel, Wolfgang Thomas, Thomas Wilke (Eds.): Automata, Logics, and Infinite Games: A Guide to Current Research. [[Lecture Notes in Computer Science]] 2500, Springer 2002.&amp;lt;/ref&amp;gt;&lt;br /&gt;
# it is [[Recognizable set|recognized]] by some finite [[syntactic monoid]] &amp;#039;&amp;#039;M&amp;#039;&amp;#039;, meaning it is the [[preimage]] {{mset|&amp;#039;&amp;#039;w&amp;#039;&amp;#039; ∈ Σ&amp;lt;sup&amp;gt;*&amp;lt;/sup&amp;gt; | &amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;w&amp;#039;&amp;#039;) ∈ &amp;#039;&amp;#039;S&amp;#039;&amp;#039;}} of a subset &amp;#039;&amp;#039;S&amp;#039;&amp;#039; of a finite [[monoid]] &amp;#039;&amp;#039;M&amp;#039;&amp;#039; under a [[monoid homomorphism]] {{nowrap|&amp;#039;&amp;#039;f&amp;#039;&amp;#039; : Σ&amp;lt;sup&amp;gt;*&amp;lt;/sup&amp;gt; → &amp;#039;&amp;#039;M&amp;#039;&amp;#039;}} from the [[free monoid]] on its alphabet&amp;lt;ref group=note&amp;gt;3. ⇔ 10. by the [[Myhill–Nerode theorem]]&amp;lt;/ref&amp;gt;&lt;br /&gt;
# the number of equivalence classes of its [[syntactic congruence]] is finite.&amp;lt;ref group=note&amp;gt;&amp;#039;&amp;#039;u&amp;#039;&amp;#039; ~ &amp;#039;&amp;#039;v&amp;#039;&amp;#039; is defined as: &amp;#039;&amp;#039;uw&amp;#039;&amp;#039; ∈ &amp;#039;&amp;#039;L&amp;#039;&amp;#039; if and only if &amp;#039;&amp;#039;vw&amp;#039;&amp;#039; ∈ &amp;#039;&amp;#039;L&amp;#039;&amp;#039; for all &amp;#039;&amp;#039;w&amp;#039;&amp;#039; ∈ Σ&amp;lt;sup&amp;gt;*&amp;lt;/sup&amp;gt;&amp;lt;/ref&amp;gt;&amp;lt;ref group=note&amp;gt;3. ⇔ 11. see the proof in the &amp;#039;&amp;#039;[[Syntactic monoid#Syntactic equivalence|Syntactic monoid]]&amp;#039;&amp;#039; article, and see p. 160 in {{cite book | last=Holcombe | first=W.M.L. | title=Algebraic automata theory | zbl=0489.68046 | series=Cambridge Studies in Advanced Mathematics | volume=1 | publisher=[[Cambridge University Press]] | year=1982 | isbn=0-521-60492-3 }}&amp;lt;/ref&amp;gt; (This number equals the number of states of the [[DFA minimization|minimal deterministic finite automaton]] accepting &amp;#039;&amp;#039;L&amp;#039;&amp;#039;.)&lt;br /&gt;
&lt;br /&gt;
Properties 10. and 11. are purely algebraic approaches to define regular languages; a similar set of statements can be formulated for a monoid {{nowrap|&amp;#039;&amp;#039;M&amp;#039;&amp;#039; ⊆ Σ&amp;lt;sup&amp;gt;*&amp;lt;/sup&amp;gt;}}. In this case, equivalence over &amp;#039;&amp;#039;M&amp;#039;&amp;#039; leads to the concept of a recognizable language.&lt;br /&gt;
&lt;br /&gt;
Some authors use one of the above properties different from &amp;quot;1.&amp;quot; as an alternative definition of regular languages.&lt;br /&gt;
&lt;br /&gt;
Some of the equivalences above, particularly those among the first four formalisms, are called &amp;#039;&amp;#039;Kleene&amp;#039;s theorem&amp;#039;&amp;#039; in textbooks. Precisely which one (or which subset) is called such varies between authors. One textbook calls the equivalence of regular expressions and NFAs (&amp;quot;1.&amp;quot; and &amp;quot;2.&amp;quot; above) &amp;quot;Kleene&amp;#039;s theorem&amp;quot;.&amp;lt;ref name=&amp;quot;SedgewickWayne2011&amp;quot;&amp;gt;{{cite book|author1=Robert Sedgewick|author2=Kevin Daniel Wayne|title=Algorithms|url=https://books.google.com/books?id=MTpsAQAAQBAJ&amp;amp;pg=PA794|year=2011|publisher=Addison-Wesley Professional|isbn=978-0-321-57351-3|page=794}}&amp;lt;/ref&amp;gt; Another textbook calls the equivalence of regular expressions and DFAs (&amp;quot;1.&amp;quot; and &amp;quot;3.&amp;quot; above) &amp;quot;Kleene&amp;#039;s theorem&amp;quot;.&amp;lt;ref name=&amp;quot;AlloucheShallit2003&amp;quot;&amp;gt;{{cite book|author1=Jean-Paul Allouche|author2=Jeffrey Shallit|title=Automatic Sequences: Theory, Applications, Generalizations|url=https://books.google.com/books?id=2ZsSUStt96sC&amp;amp;pg=PA129|year=2003|publisher=Cambridge University Press|isbn=978-0-521-82332-6|page=129}}&amp;lt;/ref&amp;gt; Two other textbooks first prove the expressive equivalence of NFAs and DFAs (&amp;quot;2.&amp;quot; and &amp;quot;3.&amp;quot;) and then state &amp;quot;Kleene&amp;#039;s theorem&amp;quot; as the equivalence between regular expressions and finite automata (the latter said to describe &amp;quot;recognizable languages&amp;quot;).&amp;lt;ref name=&amp;quot;Lawson2003&amp;quot;&amp;gt;{{cite book|author=Mark V. Lawson|title=Finite Automata|url=https://books.google.com/books?id=MDQ_K7-z2AMC&amp;amp;pg=PA98|year=2003|publisher=CRC Press|isbn=978-1-58488-255-8|pages=98–103}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Rosen2011&amp;quot;&amp;gt;{{cite book|author=Kenneth Rosen|title=Discrete Mathematics and Its Applications 7th edition|url=https://books.google.com/books?id=BQQwAgAAQBAJ&amp;amp;pg=PA880|year=2011|publisher=McGraw-Hill Science|pages=873–880}}&amp;lt;/ref&amp;gt; A linguistically oriented text first equates regular grammars (&amp;quot;4.&amp;quot; above) with DFAs and NFAs, calls the languages generated by (any of) these &amp;quot;regular&amp;quot;, after which it introduces regular expressions which it terms to describe &amp;quot;rational languages&amp;quot;, and finally states &amp;quot;Kleene&amp;#039;s theorem&amp;quot; as the coincidence of regular and rational languages.&amp;lt;ref name=&amp;quot;BunkeSanfeliu1990&amp;quot;&amp;gt;{{cite book|author1=Horst Bunke|author2=Alberto Sanfeliu|title=Syntactic and Structural Pattern Recognition: Theory and Applications|url=https://books.google.com/books?id=GfdWeTb5-8QC&amp;amp;pg=PA248|date=January 1990|publisher=World Scientific|isbn=978-9971-5-0566-0|page=248}}&amp;lt;/ref&amp;gt; Other authors simply &amp;#039;&amp;#039;define&amp;#039;&amp;#039; &amp;quot;rational expression&amp;quot; and &amp;quot;regular expressions&amp;quot; as synonymous and do the same with &amp;quot;rational languages&amp;quot; and &amp;quot;regular languages&amp;quot;.&amp;lt;ref name=&amp;quot;Mitkov2003&amp;quot;&amp;gt;{{cite book|author=Ruslan Mitkov|title=The Oxford Handbook of Computational Linguistics|url=https://books.google.com/books?id=yl6AnaKtVAkC&amp;amp;pg=PA754|year=2003|publisher=Oxford University Press|isbn=978-0-19-927634-9|page=754}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Lawson2003&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Apparently, the term &amp;#039;&amp;#039;regular&amp;#039;&amp;#039; originates from a 1951 technical report where Kleene introduced &amp;#039;&amp;#039;regular events&amp;#039;&amp;#039; and explicitly welcomed &amp;quot;any suggestions as to a more descriptive term&amp;quot;.&amp;lt;ref&amp;gt;{{cite report | url=http://www.rand.org/content/dam/rand/pubs/research_memoranda/2008/RM704.pdf | author=Stephen Cole Kleene | title=Representation of Events in Nerve Nets and Finite Automata | institution=U.S. Air Force / RAND Corporation | type=Research Memorandum | number=RM-704 | date=Dec 1951 }} Here: p.46&amp;lt;/ref&amp;gt; [[Noam Chomsky]], in his 1959 seminal article, used the term &amp;#039;&amp;#039;regular&amp;#039;&amp;#039; in a different meaning at first (referring to what is called &amp;#039;&amp;#039;[[Chomsky normal form]]&amp;#039;&amp;#039; today),&amp;lt;ref name=&amp;quot;Chomsky.1959a&amp;quot;&amp;gt;{{cite journal | url=http://www.sciencedirect.com/science/article/pii/S0019995859903626/pdf?md5=9d466f851651bd592afa5ee561b7a0b0&amp;amp;pid=1-s2.0-S0019995859903626-main.pdf | author=Noam Chomsky | title=On Certain Formal Properties of Grammars | journal=Information and Control | volume=2 | pages=137&amp;amp;ndash;167 | year=1959 | issue=2 | doi=10.1016/S0019-9958(59)90362-6 | doi-access=free }} Here: Definition 8, p.149&amp;lt;/ref&amp;gt; but noticed that his &amp;#039;&amp;#039;finite state languages&amp;#039;&amp;#039; were equivalent to Kleene&amp;#039;s &amp;#039;&amp;#039;regular events&amp;#039;&amp;#039;.&amp;lt;ref&amp;gt;Chomsky 1959, Footnote 10, p.150&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Closure properties ==&lt;br /&gt;
The regular languages are [[closure (mathematics)|closed]] under various operations, that is, if the languages &amp;#039;&amp;#039;K&amp;#039;&amp;#039; and &amp;#039;&amp;#039;L&amp;#039;&amp;#039; are regular, so is the result of the following operations:&lt;br /&gt;
* the [[set-theoretic operations|set-theoretic Boolean operations]]: [[Union (set theory)|union]] {{math|&amp;#039;&amp;#039;K&amp;#039;&amp;#039; ∪ &amp;#039;&amp;#039;L&amp;#039;&amp;#039;}}, [[intersection (set theory)|intersection]] {{math|&amp;#039;&amp;#039;K&amp;#039;&amp;#039; ∩ &amp;#039;&amp;#039;L&amp;#039;&amp;#039;}}, and [[complement (set theory)|complement]] {{overline|&amp;#039;&amp;#039;L&amp;#039;&amp;#039;}}, hence also [[relative complement]] {{math|&amp;#039;&amp;#039;K&amp;#039;&amp;#039; &amp;amp;minus; &amp;#039;&amp;#039;L&amp;#039;&amp;#039;}}.&amp;lt;ref name=Sal28&amp;gt;Salomaa (1981) p.28&amp;lt;/ref&amp;gt;&lt;br /&gt;
* the regular operations: {{math|&amp;#039;&amp;#039;K&amp;#039;&amp;#039; ∪ &amp;#039;&amp;#039;L&amp;#039;&amp;#039;}}, [[concatenation]] {{tmath|K \circ L}}, and [[Kleene star]] {{math|&amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;*&amp;lt;/sup&amp;gt;}}.&amp;lt;ref name=Sal27&amp;gt;Salomaa (1981) p.27&amp;lt;/ref&amp;gt;&lt;br /&gt;
* the [[abstract family of languages|trio]] operations: [[string homomorphism]], inverse string homomorphism, and intersection with regular languages. As a consequence they are closed under arbitrary [[finite state transducer|finite state transductions]], like [[right quotient|quotient]] &amp;#039;&amp;#039;K&amp;#039;&amp;#039; / &amp;#039;&amp;#039;L&amp;#039;&amp;#039;  with a regular language. Even more, regular languages are closed under quotients with &amp;#039;&amp;#039;arbitrary&amp;#039;&amp;#039; languages: If &amp;#039;&amp;#039;L&amp;#039;&amp;#039; is regular then &amp;#039;&amp;#039;L&amp;#039;&amp;#039; / &amp;#039;&amp;#039;K&amp;#039;&amp;#039; is regular for any &amp;#039;&amp;#039;K&amp;#039;&amp;#039;.&amp;lt;ref&amp;gt;{{cite conference&lt;br /&gt;
 | last1 = Fellows | first1 = Michael R. | author1-link = Michael Fellows&lt;br /&gt;
 | last2 = Langston | first2 = Michael A. | author2-link = Michael Langston&lt;br /&gt;
 | editor1-last = Myers | editor1-first = J. Paul Jr.&lt;br /&gt;
 | editor2-last = O&amp;#039;Donnell | editor2-first = Michael J.&lt;br /&gt;
 | contribution = Constructivity issues in graph algorithms&lt;br /&gt;
 | pages = 150–158&lt;br /&gt;
 | publisher = Springer&lt;br /&gt;
 | series = Lecture Notes in Computer Science&lt;br /&gt;
 | title = Constructivity in Computer Science, Summer Symposium, San Antonio, Texas, USA, June 19-22, Proceedings&lt;br /&gt;
 | volume = 613&lt;br /&gt;
 | year = 1991&lt;br /&gt;
 | doi = 10.1007/BFB0021088 | isbn = 978-3-540-55631-2&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* the reverse (or mirror image) &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;R&amp;lt;/sup&amp;gt;.&amp;lt;ref&amp;gt;Hopcroft, Ullman (1979), Chapter 3, Exercise 3.4g, p. 72&amp;lt;/ref&amp;gt; Given a nondeterministic finite automaton to recognize &amp;#039;&amp;#039;L&amp;#039;&amp;#039;, an automaton for &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;R&amp;lt;/sup&amp;gt; can be obtained by reversing all transitions and interchanging starting and finishing states.  This may result in multiple starting states; ε-transitions can be used to join them.&lt;br /&gt;
&lt;br /&gt;
== Decidability properties ==&lt;br /&gt;
Given two deterministic finite automata &amp;#039;&amp;#039;A&amp;#039;&amp;#039; and &amp;#039;&amp;#039;B&amp;#039;&amp;#039;, it is decidable whether they accept the same language.&amp;lt;ref&amp;gt;Hopcroft, Ullman (1979), Theorem 3.8, p.64; see also Theorem 3.10, p.67&amp;lt;/ref&amp;gt;&lt;br /&gt;
As a consequence, using the [[#Closure properties|above]] closure properties, the following problems are also decidable for arbitrarily given deterministic finite automata &amp;#039;&amp;#039;A&amp;#039;&amp;#039; and &amp;#039;&amp;#039;B&amp;#039;&amp;#039;, with accepted languages &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; and &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;B&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;, respectively:&amp;lt;!---avoiding &amp;quot;L(A)&amp;quot; that has not been defined so far, and might be confused with the language variable &amp;quot;L&amp;quot; above---&amp;gt;&lt;br /&gt;
* Containment: is &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; ⊆ &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;B&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; ?&amp;lt;ref group=note&amp;gt;Check if &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; ∩ &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;B&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; = &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;. Deciding this property is [[NP-hard]] in general; see [[:File:RegSubsetNP.pdf]] for an illustration of the proof idea.&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Disjointness: is &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; ∩ &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;B&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; = {{mset}} ?&lt;br /&gt;
* Emptiness: is &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; = {{mset}} ?&lt;br /&gt;
* Universality: is &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; = Σ&amp;lt;sup&amp;gt;*&amp;lt;/sup&amp;gt; ?&lt;br /&gt;
* Membership: given &amp;#039;&amp;#039;a&amp;#039;&amp;#039; ∈ Σ&amp;lt;sup&amp;gt;*&amp;lt;/sup&amp;gt;, is &amp;#039;&amp;#039;a&amp;#039;&amp;#039; ∈ &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;B&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; ?&lt;br /&gt;
&amp;lt;!---todo: give complexity for each problem, discuss other formalisms than just DFA---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For regular expressions, the universality problem is [[NP-complete]] already for a singleton alphabet.&amp;lt;ref&amp;gt;Aho, Hopcroft, Ullman (1974), Exercise 10.14, p.401&amp;lt;/ref&amp;gt;&lt;br /&gt;
For larger alphabets, that problem is [[PSPACE-complete#Regular expressions and automata|PSPACE-complete]].&amp;lt;ref&amp;gt;Aho, Hopcroft, Ullman (1974), Theorem 10.14, p399&amp;lt;/ref&amp;gt; If regular expressions are extended to allow also a &amp;#039;&amp;#039;squaring operator&amp;#039;&amp;#039;, with &amp;quot;&amp;#039;&amp;#039;A&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;quot; denoting the same as &amp;quot;&amp;#039;&amp;#039;AA&amp;#039;&amp;#039;&amp;quot;, still just regular languages can be described, but the universality problem has an exponential space lower bound,&amp;lt;ref&amp;gt;Hopcroft, Ullman (1979), Theorem 13.15, p.351&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite book | url=https://people.csail.mit.edu/meyer/rsq.pdf |author1=A.R. Meyer  |author2=L.J. Stockmeyer  |name-list-style=amp | title=The Equivalence Problem for Regular Expressions with Squaring Requires Exponential Space | publisher=13th Annual IEEE Symp. on Switching and Automata Theory | pages=125–129 | date=Oct 1972 }}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite book | url=https://esp.mit.edu/download/827dcf47cbc9cf4a3b04dbf773ea54fb/M3175_meyer-stockmeyer-word-probs.pdf |author1=L. J. Stockmeyer  |author2=A. R. Meyer |contribution=Word Problems Requiring Exponential Time | title=Proc. 5th ann. symp. on Theory of computing (STOC) | publisher=ACM | pages=1–9 | year=1973 }}&amp;lt;/ref&amp;gt; and is in fact complete for exponential space with respect to polynomial-time reduction.&amp;lt;ref&amp;gt;Hopcroft, Ullman (1979), Corollary p.353&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a fixed finite alphabet, the theory of the set of all languages – together with strings, membership of a string in a language, and for each character, a function to append the character to a string (and no other operations) – is decidable, and its minimal [[elementary equivalence|elementary substructure]] consists precisely of regular languages.  For a binary alphabet, the theory is called [[S2S (mathematics)|S2S]].&amp;lt;ref&amp;gt;{{cite book | last=Weyer | first=Mark | date=2002 | title=Automata, Logics, and Infinite Games |chapter=Decidability of S1S and S2S | series=Lecture Notes in Computer Science | volume=2500 | pages=207–230 |chapter-url=https://link.springer.com/chapter/10.1007/3-540-36387-4_12 | doi=10.1007/3-540-36387-4_12 | publisher=Springer| isbn=978-3-540-00388-5 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Complexity results ==&lt;br /&gt;
&lt;br /&gt;
In [[computational complexity theory]], the [[complexity class]] of all regular languages is sometimes referred to as &amp;#039;&amp;#039;&amp;#039;REGULAR&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;REG&amp;#039;&amp;#039;&amp;#039; and equals [[DSPACE]](O(1)), the [[decision problem]]s that can be solved in constant space (the space used is independent of the input size). &amp;#039;&amp;#039;&amp;#039;REGULAR&amp;#039;&amp;#039;&amp;#039; ≠ [[AC0|&amp;#039;&amp;#039;&amp;#039;AC&amp;#039;&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt;]], since it (trivially) contains the parity problem of determining whether the number of 1 bits in the input is even or odd and this problem is not in &amp;#039;&amp;#039;&amp;#039;AC&amp;#039;&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt;.&amp;lt;ref&amp;gt;{{cite journal | last1 = Furst | first1 = Merrick | last2 = Saxe | first2 = James B. | author2-link = James B. Saxe | last3 = Sipser | first3 = Michael | author3-link = Michael Sipser | doi = 10.1007/BF01744431 | issue = 1 | journal = Mathematical Systems Theory | mr = 738749 | pages = 13–27 | title = Parity, circuits, and the polynomial-time hierarchy | volume = 17 | year = 1984| s2cid = 14677270 }}&amp;lt;/ref&amp;gt; On the other hand, &amp;#039;&amp;#039;&amp;#039;REGULAR&amp;#039;&amp;#039;&amp;#039; does not contain &amp;#039;&amp;#039;&amp;#039;AC&amp;#039;&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt;, because the nonregular language of [[palindrome]]s, or the nonregular language &amp;lt;math&amp;gt;\{0^n 1^n : n \in \mathbb N\}&amp;lt;/math&amp;gt; can both be recognized in &amp;#039;&amp;#039;&amp;#039;AC&amp;#039;&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt;.&amp;lt;ref&amp;gt;{{cite book|last1=Cook|first1=Stephen|last2=Nguyen|first2=Phuong|title=Logical foundations of proof complexity|year=2010|publisher=Association for Symbolic Logic|location=Ithaca, NY|isbn=978-0-521-51729-4|page=75|edition=1. publ.}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a language is &amp;#039;&amp;#039;not&amp;#039;&amp;#039; regular, it requires a machine with at least {{nowrap|[[Big O notation|Ω]](log log &amp;#039;&amp;#039;n&amp;#039;&amp;#039;)}} space to recognize (where &amp;#039;&amp;#039;n&amp;#039;&amp;#039; is the input size).&amp;lt;ref name=HartmanisStearnsLewis&amp;gt;J. Hartmanis, P. L. Lewis II, and R. E. Stearns. Hierarchies of memory-limited computations. &amp;#039;&amp;#039;Proceedings of the 6th Annual IEEE Symposium on Switching Circuit Theory and Logic Design&amp;#039;&amp;#039;, pp. 179–190. 1965.&amp;lt;/ref&amp;gt; In other words, {{nowrap|DSPACE([[Big O notation|o]](log log &amp;#039;&amp;#039;n&amp;#039;&amp;#039;))}} equals the class of regular languages.&amp;lt;ref name=HartmanisStearnsLewis/&amp;gt; In fact, the result shown is slightly stronger: any Turing machine running in space {{nowrap|DSPACE([[Big O notation|o]](log log &amp;#039;&amp;#039;n&amp;#039;&amp;#039;))}} and terminating on all inputs must actually run in constant space.&amp;lt;ref name=HartmanisStearnsLewis/&amp;gt; In practice, most nonregular problems are studied in a setting with at least [[logarithmic space]], as this is the amount of space required to store a pointer into the input tape.&amp;lt;ref&amp;gt;Sipser (1997) p.349&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Location in the Chomsky hierarchy &amp;lt;span class=&amp;quot;anchor&amp;quot; id=&amp;quot;Subclasses&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
{{Dark mode invert|[[Image:Chomsky-hierarchy.svg|thumb|250px|Regular language in classes of Chomsky hierarchy]]}}&lt;br /&gt;
To locate the regular languages in the [[Chomsky hierarchy]], one notices that every regular language is [[Context free language|context-free]]. The converse is not true: for example, the language consisting of all strings having the same number of &amp;#039;&amp;#039;a&amp;#039;&amp;#039;s as &amp;#039;&amp;#039;b&amp;#039;&amp;#039;s is context-free but not regular. To prove that a language is not regular, one often uses the [[Myhill–Nerode theorem]] and the [[Pumping lemma for regular languages|pumping lemma]]. Other approaches include using the [[Regular language#Closure properties|closure properties]] of regular languages&amp;lt;ref&amp;gt;{{cite web|title=How to prove that a language is not regular?|url=https://cs.stackexchange.com/q/1031|access-date=10 April 2018|website=cs.stackexchange.com}}&amp;lt;/ref&amp;gt; or quantifying [[Kolmogorov complexity]].&amp;lt;ref&amp;gt;{{Cite book|last=Hromkovič|first=Juraj|title=Theoretical computer science: Introduction to Automata, Computability, Complexity, Algorithmics, Randomization, Communication, and Cryptography|date=2004|publisher=Springer|isbn=3-540-14015-8|pages=76–77|oclc=53007120}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Important subclasses of regular languages include:&lt;br /&gt;
* Finite languages, those containing only a finite number of words.&amp;lt;ref&amp;gt;A finite language should not be confused with a (usually infinite) language generated by a finite automaton.&amp;lt;/ref&amp;gt; These are regular languages, as one can create a [[regular expression]] that is the [[Union (set theory)|union]] of every word in the language.&lt;br /&gt;
* [[Star-free language]]s, those that can be described by a regular expression constructed from the empty symbol, letters, concatenation and all Boolean operators (see [[algebra of sets]]) including [[Complement (set theory)|complementation]] but not the [[Kleene star]]: this class includes all finite languages.&amp;lt;ref&amp;gt;{{cite book|editor1=Jörg Flum |editor2=Erich Grädel |editor3=Thomas Wilke |title=Logic and automata: history and perspectives|year=2008|publisher=Amsterdam University Press|isbn=978-90-5356-576-6|chapter-url=http://www.lsv.ens-cachan.fr/Publis/PAPERS/PDF/DG-WT08.pdf|chapter=First-order definable languages|author1=Volker Diekert |author2=Paul Gastin }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Number of words in a regular language ==&lt;br /&gt;
Let &amp;lt;math&amp;gt;s_L(n)&amp;lt;/math&amp;gt; denote the number of words of length &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;L&amp;lt;/math&amp;gt;.  The [[ordinary generating function]] for &amp;#039;&amp;#039;L&amp;#039;&amp;#039; is the [[formal power series]]&lt;br /&gt;
&amp;lt;math display=block&amp;gt;S_L(z) = \sum_{n \ge 0} s_L(n) z^n \ . &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The generating function of a language &amp;#039;&amp;#039;L&amp;#039;&amp;#039; is a [[rational function]] if &amp;#039;&amp;#039;L&amp;#039;&amp;#039; is regular.&amp;lt;ref name=Honkala&amp;gt;{{cite journal | zbl=0675.68034 | last=Honkala | first=Juha | title=A necessary condition for the rationality of the zeta function of a regular language | journal=Theor. Comput. Sci. | volume=66 | issue=3 | pages=341–347 | year=1989 | doi=10.1016/0304-3975(89)90159-x | doi-access=free }}&amp;lt;/ref&amp;gt;  Hence for every regular language &amp;lt;math&amp;gt;L&amp;lt;/math&amp;gt; the sequence &amp;lt;math&amp;gt;s_L(n)_{n \geq 0}&amp;lt;/math&amp;gt; is [[constant-recursive sequence|constant-recursive]]; that is, there exist an [[integer]] constant &amp;lt;math&amp;gt;n_0&amp;lt;/math&amp;gt;, [[complex number|complex]] constants &amp;lt;math&amp;gt;\lambda_1,\,\ldots,\,\lambda_k&amp;lt;/math&amp;gt; and complex [[polynomial]]s &amp;lt;math&amp;gt;p_1(x),\,\ldots,\,p_k(x)&amp;lt;/math&amp;gt; such that for every &amp;lt;math&amp;gt;n \geq n_0&amp;lt;/math&amp;gt; the number &amp;lt;math&amp;gt;s_L(n)&amp;lt;/math&amp;gt; of words of length &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;L&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;s_L(n)=p_1(n)\lambda_1^n+\dotsb+p_k(n)\lambda_k^n&amp;lt;/math&amp;gt;.&amp;lt;ref&amp;gt;Flajolet &amp;amp; Sedgweick, section V.3.1, equation (13).&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web|url=https://cs.stackexchange.com/q/1048 |title=Number of words in the regular language $(00)^*$|website=cs.stackexchange.com|access-date=10 April 2018}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web| url = https://cs.stackexchange.com/q/11333| title = Proof of theorem for arbitrary DFAs}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web|url=https://cs.stackexchange.com/q/1045 |title=Number of words of a given length in a regular language|website=cs.stackexchange.com|access-date=10 April 2018}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, non-regularity of certain languages &amp;lt;math&amp;gt;L&amp;#039;&amp;lt;/math&amp;gt; can be proved by counting the words of a given length in&lt;br /&gt;
&amp;lt;math&amp;gt;L&amp;#039;&amp;lt;/math&amp;gt;. Consider, for example, the [[Dyck language]] of strings of balanced parentheses. The number of words of length &amp;lt;math&amp;gt;2n&amp;lt;/math&amp;gt;&lt;br /&gt;
in the Dyck language is equal to the [[Catalan number]] &amp;lt;math&amp;gt;C_n\sim\frac{4^n}{n^{3/2}\sqrt{\pi}}&amp;lt;/math&amp;gt;, which is not of the form &amp;lt;math&amp;gt;p(n)\lambda^n&amp;lt;/math&amp;gt;,&lt;br /&gt;
witnessing the non-regularity of the Dyck language. Care must be taken since some of the eigenvalues &amp;lt;math&amp;gt;\lambda_i&amp;lt;/math&amp;gt; could have the same magnitude. For example, the number of words of length &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; in the language of all even binary words is not of the form &amp;lt;math&amp;gt;p(n)\lambda^n&amp;lt;/math&amp;gt;, but the number of words of even or odd length are of this form; the corresponding eigenvalues are &amp;lt;math&amp;gt;2,-2&amp;lt;/math&amp;gt;. In general, for every regular language there exists a constant &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; such that for all &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, the number of words of length &amp;lt;math&amp;gt;dm+a&amp;lt;/math&amp;gt; is asymptotically &amp;lt;math&amp;gt;C_a m^{p_a} \lambda_a^m&amp;lt;/math&amp;gt;.&amp;lt;ref&amp;gt;Flajolet &amp;amp; Sedgewick (2002) Theorem V.3&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;zeta function&amp;#039;&amp;#039; of a language &amp;#039;&amp;#039;L&amp;#039;&amp;#039; is&amp;lt;ref name=Honkala/&amp;gt;&lt;br /&gt;
&amp;lt;math display=block&amp;gt;\zeta_L(z) = \exp \left({ \sum_{n \ge 0} s_L(n) \frac{z^n}{n} }\right) . &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The zeta function of a regular language is not in general rational, but that of an arbitrary [[cyclic language]] is.&amp;lt;ref&amp;gt;{{cite journal | zbl=0797.68092 | last1=Berstel | first1=Jean | last2=Reutenauer | first2=Christophe | title=Zeta functions of formal languages | journal=Trans. Am. Math. Soc. | volume=321 | number=2 | pages=533–546 | year=1990 | doi=10.1090/s0002-9947-1990-0998123-x}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;Berstel &amp;amp; Reutenauer (2011) p.222&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generalizations ==&lt;br /&gt;
The notion of a regular language has been generalized to infinite words (see [[ω-automaton|ω-automata]]) and to trees (see [[tree automaton]]).&lt;br /&gt;
&lt;br /&gt;
[[Rational set]] generalizes the notion (of regular/rational language) to monoids that are not necessarily [[free monoid|free]]. Likewise, the notion of a recognizable language (by a finite automaton) has namesake as [[recognizable set]] over a monoid that is not necessarily free. Howard Straubing notes in relation to these facts that &amp;quot;The term &amp;quot;regular language&amp;quot; is a bit unfortunate. Papers influenced by [[Samuel Eilenberg|Eilenberg]]&amp;#039;s monograph&amp;lt;ref name=&amp;quot;Eilenberg1974&amp;quot;&amp;gt;{{cite book|author=Samuel Eilenberg|title=Automata, languages, and machines|publisher=Academic Press}} in two volumes &amp;quot;A&amp;quot; (1974, {{isbn|9780080873749}}) and &amp;quot;B&amp;quot; (1976, {{isbn|9780080873756}}), the latter with two chapters by Bret Tilson.&amp;lt;/ref&amp;gt; often use either the term &amp;quot;recognizable language&amp;quot;, which refers to the behavior of automata, or &amp;quot;rational language&amp;quot;, which refers to important analogies between regular expressions and rational [[power series]]. (In fact, Eilenberg defines rational and recognizable subsets of arbitrary monoids; the two notions do not, in general, coincide.) This terminology, while better motivated, never really caught on, and &amp;quot;regular language&amp;quot; is used almost universally.&amp;quot;&amp;lt;ref&amp;gt;{{cite book | last=Straubing | first=Howard | title=Finite automata, formal logic, and circuit complexity | url=https://archive.org/details/finiteautomatafo0000stra | url-access=registration | series=Progress in Theoretical Computer Science | location=Basel | publisher=Birkhäuser | year=1994 | isbn=3-7643-3719-2 | zbl=0816.68086 | page= [https://archive.org/details/finiteautomatafo0000stra/page/8 8] }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Rational series]] is another generalization, this time in the context of a [[formal power series over a semiring]]. This approach gives rise to [[weighted rational expression]]s and [[weighted automata]]. In this algebraic context, the regular languages (corresponding to [[Boolean semiring|Boolean]]-weighted rational expressions) are usually called &amp;#039;&amp;#039;rational languages&amp;#039;&amp;#039;.&amp;lt;ref&amp;gt;Berstel &amp;amp; Reutenauer (2011) p.47&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite book | last=Sakarovitch | first=Jacques | title=Elements of automata theory | others=Translated from the French by Reuben Thomas | location=Cambridge | publisher=[[Cambridge University Press]] | year=2009 | isbn=978-0-521-84425-3 | zbl=1188.68177 | page = 86 }}&amp;lt;/ref&amp;gt; Also in this context, Kleene&amp;#039;s theorem finds a generalization called the [[Kleene–Schützenberger theorem]].&lt;br /&gt;
&lt;br /&gt;
== Learning from examples ==&lt;br /&gt;
{{main|Induction of regular languages}}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
{{reflist|group=note}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{refbegin}}&lt;br /&gt;
* {{cite book | last1=Berstel | first1=Jean | author-link1=Jean Berstel | last2=Reutenauer | first2=Christophe | title=Noncommutative rational series with applications&lt;br /&gt;
  | series=Encyclopedia of Mathematics and Its Applications | volume=137 | location=Cambridge | publisher=[[Cambridge University Press]]&lt;br /&gt;
  | year=2011 | isbn=978-0-521-19022-0 | zbl=1250.68007 }}&lt;br /&gt;
* {{cite book |last1=Eilenberg |first1=Samuel |author-link1=Samuel Eilenberg |title=Automata, Languages, and Machines. Volume A&lt;br /&gt;
  |series=Pure and Applied Mathematics |volume=58 |year=1974 |publisher=Academic Press |location=New York |zbl=0317.94045 }}&lt;br /&gt;
* {{cite book | first=Arto | last=Salomaa | author-link=Arto Salomaa | title=Jewels of Formal Language Theory | publisher=Pitman Publishing&lt;br /&gt;
  | isbn=0-273-08522-0 | year=1981 | zbl=0487.68064 }}&lt;br /&gt;
* {{cite book | first=Michael | last=Sipser | author-link = Michael Sipser | year = 1997 | title = Introduction to the Theory of Computation&lt;br /&gt;
  | publisher = PWS Publishing | isbn = 0-534-94728-X | zbl=1169.68300 | title-link=Introduction to the Theory of Computation }} Chapter 1: Regular Languages, pp.&amp;amp;nbsp;31–90. Subsection &amp;quot;Decidable Problems Concerning Regular Languages&amp;quot; of section 4.1: Decidable Languages, pp.&amp;amp;nbsp;152–155.&lt;br /&gt;
* Philippe Flajolet and Robert Sedgewick, &amp;#039;&amp;#039;[[Analytic Combinatorics]]&amp;#039;&amp;#039;: Symbolic Combinatorics.  Online book, 2002.&lt;br /&gt;
* {{cite book|author1=John E. Hopcroft |author2=Jeffrey D. Ullman | title=Introduction to Automata Theory, Languages, and Computation| year=1979| publisher=Addison-Wesley| isbn=0-201-02988-X|title-link=Introduction to Automata Theory, Languages, and Computation }}&lt;br /&gt;
* {{cite book | author=Alfred V. Aho and John E. Hopcroft and Jeffrey D. Ullman | title=The Design and Analysis of Computer Algorithms | url=https://archive.org/details/designanalysisof00ahoarich | url-access=registration | publisher=Addison-Wesley | year=1974 | isbn=978-0-201-00029-0 }}&lt;br /&gt;
&lt;br /&gt;
{{refend}}&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
* [[Stephen Cole Kleene|Kleene, S.C.]]: Representation of events in nerve nets and finite automata. In: Shannon, C.E., McCarthy, J. (eds.) Automata Studies, pp.&amp;amp;nbsp;3–41. Princeton University Press, Princeton (1956); it is a slightly modified version of his 1951 [[RAND Corporation]] report of the same title, [http://www.rand.org/content/dam/rand/pubs/research_memoranda/2008/RM704.pdf RM704].&lt;br /&gt;
* {{cite book | last1 = Sakarovitch | first1 = J | title = Trends, Techniques, and Problems in Theoretical Computer Science | year = 1987| chapter = Kleene&amp;#039;s theorem revisited | volume = 1987 | pages = 39–50 | doi = 10.1007/3540185356_29 | series = Lecture Notes in Computer Science | isbn = 978-3-540-18535-2 }}&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* {{CZoo|Class REG|R#reg}}&lt;br /&gt;
&lt;br /&gt;
{{Formal languages and grammars}}{{Complexity classes}}&lt;br /&gt;
[[Category:Formal languages]]&lt;br /&gt;
[[Category:Finite-state machines]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Jochen Burghardt</name></author>
	</entry>
</feed>