Question: Find CFG ' s and Regular Grammer that generate these regular languages over the alphabet S = { a , b } : 1 .
Find CFGs and Regular Grammer that generate these regular languages over the alphabet
Sa b:
The language defined by aaa b
The language defined by a bbbb aaaa b
All strings without the substring aaa.
All strings that end in b and have an even number of bs in total.
The set of all strings of odd length.
All strings with exactly one a or exactly one b
All strings with an odd number of as or an even number of bs
For the following CFGs find regular expressions that define the same language
and describe the language.
SaX bS aIb
X aX a
S bS aX b
X bX aS a
S aaS abSIbaSlbbSIA
S aB IbA I A
A aS
B bS
S aB bA
A aB a
B bA b
S aS bX a
X aX bY a
Y aY a
S aS bXl a
X aXI bY bZ a
Y aY a
Z aZ bW
W aW a
S bS aX
X bS I aY
YraYlbYla lb
i Starting with the alphabet
Sab
find a CFG that generates all regular expressions.
ii Is this language regular?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
