The finite state machine given in figure below recognizes :

- AOption (a)
any string of odd number of a’s
- BOption (b)
any string of odd number of b’s
- COption (c)
any string of even number of a’s and odd number of b’s
- DOption (d)
any string of odd number of a’s and odd number of b’s
View answer & explanationHide answer & explanation
Correct answer
any string of odd number of a’s and odd number of b’s
Why this answer is correct
Concept:
Finite state machine accepts L
L = {a, b, aaab, abbb, aaabbb, baaa, bbba, bbbaaa}
Therefore, finite state machine accepts any string of odd number of a’s and odd number of b’s
Explanation:
Option 1: any string of odd number of a’s
String ‘a’ is not accepted by finite state machine. Therefore option 1 is incorrect
Option 2: any string of odd number of b’s
Since string ‘b’ is not accepted by finite state machine. Therefore option 2 is incorrect
Option 3*:* any string of even number of a’s and odd number of b’s
Since string ‘aab’ is not accepted by finite state machine. Therefore option 3 is incorrect





