Skip to content
Official PYQ · 2007

GATE CS 2007 Q74 — Regular Expressions and Finite Automata

Explain with AI

Consider the following Finite State Automaton:

The language accepted by this automaton is given by the regular expression

Choose one option
View worked solution

Answer: C

To find the regular expression accepted by the given Finite State Automaton, let us analyze the transitions between the states:

  • Start State (q0q_0): There is a self-loop on input bb. This means the automaton can read any number of bb's initially, represented by b∗b^*.
  • Transition to q1q_1: To move from the non-accepting start state q0q_0 to the accepting state q1q_1, the automaton must consume exactly one aa.
  • Accepting State (q1q_1): Once in q1q_1, there are self-loops for both aa and bb. This allows any sequence of aa's and bb's to be accepted, represented by (a+b)∗(a+b)^*.

Combining these parts sequentially, the regular expression for the language accepted by the automaton is:

b∗a(a+b)∗b^*a(a+b)^*

Hence, the correct option is C.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Regular Expressions and Finite Automata questions