edited by
26,147 views
93 93 votes

Given below are two finite state automata ( $\rightarrow$ indicates the start state and $F$ indicates a final state)

$$\overset{Y}{\begin{array}{|l|l|l|}\hline \text{}  &  \textbf{a} & \textbf{b} \\\hline  \text{$\rightarrow$ $1$} & \text{1} & \text{2} \\\hline  \text{$2 (F)$} & \text{2} &  \text{1} \\\hline \end{array}} \qquad \overset{Z}{\begin{array}{|l|l|l|}\hline \text{}  &  \textbf{a} & \textbf{b} \\\hline  \text{$\rightarrow$ $1$} & \text{2} & \text{2} \\\hline  \text{$2 (F)$} & \text{1} &  \text{1} \\\hline \end{array}}$$

Which of the following represents the product automaton $Z \times Y$?

  1. $$\begin{array}{|l|l|l|}
    \hline 
     & a & b \\
    \hline 
    \rightarrow P & S & R \\
    \hline 
    Q & R & S \\
    \hline 
    R(F) & Q & P \\
    \hline 
    S & Q & P \\
    \hline 
    \end{array}$$
  2. $$\begin{array}{|l|l|l|}
    \hline 
     & a & b \\
    \hline 
    \rightarrow P & S & Q \\
    \hline 
    Q & R & S \\
    \hline 
    R(F) & Q & P \\
    \hline 
    S & P & Q \\
    \hline 
    \end{array}$$
  3. $$\begin{array}{|l|l|l|}
    \hline 
     & a & b \\
    \hline 
    \rightarrow P & Q & S \\
    \hline 
    Q & R & S \\
    \hline 
    R(F) & Q & P \\
    \hline 
    S & Q & P \\
    \hline 
    \end{array}$$
  4. $$\begin{array}{|l|l|l|}
    \hline 
     & a & b \\
    \hline 
    \rightarrow P & S & Q \\
    \hline 
    Q & S & R \\
    \hline 
    R(F) & Q & P \\
    \hline 
    S & Q & P \\
    \hline 
    \end{array}$$

    5 Answers

    Best answer
    90 90 votes

    $$\begin{array}{|l|l|l|l|}\hline \textbf{}  &  \textbf{States} & \textbf{a} & \textbf{b} \\\hline  \text{$\rightarrow$}  &  \textbf{11(P)} & 12 & 22 \\\hline   \text{}  &  \textbf{12(S)} & 11 & 21 \\\hline \text{}  &  \textbf{21(Q)} & 22 & 12 \\\hline \textbf{(F)}  &  \textbf{22(R)} & 21 & 11 \\\hline \end{array}$$

    $11$ is $P$ and $22$ is $R$ in choice. So, the answer should be (A) but in the row for $S$, it should be $P$ and $Q$ and not $Q$ and $P$. 

    edited by
    58 58 votes

    Correct answer is option A. 

    New final state where finals of both FA's are together.

    edited by
    12 12 votes

    Another alternative to get the answer can be :

    Y represents strings with odd number of b {Nb(W) mod 2 = 1)} and Z represents odd number of strings {|W| mod 2 =1}

    If we take the product automata ZxY i.e. Odd number of String and Odd number of b in string which is nothing but "Strings with Odd no of b and Even no of a" Draw the mod m/c for this and pick the correct option i.e. A

    9 9 votes
    0 0 votes

    Simplest possible method is by eliminating options.
    if we do cross product then it'll create new states. in Z initial state on b goes to 2 and initial stage of y on b goes to 2 in both qns 2 is final state. so in the final ZxY also it'll go to final state. final state of the answer is R and you can eliminate all options instantly here since except option a none of the other options are going to R (final state). thus Option A is correct answer.

    Check if this is correct for this qn @Arjun sir.

    Answer:
    Position:
    Show:

    Related questions

    74 74 votes
    4 answers 4 answers
    35.3k
    35.3k views
    Kathleen asked Sep 12, 2014
    35,289 views
    Which of the following are NOT true in a pipelined processor?Bypassing can handle all RAW hazardsRegister renaming can eliminate all register carried WAR hazardsControl h...
    69 69 votes
    15 answers 15 answers
    21.7k
    21.7k views
    Kathleen asked Sep 12, 2014
    21,670 views
    Match the following NFAs with the regular expressions they correspond to: P Q R S $\epsilon + 0\left(01^*1+00\right)^*01^*$$\epsilon + 0\left(10^*1+00\right)^*0$$\epsilon...
    5 5 votes
    2 answers 2 answers
    2.4k
    2.4k views
    Vikrant Singh asked Jan 27, 2015
    2,383 views
    Assume $R_1$, $R_2$, and $R_3$ are three regular expressions.Given $R_1 + R_2 \cdot R_3 = (R_1+R_2) \cdot (R_1+R_3)$ for any $R_2$ and $R_3$. Which of the following could...
    42 42 votes
    4 answers 4 answers
    15.4k
    15.4k views
    Kathleen asked Sep 12, 2014
    15,373 views
    Which of the following are regular sets?$\left\{a^nb^{2m} \mid n \geq 0, m \geq 0 \right\}$$\left\{a^nb^m \mid n =2m \right\}$$\left\{a^nb^m \mid n \neq m \right\}$$\lef...