retagged by
444 views

3 Answers

0 votes
0 votes
If I take k=1 in a^(n)b^(n+k) then it will become a^(n)b^(n+1) i.e. for every a i need one extra b.This requires comparison and thus requires stack.So we cannot make a DFA fo this and thus not regular.
0 votes
0 votes
For both parts of the given statement, both of them are irregular. And both of them cannot be expressed by a DFA as both need memory to remember the number of a's (in first one) and number of b's(in second one). Hence, an union operation between the two will also produce an irregular language.
0 votes
0 votes

\begin{align*} L = \left \{ a^nb^{n+k} \;\; : n\geq 0,k\geq 1 \right \} \cup \left \{ a^{n+k}b^{n} \;\; : n\geq 0,k\geq 3 \right \} \end{align*}

Assuming L is regular.  Let $m$ be the pumping length given by the pumping lemma.

We pick our string , $w =$ $a^n b^{2n}$ , when $n=k$ and $n,k \geq 3$ 

then $w \in L$ must be true,

for $|w|>m$ assume n = m,

$w =$ $a^m b^{2m}$ ,

Then from the pumping lemma there exists $x, y, z \in Σ^{∗}$ such that w = xyz , |xy| ≤ m and |y| ≥ 1.

$w_{i} = xy^{i}z$ 

 y must contain entirely of a's 

 suppose $|y|=k$ and  $1 \leq k \leq m$,

then $|xy^{1}z|$ = $a^{m}a^{k}b^{2m}$ 

if  $k = m$ and $i = 1,$ 

= $|xy^{1}z|$ = $a^{2m}b^{2m}$  

This shows that $n_{a} = n_{b}$ but no such string exists in L because in L either $n_{a} > n_{b}$ or $n_{a} < n_{b}$.

This indicates that the assumption that L is regular must be false. 

     Hence L is not regular

reshown by

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
0 answers
2
Naveen Kumar 3 asked Apr 12, 2019
154 views
In the chain code language in Exercise 24, Section 3.1, let $L$ be the set of all $w ∈$ {$u,r,l,d$}$^*$ that describe rectangles. Show that $L$ is not a regular languag...
0 votes
0 votes
2 answers
3