710 views
0 votes
0 votes
L(G)={$a^nb^nc^n$ | n>=1}

S->aAc

A->bA | b

can someone tell me what is wrong with this approach?

1 Answer

Best answer
1 votes
1 votes

it can't be expressed by context free grammar.

CSG is possible.☺

selected by

Related questions

3 votes
3 votes
2 answers
1
1 votes
1 votes
1 answer
2
aditi19 asked Mar 7, 2019
863 views
what is the CFG for the language L=w where number of a’s in w+number of b’s in w=number of c’s in whow to approach this?
0 votes
0 votes
1 answer
3
aditi19 asked Mar 2, 2019
826 views
S->A | BA→ εB->aBbB->bwhat is the complement of the language of this grammar?
0 votes
0 votes
0 answers
4
jatin khachane 1 asked Oct 14, 2018
318 views
L = { w ∈ {a,b}* : a(w) = b(w) }We're using the notation:a(w) = number of a's in a string w b(w) = number of b's in a string w S⇾ aSbS | bSaS | ε Doubt:Is the same l...