2011
DOI: 10.1016/j.ipl.2011.03.019
|View full text |Cite
|
Sign up to set email alerts
|

Parikhʼs theorem: A simple and direct automaton construction

Abstract: Parikh's theorem states that the Parikh image of a context-free language is semilinear or, equivalently, that every context-free language has the same Parikh image as some regular language. We present a very simple construction that, given a context-free grammar, produces a finite automaton recognizing such a regular language.

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

1
55
0

Year Published

2011
2011
2023
2023

Publication Types

Select...
8
1

Relationship

3
6

Authors

Journals

citations
Cited by 48 publications
(56 citation statements)
references
References 16 publications
1
55
0
Order By: Relevance
“…We show that given a context-free grammar G in program normal form with pr variables, we can construct a regular grammar AG satisfying Π(L(AG)) = Π(L(G)) in O(|Gi| f (pr ) ) time and space (for some function f ). For this we strengthen a recent result of [8], which shows that such a grammar can be constructed in O(|G| f (v) ) time and space, where v is the total number of variables of G. We start by defining the grammar AG. DEFINITION 5.…”
Section: Grammars Of Arbitrary Size: a Polynomial Casesupporting
confidence: 54%
“…We show that given a context-free grammar G in program normal form with pr variables, we can construct a regular grammar AG satisfying Π(L(AG)) = Π(L(G)) in O(|Gi| f (pr ) ) time and space (for some function f ). For this we strengthen a recent result of [8], which shows that such a grammar can be constructed in O(|G| f (v) ) time and space, where v is the total number of variables of G. We start by defining the grammar AG. DEFINITION 5.…”
Section: Grammars Of Arbitrary Size: a Polynomial Casesupporting
confidence: 54%
“…By suitably combining that result (in particular the polynomial conversion in the case of NFAs accepting nonunary strings) with the above mentioned result from [2] and with a result by Pighizzini, Shallit, and Wang [9] concerning the unary case, we prove that each context-free grammar in Chomsky normal form with h variables can be converted into a Parikh equivalent DFA with 2 O(h 2 ) states. From the results concerning the unary case, it follows that this bound is tight.…”
Section: Introductionmentioning
confidence: 61%
“…We study this equivalence from a descriptional complexity point of view. Recently, Esparza, Ganty, Kiefer, and Luttenberger proved that each context-free grammar in Chomsky normal form (CNFG) with h variables can be converted into a Parikh equivalent NFA with O(4 h ) states [2]. In [4] it was proven that if G generates a bounded language then we can obtain a DFA with 2 h O(1) states, i.e., a number exponential in a polynomial of the number of variables.…”
Section: Introductionmentioning
confidence: 99%
“…Theorem 5 has lead to a simple algorithm for constructing an automaton whose language is Parikh-equivalent to the language of a given context-free grammar [EGKL11]. Theorem 7 was used in [EKL08a] to improve the complexity bound of [CCFR07] for computing the throughput of context-free grammars from O(n 4 ) to O(n 3 ).…”
Section: Discussionmentioning
confidence: 99%