• edited by
992 views
3 3 votes

Please explain what is difference between $\overline{L(N)}$ and  $L(\overline{N}$) ?

Consider the following NFA $N$ as shown below over $\Sigma=\{0\}$.

If $L(N)$ is the language accepted by $N$, then

A $L(N)=L(\bar{N})$

B $\overline{L(N)} \cap L(\bar{N}) \neq \phi$

C $\overline{L(N)} \cup L(\bar{N})=\Sigma^{*}$

D None of these

1 Answer

Best answer
5 5 votes

ANSWER: A,C

$\overline{L(N)}$ means Complement of the language accepted by NFA $N$. This is language complement.

$L(\overline{N})$ means Language accepted by the complement of NFA $N$. This is machine complement.

Given NFA $N$:-

First remove all non-reachable states:-

So $L(N) = \{ϵ\}$ clearly.

Thus $\overline{L(N)}$ which is the Complement of the language accepted by NFA $N = ∑^*-\{ϵ\}$.

 

Now, $\overline{N}$ can be drawn by changing all final to nonfinal states and vice-versa without touching the arrows,

the NFA $(\overline{N})$:-

Thus, $L(\overline{N})$ which is the Language accepted by the complement of NFA $N$ is also $ = \{ ϵ\}$. This is because the starting state itself is the final state. It would have been $\phi$ if there was no final state.

So, we have $L(N) = \{ϵ\}$, $\overline{L(N)}= ∑^*-\{ϵ\}$, $L(\overline{N})=  \{ϵ\}$ 

Option A) $L(N) =  L(\overline{N})=  \{ϵ\}$ TRUE

Option B) $\overline{L(N)}$  intersection $L(\overline{N}) = ∑^*-\{ϵ\}$ intersection  $\{ϵ\} = \phi$. FALSE

Option C) $\overline{L(N)} \cup L(\overline{N}) = ∑^*-\{ϵ\} \cup \{ϵ\} = ∑^*$ . TRUE

 

• selected by
Position:
Show:

Related questions

1 1 vote
1 answers 1 answer
2.0k
2.0k views
srestha asked Apr 23, 2019
2,025 views
How many number of $DFA$ states(minimal DFA) required which accepts the language $L=\left \{ a^{n}:n=\text{3 or n>= 2m for all m>= 1} \right \}$ ___________Answer will be...
0 0 votes
1 answers 1 answer
1.3k
1.3k views
Lakshman Bhaiya asked Dec 27, 2018
1,253 views
Construct a minimal DFA which accepts set of all strings over {a,b}, such that$1)$Second symbol from $RHS$ should be $‘a’$$2)$Third symbol from $RHS$ should be $‘a’$
1 1 vote
2 answers 2 answers
2.0k
2.0k views
Shivani gaikawad asked Jun 5, 2018
2,022 views
The minimum number of state in the DFA for the language $L = \{ w \mid (n_a(w)+2n_b(w))mod \hspace{0.1cm} 3<2 \} $ is
0 0 votes
2 2 answers
1.1k
1.1k views
Shivani gaikawad asked Jun 5, 2018
1,111 views
The minimum number of state in the DFA for the language $L = \{ w \mid w \in \{a,b\}^* \text{ w has exactly two a's and at least two b's} \}$ is $9$$10$$16$None