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$?$$\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}$$$$\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}$$$$\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}$$$$\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}$$ Theory of Computation gatecse-2008 normal theory-of-computation finite-automata wrong-choices + – Kathleen 26.1k views answer comment Share Follow Print See all 14 Comments 14 14 Comments reply Vikrant Singh commented Dec 3, 2014 reply Follow flag I am getting answer as option A. but in last row instead of S -> Q | P I am getting S-> P | Q. 22 22 replyShare Arjun commented Dec 5, 2014 reply Follow flag You are correct. That must be a printing mistake. 6 6 replyShare Payal Rastogi commented Jan 18, 2016 reply Follow flag thanks 0 0 replyShare Ravi prakash pandey commented Jan 9, 2018 reply Follow flag ans will be option B bcz in last two row entries are (Q,P) and (P,Q) 0 0 replyShare Manu Shaurya commented Jun 21, 2021 reply Follow flag For those finding it difficult to map the states, in ZxY: Start State → b→ Final State & Final State→ b→ Start State. This can be used to eliminate the options B, C, D. But although A satisfies first three transitions, last one wrongly given in the option. 3 3 replyShare blue404 commented Jan 19, 2024 reply Follow flag https://youtu.be/CWei4YjTj90?si=Nd2VdJK-cAoxHfzfrefer this for cross product of DFA 3 3 replyShare Krishna Reddy kyp commented Sep 27, 2024 reply Follow flag Then there should be 3 final states na? 0 0 replyShare tapasvss commented Oct 6, 2024 reply Follow flag Correct Answer 0 0 replyShare arbpass commented Jun 24, 2025 reply Follow flag "Construct the product automaton of Z x Y"but doesn’t specify the operation (union, intersection, etc.), by default, in theory of computation, product automaton usually refers to intersection. 4 4 replyShare Honey badger commented Aug 9, 2025 reply Follow flag This question has mistake in Option A , you will get answer like Pranay Answer https://gateoverflow.in/462/gate-cse-2008-question-49?show=473307#c473307 1 1 replyShare js__ commented Sep 14, 2025 reply Follow flag https://www.geeksforgeeks.org/theory-of-computation/cross-product-operation-in-dfa/ 0 0 replyShare chidambareswar23 commented Dec 11, 2025 reply Follow flag @arbpass can you provide source where it is mentioned? 0 0 replyShare abhisekhgupta commented Jun 10 reply Follow flag ambiguous question in my opinion if you ask me 0 0 replyShare Taniii commented Aug 11 reply Follow flag it would be same Y x Z right? 0 0 replyShare Please log in or register to add a comment.
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$. Arjun answered Dec 5, 2014 • edited Apr 15, 2019 by akash.dinkar12 Arjun comment Share Follow See all 28 Comments 28 28 Comments reply Show 25 previous comments Pratik_Harde commented Nov 10, 2024 reply Follow flag @Arjun sir, Could you plz clear that YxZ and ZxY are same or different? 0 0 replyShare Pranay_VG commented Jun 18, 2025 reply Follow flag 10 10 replyShare helloap09 commented Oct 30, 2025 reply Follow flag @Pranay_VG Got the same answer 0 0 replyShare Please log in or register to add a comment.
58 58 votes Correct answer is option A. New final state where finals of both FA's are together. Mostafize Mondal answered Oct 23, 2018 • edited Nov 1, 2018 by Mostafize Mondal Mostafize Mondal comment Share Follow See all 10 Comments 10 10 Comments reply Show 7 previous comments go_rajesh commented Nov 26, 2024 reply Follow flag I have the same question as above jeerujay : When we do Z x Y then from Z → a (it goes to state 2), From Y → a (it goes to state 1), from 11 by reading a, it as to go 21, but your transition goes to 12 how? let me know if I’m wrong. 1 1 replyShare razvardhan commented Dec 20, 2024 reply Follow flag how did you draw the transition diagram? 0 0 replyShare Manish_Gupta 1 commented Aug 18, 2025 reply Follow flag Approach is useful but but you have done opposite cross product! 0 0 replyShare Please log in or register to add a comment.
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 aayushranjan01 answered Nov 4, 2015 aayushranjan01 comment Share Follow See all 2 Comments 2 2 Comments reply krishn.jh commented Nov 18, 2018 reply Follow flag Yes this way we can check the correct option. 0 0 replyShare ananya_23 commented Aug 9, 2023 reply Follow flag @aayushranjan01 is automata Z accepting the string aaa? If yes, option a is not accepting aaa.. 0 0 replyShare Please log in or register to add a comment.
9 9 votes Refer this pdf i think you will get all concepts related cross product https://www.google.co.in/url?sa=t&source=web&rct=j&url=https://www.andrew.cmu.edu/user/ko/pdfs/lecture-3.pdf&ved=0ahUKEwjVofen6dnKAhUIbY4KHbzZALUQFggaMAA&usg=AFQjCNGzYD5ZB3il9wvu9ScUQ6vuX5u8Wg&sig2=XVbLlspxl22Zjd1yeew1Kg Parth Lathiya answered Feb 2, 2016 Parth Lathiya comment Share Follow See 1 comment 1 1 comment reply Ekta07_GATE commented Jun 29, 2019 reply Follow flag @Mostafize Mondal Bro you did Y X Z. But we have to perform Z X Y. But yeah we have to choose option A) ( last two rows are wrong-print mistake) 1 1 replyShare Please log in or register to add a comment.
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. Kesavan_guru_prasath answered Jun 25 Kesavan_guru_prasath comment Share Follow 0 reply Please log in or register to add a comment.