CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the regular grammer below:

SbSaAϵ

AaSbA

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

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Manufacture of Acids and Bases
Watch in App
Join BYJU'S Learning Program
CrossIcon