The finite state machine described by the following state diagram with A as…

2002

The finite state machine described by the following state diagram with A as starting state, where an arc label is x / y and x stands for 1-bit input and y stands for 2-bit output

image.png

  1. A.

    Outputs the sum of the present and the previous bits of the input

  2. B.

    Outputs 01 whenever the input sequence contains 11

  3. C.

    Outputs 00 whenever the input sequence contains 10

  4. D.

    None of these

Attempted by 15 students.

Show answer & explanation

Correct answer: A

To determine the function, analyze the transitions from each state. State A represents a previous input of 0; inputs 0 and 1 yield outputs 00 and 01. States B and C represent a previous input of 1; inputs 0 and 1 yield outputs 01 and 10. This pattern corresponds to the sum of the current input bit and the previous input bit.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir