GATE / CS ARCHIVE

GATE CSE 1995 / QUESTION 2.23

Synchronizing an unknown machine state

Digital Logic · Finite-State Machine Design · Full GATE CSE 1995 paper

GATE 1995, Q2.23 2 marks · MCQ
Report issue

Finite-State Machine Design

Question 2.23, GATE 1995: A four-state machine has next states under input 1 of A→D, B→B, C→B, D→B, and under input 0 of A→B, B→C, C→D, D→C. Starting from an unknown state, find the shortest input sequence that guarantees state C. Options: (A) 01, (B) 10, (C) 101, (D) 110.
Tap to enlarge
Your answer
Answer & solution

Answer: B: 10 (no official key was published)

Initially the possible states are {A,B,C,D}. Applying input 1 reduces this set to {B,D}: A goes to D, while B,C,D go to B. Applying input 0 then sends both B and D to C, so 10 guarantees C. The four paths are A→D→C, B→B→C, C→B→C and D→B→C. No shorter word works: the empty word leaves the initial state unknown, input 0 yields {B,C,D}, and input 1 yields {B,D}. Therefore length two is minimal and option B, 10, is correct. The output labels z do not affect the target-state requirement.

Original paper, page 5