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 b∗aa∗(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.