wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following finite state Automation

The language accepted by this automation is given by the regular expression


A
bababab
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
babab
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
ba(a+b)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D ba(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 ba. 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.







r=ba(a+b)

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Salts
Watch in App
Join BYJU'S Learning Program
CrossIcon