GATE / CS ARCHIVE

GATE CSE 1999 / QUESTION 1.4

DFA for a fixed binary length

Theory of Computation · Finite Automata · Full GATE CSE 1999 paper

GATE 1999, Q1.4 1 mark · MCQ
Report issue

Finite Automata

Question 1.4, GATE 1999: For the regular expression consisting of n concatenated factors (0+1), find the minimum finite-automaton states; choice C is n+2 and B is n+1.
Tap to enlarge
Your answer
Answer & solution

Answer: C for a complete DFA (no official key was published)

The language contains exactly the binary strings of length n. Use states 0 through n to record how many symbols have been read and a dead state for lengths above n. State n alone accepts; both symbols advance the count, and the dead state loops. This constructs n+2 states. For i<j≤n, a suffix of length n−j accepts from j but not i, so all progress states are distinguishable. The dead state is distinguishable from each by an appropriate accepting suffix. A partial automaton or NFA could omit that state and use n+1, giving B. The source says finite automaton without explicitly saying complete deterministic; C uses that conventional interpretation, rather than a universal minimum across all automaton models.

Original paper, page 1