What is the complement of the language accepted by the NFA shown below? Assume ∑ = {a} and ϵ is the empty string

What is the complement of the language accepted by the NFA shown below? Assume ∑ = {a} and ϵ is the empty string Correct Answer {ϵ}

The correct answer is "option 2".

EXPLANATION:

NFA is:

[ alt="F1 Raju.S 05-05-21 Savita D1" src="//storage.googleapis.com/tb-img/production/21/05/F1_Raju.S_05-05-21_Savita_D1.png" style="width: 249px; height: 87px;">

Consider, ∑ = {a} and ϵ is the empty string

The ∑ = {a} and the NFA accept the following strings:

{a, aa, aaa, aaaa,……}

That means, the language accepted by the regular expression is {a+}

Therefore, the complement of the language is:

= {a* - a+}

= ϵ

Hence, the correct answer is "option 2".

Related Questions

Statement 1: NFA computes the string along parallel paths. Statement 2: An input can be accepted at more than one place in an NFA. Which among the following options are most appropriate?