Skip to main content

GATE CSE 1995Digital Logic › Sequential Circuits & CountersVerified

GATE CSE 1995 PYQ: A finite state machine with the following state table has a single input x x x and a single out z z z .…

A finite state machine with the following state table has a single input xx and a single out zz.

present statenext state, zx=1x=0AD,0B,0BB,1C,1CB,0D,1DB,1C,0\begin{array}{|c|ll|}\hline \textbf{present state} & \qquad \textbf{next state, z} \\ & \text{x=1} & \text{x=0} \\\hline \text{A} & \text{D,0} & \text{B,0} \\\hline \text{B} & \text{B,1} & \text{C,1} \\\hline \text{C} & \text{B,0} & \text{D,1} \\\hline \text{D} & \text{B,1} & \text{C,0} \\\hline \end{array}

If the initial state is unknown, then the shortest input sequence to reach the final state CC is:

  1. A
    01
  2. B
    10
    Correct answer
  3. C
    101
  4. D
    110

Answer

(B) 10 10 10

Approach

The table defines the next state of the finite state machine for each input symbol. Since the initial state is unknown, the input sequence must force the machine to state C from every possible starting state A, B, C, and D. Test the options as synchronizing sequences and choose the shortest one that works.

The sequence 10 is a synchronizing sequence: first 1 maps every possible state to {B,D}, and the subsequent 0 maps both B and D to C. It is shorter than the other working option, 110.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.