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

If the final states and non-final states in the DFA below are interchanged, then which of the following languages over the alphabet { a, b } will be accepted by the new DFA?



A
Set of all strings that begin with either an a or ab
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Set of all strings that do not end with ab
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Set of all strings that do not contain the substring ab.
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
The set described by the regular expression baa(ba)b
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B Set of all strings that do not end with ab
To find complement of a DFA we need to interchange final and non-final states of DFA.



Above DFA generates all strings end with ab. Complement of DFA accepts all strings do not end with ab.

Complement of given DFA is :


it accepts all strings that do not end with,

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Permutation
QUANTITATIVE APTITUDE
Watch in App
Join BYJU'S Learning Program
CrossIcon