recategorized
4,961 views
1 votes
1 votes

Given two languages :

$L_{1}=\left\{(ab)^{n} a^{k} | n > k, k \geq 0\right\}$

$L_{2}=\left\{a^{n}b^{m} | n \neq m\right\}$

Using pumping lemma for regular language, it can be shown that 

  1. $L_{1}$ is regular and $L_{2}$ is not regular. 
  2. $L_{1}$ is not regular and $L_{2}$ is regular. 
  3. $L_{1}$ is regular and $L_{2}$ is regular.
  4. $L_{1}$ is not regular and $L_{2}$ is not regular. 
recategorized

3 Answers

Best answer
1 votes
1 votes

Theorem (Pumping Lemma):
–Let L be a regular language, recognized by a DFA with p states.
–Let x ∈L with |x| ≥p.
–Then x can be written as x = u v w where |v| ≥1, so that for all z ≥0, uvz w ∈L.
–In fact, it is possible to subdivide x in a particular way, withthe total length of u and v being at most p: | u v | ≤p.
1)assume   (ab)n b
is regular

consider x = abababaa

u =ababab

v = a

w = a

let z = 2

u (a)2w

abababaaa must also belong to L but it can't because n = k here... hence not regular

2)assume an bm is regular...

aaaabb

u = aaaa

v= b

w = b

z = 3

u (b)3w

ubbbw

aaaabbbb must also belong to language L but...it doesn't belong bcoz...here n = m...so not regular...hence answer is (d)

selected by
2 votes
2 votes

whenever pumping lemma is there it can only be used to prove that language is not regular or not context free 

so here ans is D L1L1 is not regular and L2L2 is not regular

1 votes
1 votes

L1 = {(ab)nak|n > k, k ≥ 0}:- Here is comparison between n and k so  that comparison not allowed finite automata so that it not regular language 

L2 = {anbm|n not equal m}:- here is also comparison between n and m so  it is not regular language 

Answer:

Related questions

6 votes
6 votes
7 answers
1
3 votes
3 votes
1 answer
3
makhdoom ghaya asked Aug 1, 2016
882 views
Match the following $:$ $\begin{array} {clcl} & \textbf{List – I} && \textbf{List – II} \\ \text{a.}& \text{Context free grammar} & \text{i.} & \text{Linear bounded a...