All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · November 2021

Find the regular expression for the language accepted by the automata given below.

Figure

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. (a + b)ab(ab + bb + aa* (a + b) ab)*

Explanation

Following the official key, the language is (a + b)ab(ab + bb + aa*(a + b)ab)*: a first symbol, then ab to reach the accepting state, then any number of the loops that return to it.

More Theory of Computation and Compilers questions