GATE CS 2022 · Question 12 · Theory of Computation · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
Which one of the following regular expressions correctly represents the language of the finite automaton given below?

- (A) ab^*bab^* + ba^*aba^*
- (B) (ab^*b)^*ab^* + (ba^*a)^*ba^*
- (C) (ab^*b + ba^*a)^*(a^* + b^*)
- (D) (ba^*a + ab^*b)^*(ab^* + ba^*)
Answer
Answer (D)
Answer from the official GATE CS 2022 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes