1
You visited us
1
times! Enjoying our articles?
Unlock Full Access!
Byju's Answer
Consider the ...
Question
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
Open in App
Solution
The given right- linear grammer can be converted to the following DFA.
The machine accepts all strings over the alphabet {a, b} which have an even number of a's. It is a minimal DFA.
So Myhill-Nerode equivalnce classes for the languages is nothing but the set of strings reaching S and A respectively.
S =
(
w
∈
(
a
+
b
)
∗
#
}
a
(
w
)
is
even
A =
(
w
∈
(
a
+
b
)
∗
#
}
a
(
w
)
is
odd
Suggest Corrections
0
Similar questions
Q.
Consider the grammer given below:
S
→
x
B
∣
y
A
A
→
x
∣
x
S
∣
y
A
A
B
→
y
∣
y
S
∣
y
B
B
Consider the following strings.
(i) xxyyx
(ii) xxyyxy
(iii) xyxy
(iv) yxxy
(v) yxx
(vi) xyx
Which of the above strings are generated by the grammer?
Q.
Which of the following languages is generated by the given grammer ?
S
→
a
S
∣
b
S
∣
ϵ
Q.
Consider the following Problems,
P
1
and
P
2
:
P
1
: Checking whether a regular grammer is unambiguous.
P
2
: Checking whether a given context free grammer is ambiguous.
Which of the above problems is (are) decidable?
Q.
Consider the following expression grammer 'G'.
A
→
B
|
a
|
C
B
D
B
→
C
|
b
C
→
A
|
c
D
→
d
Which of the following grammer is non-left recursive but is equivalent to G?
Q.
Consider the following grammar G
S
→
b
S
|
a
A
|
b
A
→
b
A
|
a
B
B
→
b
B
|
a
S
|
a
Let
N
a
(
w
)
a
n
d
N
b
(
w
)
denote the number of a's and b's in a string w respectively. The language L(G)
⊆
{a,b}
+
generated by G is
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
Manufacture of Acids and Bases
Watch in App
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