recategorized
1,541 views
1 votes
1 votes

LL grammar for the language $L = \{a^n b^m c^{n+m} \mid m \geq 0, n \geq 0\}$ is

  1. $ S \rightarrow aSc \mid S_1 ; S_1 \rightarrow bS_1c \mid \lambda$
  2. $ S \rightarrow aSc \mid S_1 \lambda \mid S_1 \mid \lambda ; S_1 \rightarrow bS_1c $
  3. $ S \rightarrow aSc \mid S_1 \lambda \mid S_1 \mid \lambda ; S_1 \rightarrow bS_1c \mid \lambda$
  4. $ S \rightarrow aSc \mid S_1 \lambda ; S_1 \rightarrow bS_1c \mid \lambda$
recategorized

1 Answer

0 votes
0 votes

Answer is C

in option A) n > 0 and m >0 in every condition so m=0 is not satisfied

in option B) There is no way to end the cycle S1-> bS1c

in option D) same condition as A

edited by
Answer:

Related questions

4 votes
4 votes
3 answers
3
go_editor asked Jul 20, 2016
1,266 views
Regular expression for the language $L=w \in \{0,1\}* \mid w$ has no pair of consecutive zeros $\}$ is$(1+010)*$$(01+10)*$$(1+010)*(0+ \lambda)$$(1+01)* (0+\lambda)$
1 votes
1 votes
2 answers
4
go_editor asked Jul 20, 2016
3,580 views
The number of states in a minimal deterministic finite automaton corresponding to the language $L=\{ a^n \mid n \geq 4 \}$ is3456