The language accepted by this automation is given by the regular expression
A
b∗ab∗ab∗ab∗
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
b∗ab∗ab∗
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
(a+b)∗
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
b∗a(a+b)∗
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is Db∗a(a+b)∗
q3 is unreachanble from starting state and hence can be deleted to give the following diagram.
q0 is the initial state. From q0toq1 the regular expression is b∗a. After that, every combination of a and b is accepted by q1orq2. So q1andq2. together can be collapsed into a permanent accept state and now the diagram becomes.