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".
মোঃ আরিফুল ইসলাম
Feb 20, 2025