Question
S-> A| B| C
A-> aAa| B
B-> bB|bb
C->aCaa|D
D->baD|abD|aa
Eliminate e and unit productions and state the number of variables left?
a.
5
b.
4
c.
3
d.
2
Posted under Formal Languages and Automata Theory
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Given grammar G: S-> A| B| C A-> aAa| B B-> bB|bb C->aCaa|D D->baD|abD|aa Eliminate e and unit productions and state the number of variables left?
Similar Questions
Discover Related MCQs
Q. Which of the following variables in the given grammar is called live variable?
S->AB
A->a
View solution
Q. The format: A->aB refers to which of the following?
View solution
Q. Which of the following does not have left recursions?
View solution
Q. Every grammar in Chomsky Normal Form is:
View solution
Q. Which of the production rule can be accepted by Chomsky grammar?
View solution
Q. Given grammar G:
(1)S->AS
(2)S->AAS
(3)A->SA
(4)A->aa
Which of the following productions denies the format of Chomsky Normal Form?
View solution
Q. Which of the following grammars are in Chomsky Normal Form:
View solution
Q. With reference to the process of conversion of a context free grammar to CNF, the number of variables to be introduced for the terminals are:
S->ABa
A->aab
B->Ac
View solution
Q. In which of the following, does the CNF conversion find its use?
View solution
Q. Let G be a grammar. When the production in G satisfy certain restrictions, then G is said to be in ___________.
View solution
Q. Let G be a grammar: S->AB|e, A->a, B->b
Is the given grammar in CNF?
View solution
Q. Which of the following is called Bar-Hillel lemma?
View solution
Q. Which of the expressions correctly is an requirement of the pumping lemma for the context free languages?
View solution
Q. Let L be a CFL. Then there is an integer n so that for any u that belong to language L satisfying
|t|>=n, there are strings u, v, w, x, y and z satisfying
t=uvwxy.
Let p be the number of variables in CNF form of the context free grammar. The value of n in terms of p :
View solution
Q. Which of the following gives a positive result to the pumping lemma restrictions and requirements?
View solution
Q. Using pumping lemma, which of the following cannot be proved as ‘not a CFL’?
View solution
Q. State true or false:
Statement: We cannot use Ogden’s lemma when pumping lemma fails.
View solution
Q. Which of the following cannot be filled in the blank below?
Statement: There are CFLs L1 nad L2 so that ___________is not a CFL.
View solution
Q. The pumping lemma is often used to prove that a language is:
View solution
Q. What is the pumping length of string of length x?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Formal Languages and Automata Theory? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!