2,353 views

3 Answers

1 1 vote

See this language is not CFL because the b's appearing are not in Arithmetic Progression and hence due to no presence of pattern our push down automata machine cannot accept it but the language is NOT CSL also as in N we have 0 so epsilon wont be present in CSL.

0 0 votes
a^n b^m where m is a multiple of n:

then n = mk so the above language can  be replaced as: ( a^mk b^m) this is a CFL..
0 0 votes
m = nk so the above language can be replaced as: ( a^n b^(nk))

yes L is context free, as we can push k time  a’s and pop an a for each occurrence of b. Hence, we get a mid-point here as well
Position:
Show:

Related questions

3 3 votes
2 answers 2 answers
2.4k
2.4k views
kanahanin asked Dec 8, 2015
2,400 views
Is the language given by $ww^R ww^R$, where $w$ is any string over the binary alphabet, Context Free or Context Sensitive?
4 4 votes
0 0 answers
3.5k
3.5k views
yg92 asked Feb 8, 2017
3,544 views
Regular languages are not closed under Subset - Example anbn is subset of a*b* which is non-regular.DCFL/CFL languages are not closed under Subset - Example anbncn is su...
9 9 votes
3 3 answers
3.7k
3.7k views
Akash Kanase asked Nov 25, 2015
3,667 views
Does CSL contains empty string ? I've got contradictory statements from various sources.Can someone for sure say whether empty string is CSL or not ! Please give the refe...
2 2 votes
2 2 answers
1.3k
1.3k views
♥_Less asked Jan 29, 2018
1,289 views
(a^n)^m b^n where n>=0 and m>1 isa) regularb) cflc) csld) none