GATE / CS ARCHIVE

GATE CSE 2023 / QUESTION 14

GATE CSE 2023 Q14

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

GATE 2023, Q14 1 mark · MCQ
Report issue

Finite Automata

Question 14, GATE 2023: A DFA over {0,1} starts in s, accepts only in p, and has transitions s:0→r,1→p; p:0→p,1→q; q:0→r,1→p; r:0→r,1→r. Which expression describes its language? A 1(0*11)*; B 0(0+1)*; C 1(0+11)*; D 1(110*)*.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

The initial 1 enters accepting p; an initial 0 reaches the dead state. At p, 0 loops, while 11 follows p→q→p. A0 at q is rejected, so all accepted suffixes are concatenations of 0 and 11. This gives 1(0+11)*, option C. For example 10 is accepted but not generated by A or D.

Teaching detail. Every accepting run must first consume 1 to reach p. From p there are two ways to return to p without entering the trap: consume a single 0, or consume the pair 11 through q. Any number of these complete return segments is allowed, including none, so the one-letter string 1 is accepted. A suffix ending after the first 1 of a pair stops at nonaccepting q. This run decomposition proves both that every accepted word has the expression's form and that every generated word is accepted.

Original paper, page 11 · Answer key