938 views
0 votes
0 votes

Consider the language $F=\{a^{i}b^{j}c^{k}|i,j,k\geq 0$ $\text{and if}$ $ i = 1$ $\text{then} $ $ j=k\}.$

  1. Show that $F$ is not regular.
  2. Show that $F$ acts like a regular language in the pumping lemma. In other words, give a pumping length $p$ and demonstrate that $F$ satisfies the three conditions of the pumping lemma for this value of $p.$
  3. Explain why parts $(a)$ and $(b)$ do not contradict the pumping lemma.

1 Answer

2 votes
2 votes
a. case 1: when i=1 F=$ab^nc^n$. it is DCFG

    case 2: when i$\neq$1 F=$a^ib^jc^k$ | i,j,k$\geq$0

                 this is aaa*b*c* $\bigcup$ b*c*

   F=$ab^nc^n$ $\bigcup$ {aaa*b*c* $\bigcup$ b*c*}

    =DCFG $\bigcup$ regular

    =DCFG

_____________________________________________________________________

b. Three conditions of Pumping Lemma

    for any regular language L, there exists an integer p(pumping length) such that for all strings w$\varepsilon$L and |w|$\geq$p (i.e.
    the length of string is atleast p), there exists x, y, z such that w=xyz (the string can be broken down into three parts) and

    1. |xy|$\leq$p length of xy must not exceed the pumping length

    2. |y|$\geq$1 y cannot be null string

    3. for all integer i$\geq$0, $xy^iz\varepsilon L$

    taking p=4

    case 1: x=ε, y=bbbb, z=ε

                w=$(bbbb)^i$

                for i=0, w=ε

                for i=2, w=bbbbbbbb

                for all i, w belongs to L

                It behaves like regular language

  case 2: x=aa, y=bb, z=c

               w=$aa(bb)^ic$

               i=0, w=aac

               i=5, w=aabbbbbbbbbbc

               for all i, w belongs to L

 

Pumping Lemma test will fail when x=a, y=bbb, z=ccc
edited by

Related questions

0 votes
0 votes
0 answers
3
admin asked Apr 30, 2019
287 views
Let $\sum=\{0,1,+,=\}$ and $ADD=\{x=y+z|x,y,z$ $\text{are binary integers,and}$ $x$ $\text{is the sum of}$ $y$ $\text{and}$ $z\}.$ Show that $\text{ADD}$ is not a regular...