Chapter 1: Q14E (page 85)
- Show that ifis a DFA that recognizes language, swapping the accept and non accept states inyields a new DFA recognizing the complement of. Conclude that the class of regular languages is closed under complement.
- Show by giving an example that ifM is an NFA that recognizes language C swapping the accept and non accept states in Mdoesn’t necessarily yield a new NFA that recognizes the complement of C. Is the class of languages recognized by NFAs closed under complement? Explain your answer.
Short Answer
In solution (a),whole complement class of regular languages is complete.
In solution (b), NFAs identify a class of languages that is closed under complement.