Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

GATE | Gate IT 2007 | Question 70

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Consider the regular expression R = (a + b)* (aa + bb) (a + b)*

Which deterministic finite automaton accepts the language represented by the regular expression R ?

2007_72
(A) A
(B) B
(C) C
(D) D


Answer: (A)

Explanation: The equivalent NFA is as follows:
gate_70

Table showing transitions between all states is as follows:
gate_70_2

The transition table can be converted to the transition table for DFA:
gate_70_3

Equivalent DFA for the above transition table is:
gate_70_4
Hence option (A) is the required DFA for the given regular expression.



This solution is contributed by Yashika Arora

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads