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.