edited by
8,472 views
45 votes
45 votes

For a state machine with the following state diagram the expression for the next state $S^+$ in terms of the current state $S$ and the input variables $x$ and $y$ is

  1. $S^+ = S' . y' + S . x$
  2. $S^+ = S. x . y' + S' . y . x'$
  3. $S^+ = x . y'$
  4. $S^+ = S' . y + S . x'$
edited by

4 Answers

Best answer
86 votes
86 votes

$$\begin{array}{|c|cc|c|} \hline \textbf{Present State}  &&{\textbf {Inputs}}&     \textbf {Next State} \\\hline \textbf{S} & \textbf{x}  & \textbf{y} & \mathbf{S^+} \\\hline 0 & \text{X} & 0&1  \\\hline  0& \text{X} & 1 & 0  \\\hline  1& 0& \text{X}  & 0 \\\hline 1& 1 & \text{X} &1\\\hline \end{array}$$

From above table:

$S^+ = S'y'+Sx$
Correct Answer: $A$
edited by
22 votes
22 votes

Answer is (A)

For S is 1 only when:      Either (S=1 and x=1) OR (s=0 and y=0)

Therefor  S(next) = S'y'+Sx

0 votes
0 votes
For those who think A & D both should be the answer. First of all, this is a Digital Logic Design question because they have given options in term of SOP form and we write expressions only for the result obtained =1 in Truth table.
0 votes
0 votes
Deriving SOP form is a good approach, but it didn’t clicked for me. I tried this approach. It’s basically elimination method.

Give inputs as S=0 and y=0 to all options, for these inputs S+ should be 1.

(A) S+ = 1

(B) S+ = 0 , eliminated.

(C) S+ = x.(1) = x, here the output depends on x but as (S = 0) state don’t have production for input ‘x’ , that’s why it’s eliminated too.

(D) S+ = 0 , eliminated.

So, option (A) is correct.
Answer:

Related questions

4.9k
views
3 answers
23 votes
Ishrat Jahan asked Oct 31, 2014
4,947 views
In the automaton below, $s$ is the start state and $t$ is the only final state.Consider the strings $u = abbaba, v = bab, \text{and} w = aabb$. Which of the following sta...
11.5k
views
4 answers
41 votes
Ishrat Jahan asked Nov 1, 2014
11,504 views
Let $L$ be a regular language. Consider the constructions on $L$ below:$\text{repeat} (L) = \{ww \mid w \in L\}$$\text{prefix} (L) = \{u \mid \exists v : uv \in L\}$$\tex...
9.6k
views
2 answers
31 votes
Ishrat Jahan asked Nov 1, 2014
9,614 views
Let $L$ be a regular language. Consider the constructions on $L$ below:repeat $(L) = \{ww \mid w \in L\}$prefix $(L) = \{u \mid ∃v : uv \in L\}$suffix $(L) = \{v \mid...
8.2k
views
5 answers
34 votes
Ishrat Jahan asked Oct 31, 2014
8,169 views
In the context-free grammar below, $S$ is the start symbol, $a$ and $b$ are terminals, and $\epsilon$ denotes the empty string.$S \to aSAb \mid \epsilon$$A \to bA \mid \e...