edited by
16,614 views
54 votes
54 votes

Consider the non-deterministic finite automaton (NFA) shown in the figure.

State $X$ is the starting state of the automaton. Let the language accepted by the NFA with $Y$ as the only accepting state be $L1$. Similarly, let the language accepted by the NFA with $Z$ as the only accepting state be $L2$. Which of the following statements about $L1$ and $L2$ is TRUE?

  1. $L1 = L2$
  2. $L1 \subset L2$
  3. $L2 \subset L1$
  4. None of the above
edited by

4 Answers

Best answer
83 votes
83 votes

Misprints : Edge $Y \rightarrow Z$ ( $0$ edge )
                   Edge $Z \rightarrow Y$ ( $1$ edge )

Answer: A.

Explanation:

Writing $Y$ and $Z$ in terms of incoming arrows (Arden's method) :

$Y = X0 + Y0 + Z1$

$Z = X0 + Z1 + Y0$

Hence $Y=Z$. So, option (A).

edited by
22 votes
22 votes
convert this nfa to dfa , you will get the dfa with same final states  for both the cases , so option A is correct
10 votes
10 votes

converting NFA to DFA,

both DFAs are same so,L1=L2

1 votes
1 votes

Nice Explanation GFg

P.s Different ans due to  different assumption.

edited by
Answer:

Related questions

12.4k
views
4 answers
64 votes
Ishrat Jahan asked Nov 3, 2014
12,436 views
Consider the regular grammar:$S \rightarrow Xa \mid Ya$X \rightarrow Za$Z \rightarrow Sa \mid \epsilon$Y \rightarrow Wa$W \rightarrow Sa$where $S$ is the starting ... $3$4$5$
12.8k
views
5 answers
66 votes
Ishrat Jahan asked Nov 3, 2014
12,771 views
Let $P$ be a non-deterministic push-down automaton (NPDA) with exactly one state, $q$, and exactly one symbol, $Z$, in its stack alphabet. State $q$ is both the ... are necessarily $Σ^*$.Neither $L(P)$ nor $N(P)$ are necessarily $Σ^*$
8.0k
views
4 answers
40 votes
Ishrat Jahan asked Nov 3, 2014
7,983 views
Let $L$ be a regular language and $M$ be a context-free language, both over the alphabet $Σ$. Let $L^c$ and $M^c$ denote the complements ... context-free.It is necessarily context-free.It is necessarily non-regular.None of the above
15.4k
views
7 answers
49 votes
Ishrat Jahan asked Nov 3, 2014
15,444 views
Consider a simple graph with unit edge costs. Each node in the graph represents a router. Each node maintains a routing table indicating the next hop router to be used to relay a ... $>100$ but finite$\infty$3$>3$ and $\leq 100$