1
You visited us
1
times! Enjoying our articles?
Unlock Full Access!
Byju's Answer
Other
Other
Regular Grammars Part - 1
Which of the ...
Question
Which of the following languages is generated by the given grammer ?
S
→
a
S
∣
b
S
∣
ϵ
A
{
a
,
b
}
∗
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
{
a
n
b
m
∣
n
,
m
≥
0
}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
{
a
n
∣
n
≥
0
}
∪
{
b
n
∣
n
≥
0
}
∪
{
a
n
b
n
∣
n
≥
0
}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
{
w
ϵ
{
a
,
b
}
∗
∣
w
h
a
s
e
q
u
a
l
n
u
m
b
e
r
o
f
a
′
s
a
n
d
b
′
s
}
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is
A
{
a
,
b
}
∗
G :
S
→
a
S
∣
b
S
∣
ϵ
L(G) =
{
a
,
b
}
∗
.
Suggest Corrections
0
Similar questions
Q.
Consider the regular grammer below:
S
→
b
S
∣
a
A
∣
ϵ
A
→
a
S
∣
b
A
The Myhill- Nerode equivalence classes for the language generated by the grammer are
Q.
Consider the following CFG.
S
→
a
S
b
|
b
S
a
|
a
S
|
b
S
|
a
Which of the following string cannot be generated by given CFG?
Q.
Identify the language generated by the following grammar, where S is the start variable.
S
→
X
Y
X
→
a
X
|
a
Y
→
a
Y
b
|
ϵ
Q.
Consider the context-free grammers over the alphabet { a, b, c } given below. S and T are non- terminals.
G
1
:
S
→
a
S
b
∣
T
,
T
→
c
T
∣
ϵ
G
2
:
S
→
b
S
a
∣
T
,
T
→
c
T
∣
ϵ
T
h
e
l
a
n
g
u
a
g
e
L
(
G
1
)
∩
L
(
G
2
)
i
s
Q.
If G is a grammer with productions
S
→
S
a
S
∣
a
S
b
∣
b
S
a
∣
S
S
∣
ϵ
where S is the start variable, then which one of the following strings is not generated by G?
View More
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
Related Videos
Regular Grammars Part - 1
OTHER
Watch in App
Explore more
Regular Grammars Part - 1
Other Other
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
AI Tutor
Textbooks
Question Papers
Install app