The following finite state machine accepts all those binary strings in which the number of ’s and ’s are respectively:

View worked solution
Answer: A
To determine the language accepted by the given finite state machine (FSM), we can analyze its state transitions based on the number of s and s in the input string.
A standard product automaton for tracking the count of two independent properties modulo and has states. Here, the FSM has states, which suggests a combination of modulo and modulo counters ( states).
Step-by-Step Analysis:
- Tracking s (Modulo 3): The transitions for input form cycles of length . This tracks the number of s modulo :
- Tracking s (Modulo 2): The transitions for input form cycles of length . This tracks the number of s modulo :
- Accepting State: The start state is also the only accepting (final) state. This state corresponds to the remainder being for both counts:
Thus, the FSM accepts all binary strings where the number of s is divisible by and the number of s is divisible by .
Free practice · Your answers on this page are not saved.
