1.

What is the complement of the language accepted by the NFA shown below? Assume ∑ = {a} and ε is the empty string.(a) Φ(b) ε(c) a(d) {a, ε}This question was posed to me in a job interview.My query is from Transformation from NFA to DFA in portion Finite Automata and Regular Expression of Compiler

Answer»

The correct answer is (B) ε

The explanation is: The given alphabet ∑ contains only one symbol {a} and the given NFA accepts all STRINGS with any NUMBER of OCCURRENCES of ‘a’. Hence the complement is an empty string.



Discussion

No Comment Found

Related InterviewSolutions