Consider the FA shown in fig below which language is accepted by the FA:
Consider the FA shown in fig below which language is accepted by the FA: Correct Answer (b + a + b)*a
DFA:
[ alt="Assignment 9 Ashok CIL CSE 2020 16 to 28 10Q raju D1" src="//storage.googleapis.com/tb-img/production/20/05/Assignment%209_Ashok_CIL_CSE_2020_16_to%2028_10Q_raju_D1.PNG" style="width: 164px; height: 75px;">
The above given DFA accept the string ended with a
Regular Expression: (a + b)*a
Option 1: (b + a + b)*a
(b + a + b)*a = a + b)*a
Hence option 1 is correct.
Option 2: b + (a + b)*b
String: b
It is accepted by regular expression (b + (a + b)*b) but not by given DFA
Hence option 2 is incorrect.
Option 3: b + a*b*
String: b
It is accepted by regular expression (b + a*b*) but not by given DFA
Hence option 3 is incorrect.
Option 4: b + a*b
String: b
It is accepted by regular expression (b + a*b), not by given DFA
Hence option 4 is incorrect