1,326 views

2 Answers

3 votes
3 votes

L = {w / where w ={a ,b}} and Na(w)>=Nb(w)+1

L has number of a's greater than or equal to number of b's +1

L={b, abb,aabb,aaabb,aabbb......................}

S⟶S1S2

S2⟶aS2b / b

S1⟶aS1 /∈

we can represent language like this.

In S1 part we are representing and Na(w)>Nb(w)

In S2 part we  are representing  Na(w)=Nb(w)+1

So, we can say it is a CFL

edited by
0 votes
0 votes

L = {w / where w ={a ,b}*}

language: number of a's should be greater than number of b's in language

PDA is used to process  this language.

Related questions

1 votes
1 votes
0 answers
1
Ashish Roy asked Sep 7, 2017
379 views
What is the language accepted by the given Grammar ?S - aSa / bSb / a / b
1 votes
1 votes
2 answers
2
KISHALAY DAS asked Dec 10, 2016
1,290 views
1 votes
1 votes
2 answers
3