1,505 views
0 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 1 vote

it can't be expressed by context free grammar.

CSG is possible.☺

• selected by
Position:
Show:

Related questions

3 3 votes
2 2 answers
1.1k
1.1k views
Jiten008 asked Oct 24, 2023
1,113 views
Can anyone explain $\overline{ww}$ is $CFL$ or $CSL$ And if $CFL$ can you write the equivalent $CFG$ for this ?
1 1 vote
1 answers 1 answer
2.5k
2.5k views
aditi19 asked Mar 7, 2019
2,477 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 0 votes
1 1 answer
2.0k
2.0k views
aditi19 asked Mar 2, 2019
1,952 views
S->A | BA→ εB->aBbB->bwhat is the complement of the language of this grammar?
0 0 votes
0 0 answers
660
660 views
jatin khachane 1 asked Oct 14, 2018
660 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 langua...