StreakPeaked· Practice

ExamsGATETechnical

Which one of the following regular expressions correctly represents the language of the finite automaton given below?

  1. ab*bab* + ba*aba*
  2. (ab*b)*ab* + (ba*a)*ba*
  3. (ab*b + ba*a)*(a* + b*)
  4. (ba*a + ab*b)*(ab* + ba*)

Correct answer: (ab*b)*ab* + (ba*a)*ba*

Solution

This regular expression captures the sequences generated by the finite automaton by allowing for repetitions of 'ab*b' and 'ba*a', followed by additional 'ab*' or 'ba*' patterns, thus accurately representing the transitions and states of the automaton.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →