• edited by
1,356 views

2 Answers

Best answer
2 2 votes

Given language is L={an bn+1   |n≥0} .

Strings in the language is { b ,abb,aabbb ,........................}

So CFG for above grammar will be

S→aSb | b

• selected by
0 0 votes

Cannot getting the question properly

L=((anbn)+)!

L=(anbn).(an-1.bn-1).(an-2bn-2)............a2b2.ab

each of then can be represent by a CFL

Like for {anbn}

S->aSb|ab

Position:
Show:

Related questions

0 0 votes
2 2 answers
762
762 views
shekhar chauhan asked Jun 6, 2016
762 views
What is the relationship between a Language -to- Grammar and a Grammar -to -Language .Give an example for both.A. One -to- ManyB. One -to- OneC. Many -to- One D. Many to-...
1 1 vote
1 1 answer
91
91 views
GO Classes asked Sep 3
91 views
Consider the grammar $G$ with productions :$$\begin{aligned}S &\to aB \mid \epsilon \\B &\to Sbb\end{aligned}$$Which option is correct?$L(G)=\{a^n b^{2n}\mid n\ge 0\}$ an...
0 0 votes
1 answers 1 answer
781
781 views
Manu Thakur asked Aug 31, 2017
781 views
Please solve the b and c parts:
2 2 votes
1 answers 1 answer
802
802 views
shekhar chauhan asked Jun 6, 2016
802 views
What is the Language represented by this given Grammar ?S - AS1S1 - aS1b /epsA ->aA /epsPlease solve it completely don't write just Answer because it need to know the ...