88 88 votes What is the complement of the language accepted by the NFA shown below? Assume $\Sigma = \{a\}$ and $\epsilon$ is the empty string. $\phi$ $\{\epsilon\}$ $a^*$ $\{a , \epsilon\}$ Theory of Computation gatecse-2012 finite-automata easy theory-of-computation + – gatecse 32.6k views answer comment Share Follow Print See all 23 Comments 23 23 Comments reply Show 20 previous comments ASUR commented Oct 24, 2025 reply Follow flag @ankit2024 if you do that then a* will be answer and in nfa we can't make final to non final and non final to final for complemnt it can be only happen in dfa 1 1 replyShare ankit2024 commented Oct 24, 2025 reply Follow flag Ok got it 0 0 replyShare Chandan8006 commented Nov 5, 2025 reply Follow flag Wrong method for NFA 0 0 replyShare Please log in or register to add a comment.
Best answer 113 113 votes The language being accepted is $a^+$. So, complement of the language is $\{\epsilon\}$. Arjun answered Aug 21, 2014 • selected Aug 22, 2014 by gatecse Arjun comment Share Follow See all 18 Comments 18 18 Comments reply Show 15 previous comments Subbu. commented Sep 10, 2021 i edited by JAINchiNMay Nov 16, 2022 reply Follow flag Don't Stuck at any where.... As a Gate aspirant you should read question carefully.. They are asking compliment of language , not asking about compliment of NFA Machine.. NFA accepts {a+} Complement of the Language ={epsilon} Complement of NFA MACHINE ={a*} 42 42 replyShare nobodysomebody commented Aug 11, 2025 reply Follow flag U r correct 💯 0 0 replyShare umanandh77 commented 6 days ago reply Follow flag but the thing we exchange non finals with final for only complete dfa . 0 0 replyShare Please log in or register to add a comment.
49 49 votes NFA accepts the language L=a+ and ∑={a} the complement of L=∑*- a+=a*-a+={∊} so answer is B vnc answered Nov 27, 2015 vnc comment Share Follow See all 2 Comments 2 2 Comments reply tusharp commented Nov 17, 2018 reply Follow flag Complement does not work with NFA always. I don't think this approach is correct even though it works for this example. 0 0 replyShare Gurdeep Saini commented Jul 9, 2019 reply Follow flag @tusharp he did not make the complement of NFA, he made the complement of language which always works 6 6 replyShare Please log in or register to add a comment.
16 16 votes Ans. varunraj answered Mar 16, 2018 varunraj comment Share Follow 0 reply Please log in or register to add a comment.
4 4 votes the language is a+ ..... compliment is {$\varepsilon$} Tarani Behera answered Nov 28, 2015 • edited Jan 14, 2018 by Puja Mishra Tarani Behera comment Share Follow See 1 comment 1 1 comment reply ankit2024 commented Oct 24, 2025 reply Follow flag IF WE MAKE FINAL STATE AS NONFINAL AND NONFINAL AS FINAL THEN ALSO ONLY EPISLON IS ACCEPTED 0 0 replyShare Please log in or register to add a comment.
4 4 votes one more way is to convert this epsilon nfa to nfa and then take complement of the language but the only careful point is that the question has asked about the langauge formed by complement of the language accpeted by such nfa. in nfa complementation doesnt work the same way that dfa does. so "complement of language accepted by nfa" and "complement of the machine" are two different things in case of nfa adarsh_1997 answered Jul 2, 2019 adarsh_1997 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes option c is right abhishekmehta4u answered Mar 28, 2019 • edited Mar 28, 2019 by abhishekmehta4u 1 flag: ✌ Edit necessary (STOIC) abhishekmehta4u comment Share Follow 0 reply Please log in or register to add a comment.