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

View worked solution
Answer: A
Let us analyze the behavior of the finite state machine by interpreting the states as memory of the previous input bit:
- State : Represents that the previous input bit was (or we are at the start).
- State : Represents that the previous input bit was .
Now, let's look at the transitions and their outputs (represented as , where is the input and is the 2-bit binary output):
- From state (previous bit ):
- On input : Transition to , output is (since ).
- On input : Transition to , output is (since ).
- From state (previous bit ):
- On input : Transition to , output is (since ).
- On input : Transition to , output is (since ).
In all cases, the 2-bit output is the binary representation of the sum of the present input bit and the previous input bit. Thus, option (A) is correct.
Free practice · Your answers on this page are not saved.
