368 views

2 Answers

1 1 vote
See the L={a^n|n≄0} definded over ššŗ ={a,b} is containing the strings with number of a's ({eps, a, aa, aaa....})

now complement of this language must not contain eps,a, aa... so on to which we can also infer as It must contain atleast 1 b makin the language to be {b, ab, ba, aab, abb, aba, baa, bab,bba, bbb....}
so we can write it as (a+b)* b (a+b)* OR as L= {(a+b)^n b (a+b)^m | m,n>= 0}
Ā 
Position:
Show:

Related questions

0 0 votes
1 1 answer
33
33 views
GO Classes asked 11 hours ago
33 views
Let $L=\{w\in\{a,b\}^*\mid n_a(w)\ne n_b(w)\}$. Which statements are correct?$L$ is regular.Ā $L$ is DCFL.Ā $L$ is not CFL.Ā A DPDA can maintain the current surplus using th...
0 0 votes
1 1 answer
17
17 views
GO Classes asked 11 hours ago
17 views
Let $L_1=\{wcw^R\mid w\in\{a,b\}^*\}$ and $L_2=\{ww^R\mid w\in\{a,b\}^*\}$. Which statements are correct?$L_1$ is a DCFL.Ā $L_2$ is a DCFL.Ā $L_2$ is a CFL.Ā $L_2$ is not ac...
0 0 votes
1 1 answer
16
16 views
GO Classes asked 11 hours ago
16 views
Let $L=\{a^i b^j c^k\mid i=j\text{ or }j=k,\ i,j,k\ge0\}$. Which statements are correct?$L$ is a CFL.Ā $L$ is a DCFL.Ā $L$ can be written as union of two CFLs: one checking...
0 0 votes
1 1 answer
14
14 views
GO Classes asked 11 hours ago
14 views
Let $L_1=\{a^n b^n\mid n\ge0\}$, $L_2=\{a^n b^{2n}\mid n\ge0\}$, and $L=L_1\cup L_2$.Which statements are correct?$L_1$ is a DCFL.Ā $L_2$ is a DCFL.Ā $L$ is a CFL.Ā $L$ is a...