retagged by
206 views
2 votes
2 votes

Match the following lists.

The conditions on the language description $L = \{a^i \ b^j \ c^k\}$ are given in List I and respective grammars are given in List II.

$\begin{array}{|c|c|c|c|} \hline {} & \text{List I} & {} & \text{List II} \\ \hline A. & k=i+j & G_1: & S \rightarrow aSc\mid B;  B \rightarrow aBb\mid \epsilon  \\ \hline B. & k=i+2j & G_2: & S \rightarrow aSc\mid B; B \rightarrow bBcc\mid \epsilon \\ \hline C. & i=j+k & G_3: & S \rightarrow aSc\mid B; B \rightarrow bBc \mid \epsilon \\ \hline \end{array}$

  1. $A:G_1, B:G_2, C:G_3$
  2. $A:G_3, B:G_2, C:G_1$
  3. $A:G_1, B:G_3, C:G_2$
  4. $A:G_3, B:G_1, C:G_2$
retagged by

1 Answer

0 votes
0 votes

$G3:$ Take some string:

$S\rightarrow aSc\rightarrow aaScc\rightarrow aaBcc\rightarrow aabBccc\rightarrow aabccc: a^2b^1c^3(a^ib^jc^k):k=i+j:A$

Option A and C eliminated

 

$G1:$ Take some string:

$S\rightarrow aSc\rightarrow aaScc\rightarrow aaBcc\rightarrow aaaBbcc\rightarrow aaabcc: a^3b^1c^2(a^ib^jc^k):i=j+k:C$

Option D eliminated


$Ans: B$

Answer:

Related questions

4 votes
4 votes
0 answers
2
Bikram asked Aug 12, 2017
629 views
The number of possible finite automata with two states $a0$ and $a1$ (where $a0$ is always the initial state over the alphabet $\{p, q\}$) which accepts empty language is...
0 votes
0 votes
1 answer
3
Bikram asked Aug 12, 2017
285 views
What is the regular expression corresponding to the above DFA?$(01 + (00)^*1)^*$$0^*10^*$$(10 + 0(00)^* (1 + 01) )^*$$0(00)^*10^*$