recategorized
1,903 views
0 votes
0 votes

Consider the following two languages:

$L_1 =\{a^n b^l a^k \mid n+l+k > 5\}$

$L_2 =\{a^n b^l a^k \mid n> 5, l>3, k \leq l \}$

Which one of the following is true?

  1. $L_1$ is regular language and $L_2$ is not regular language
  2. Both $L_1$ and $L_2$ are regular language
  3. Both $L_1$ and $L_2$ are not regular language
  4. $L_1$ is not regular language and $L_2$ is regular language
recategorized

1 Answer

2 votes
2 votes
I think A is the answer.

L1 is regular but not L2.

In L2 we have to remember the value of l (no of b's) so that it can be compared with k.

regular grammar cannot remember a value (It has no stack)

Thus it is not regular

 

Correct me if i am wrong!
Answer:

Related questions

1.3k
views
3 answers
4 votes
go_editor asked Jul 20, 2016
1,346 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)$
3.5k
views
1 answers
1 votes
go_editor asked Jul 20, 2016
3,503 views
Assume the statements $S_1$ and $S_2$ given as:$S_1$: Given a context free grammar G, there exists an algorithm for determining whether L(G) is infinite.$S_2$: ... $S_2$ are not correct$S_1$ is not correct and $S_2$ is correct
1.6k
views
1 answers
1 votes
go_editor asked Jul 20, 2016
1,617 views
LL grammar for the language $L = \{a^n b^m c^{n+m} \mid m \geq 0, n \geq 0\}$ ... bS_1c \mid \lambda$ S \rightarrow aSc \mid S_1 \lambda ; S_1 \rightarrow bS_1c \mid \lambda$
3.6k
views
2 answers
1 votes
go_editor asked Jul 20, 2016
3,637 views
The number of states in a minimal deterministic finite automaton corresponding to the language $L=\{ a^n \mid n \geq 4 \}$ is3456