reopened by
1,272 views
0 votes
0 votes
Q:)The following CFG, S-> aB/ bA

A->a/ aS/ bAA

B -> b/ bS/ aBB

generates strings with

(a) Odd number of a's & odd number of b’s

(b) Even number of a's & even number of b's

(c) Equal number of a’s & b’s

(d) Odd number of a’s & even number of b’s
reopened by

2 Answers

1 votes
1 votes
equal number of a's and b's bcz take grammar and derive any string then u will get answer

Related questions

0 votes
0 votes
1 answer
1
Anusam asked Jul 16, 2018
374 views
If set contains∑={ a,b,c,d,e,f}then no of strings in ∑ of length 4 such that no symbol is used more than once in the string is ?
0 votes
0 votes
2 answers
3