GATE / CS ARCHIVE

GATE CSE 2005 / QUESTION 53

Language of a DFA

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

GATE 2005, Q53 2 marks · MCQ
Report issue

Finite Automata

Question 53, GATE 2005: A deterministic machine over {a, b} starts at nonfinal q0. It has q0−b→q0, q0−a→q1, q1−b→q2, q2−b→q3, with final q3, q3−b→q3 and q3−a→q1; omitted transitions reject. Identify its language. Offered B describes every a being followed by at least two b symbols. Determine whether that wording is exact, including empty and b-only strings. Other choices: A every a followed by exactly two b symbols; C strings containing abb; D strings not containing aa.
Question 53, GATE 2005: A deterministic machine over {a, b} starts at nonfinal q0. It has q0−b→q0, q0−a→q1, q1−b→q2, q2−b→q3, with final q3, q3−b→q3 and q3−a→q1; omitted transitions reject. Identify its language. Offered B describes every a being followed by at least two b symbols. Determine whether that wording is exact, including empty and b-only strings. Other choices: A every a followed by exactly two b symbols; C strings containing abb; D strings not containing aa.
Tap to enlarge
Your answer
Answer & solution

Answer: No exact option; B if at least one a is required (no official key was published)

The start state has a b-loop but is not accepting. An a starts a required pair of b transitions, after which the accepting state permits more b symbols or another a followed by at least two b symbols. Hence the exact language is b*(abb b*)+ = b*(ab{2,})+. All words have at least one a, and every a is followed by at least two consecutive b symbols. Option B omits the at-least-one-a condition and therefore includes ε and every b-only word by vacuous truth, all rejected by the depicted machine. The paper shows the nonaccepting start state. B describes the intended restriction only if the domain excludes b*; there is no literally exact offered answer. Diagram and options continue on page 7.

Trace complete trips from the start to the final state. Initial b symbols can be arbitrary, but they never reach a final state. The first a must be followed by two b transitions to enter q3; additional b symbols may follow, and each later a begins another mandatory two-b segment. Thus at least one ab{2,} block is required. Checking ε or b provides immediate counterexamples to the broad offered description: its universal condition is vacuously true while the machine rejects. Do not silently mark the intended option as an exact language equality.

Original paper, page 6