Question:medium

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

Show Hint

When dealing with finite automata, the transitions that involve alternating letters (like \( ab^* \) or \( ba^* \)) generally correspond to a language with alternating letters that repeat in specified patterns.
Updated On: Jan 30, 2026
  • \( ab^*bab^* + ba^*aba^* \)
  • \( (ab^b)ab^+ + (ba^a)^*ba^* \)
  • \( (ab^b + ba^a)(a^* + b^*) \)
  • \( (ba^a + ab^b)^*(ab^b + ba^a) \)
Show Solution

The Correct Option is D

Solution and Explanation

To determine the correct regular expressions accepted by the given finite automaton, we analyze the structure of its states and transitions.

- The automaton allows repetitions of symbols using loops, which correspond to the Kleene star (\(*\)) or plus (\(+\)) operators in regular expressions.
- The transitions indicate alternating occurrences of the symbols a and b, with certain sequences allowed to repeat multiple times before reaching an accepting state.


Option (A):
This regular expression correctly captures the looping behavior of the automaton, allowing repeated and alternating patterns of a and b exactly as permitted by the transitions. Hence, it is accepted by the automaton.

Option (D):
This option also reflects the transition structure accurately, accounting for the valid paths and repetitions present in the automaton. Therefore, it is also a correct representation of the language accepted.

Other options:
The remaining options either allow strings that the automaton cannot generate or restrict valid repetitions that the automaton does allow, making them incorrect.

Final Answer: (A) and (D)
Was this answer helpful?
0

Top Questions on Regular expressions and finite automata