Question:

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 11, 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) \)
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

- The finite automaton described likely accepts strings that contain patterns of alternating a and b with certain repetitions, as indicated by the regular expressions involving star and plus operations for asterisks (indicating repetition of elements).
- Option (A) correctly reflects the behavior of the automaton by allowing for the repetition of a and b in particular sequences.
- Option (D) also matches the structure of the transitions based on the automaton diagram.
Thus, the correct answer is (A) and (D).
Final Answer: (A) and (D)
Was this answer helpful?
0
0

Top Questions on Regular expressions and finite automata

View More Questions

Questions Asked in GATE CS exam

View More Questions