edited by
12,805 views
42 votes
42 votes

Given the following state table of an FSM with two states $A$ and $B$,one input and one output.

$$\small\begin{array}{|c|c|c|c|c|c|}\hline \textbf{PRESENT} & \textbf{PRESENT} &  & \textbf{Next State } & \textbf{Next State} & \\ \textbf{STATE A} & \textbf{STATE B} & \bf {Input}& \bf {A} & \bf {B} & \bf{Output}\\\hline  \text{0} & \text{0}  & \text{0} & \text{0}  & \text{0}  & \text{1} \\\hline  \text{0} & \text{1}  & \text{0} & \text{1}  & \text{0} & \text{0}\\\hline \text{1} & \text{0}  & \text{0} & \text{0}  & \text{1} & \text{0}\\\hline \text{1} & \text{1}  & \text{0} & \text{1}  & \text{0} & \text{0}\\\hline \text{0} & \text{0}  & \text{1} & \text{0}  & \text{1}  & \text{0} \\\hline \text{0} & \text{1}  & \text{1} & \text{0}  & \text{0} & \text{1} \\\hline \text{1} & \text{0}  & \text{1} & \text{0}  & \text{1}  & \text{1} \\\hline \text{1} & \text{1}  & \text{1} & \text{0}  & \text{0}  & \text{1} \\\hline  \end{array}$$If the initial state is $A=0 ,B=0$ what is the minimum length of  an input string which will take the machine to the state $A=0,B=1$ with $output=1$.

  1. $3$
  2. $4$
  3. $5$
  4. $6$
edited by

6 Answers

0 votes
0 votes
A simpler approach,

If we simply trace the table, then we can see this sequence will give the required output with input string length as 3.

present state = 00

00 (i/p = 1 , o/p = 0, A=0, B=0) → 01 (i/p = 0 , o/p = 0) → 10 (i/p = 1 , o/p = 1) → 01 .(A=0, B=1 , o/p = 1)

So input string is 101. Length = 3. Option (A).
Answer:

Related questions

46 votes
46 votes
7 answers
1
Kathleen asked Sep 22, 2014
21,132 views
The above DFA accepts the set of all strings over $\{0,1\}$ that begin either with $0$ or $1$.end with $0$.end with $00$.contain the substring $00$.
62 votes
62 votes
6 answers
4