...
Compiler-Design
May 4, 2024
Theory-of-Computation
May 4, 2024
Compiler-Design
May 4, 2024
Theory-of-Computation
May 4, 2024

Finite-Automata

Question 4

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 ,ε}
Question 4 Explanation: 
The Σ= {a} and the given NFA accepts the strings {a, aa, aaa, aaaa, ……….} i.e. the language accepted by the NFA can be represented by the regular expression: {a+}
Hence the complement of language is: {a* − a+} = {ϵ}
Correct Answer: B
Question 4 Explanation: 
The Σ= {a} and the given NFA accepts the strings {a, aa, aaa, aaaa, ……….} i.e. the language accepted by the NFA can be represented by the regular expression: {a+}
Hence the complement of language is: {a* − a+} = {ϵ}

Leave a Reply

Your email address will not be published. Required fields are marked *