wiz-icon
MyQuestionIcon
MyQuestionIcon
8
You visited us 8 times! Enjoying our articles? Unlock Full Access!
Question

Consider the regular expression :

R=(a+b)∗(aa+bb)(a+b)∗

Which deterministic finite automaton accepts the language represented by the regular expression R?

A
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D
In option (a) S3 and S4 together act as a permanent accept and can be therefore be collapsed into a single permanent accept state as shown below




This machine clearly accepts all strings containing the substring 'aa' or 'bb', which is same as regular expression R.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Linear Equation in 2 Variables
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon