GATE CS 2025 Set 1 Q49 — Regular Expressions and Finite Automata
Explain with AI
Consider a finite state machine (FSM) with one input X and one output f, represented by the given state transition table. The minimum number of states required to realize this FSM is _______. (Answer in integer).
ABCDEFGHX=0FDFGDFGGX=1BCEACBHAX=000010101X=100000110Present state Next state Output f
View worked solutionShowHide
Answer: 5:5
To find the minimum number of states required to realize the given finite state machine (FSM), we use the state minimization algorithm (equivalence partitioning).
Step 1: 0-equivalence partition (P0)
We group the states based on their outputs for X=0 and X=1:
States with output (0,0): {A,B,C,E}
States with output (1,0): {D,H}
States with output (1,1): {F}
States with output (0,1): {G}
Thus, P0={{A,B,C,E},{D,H},{F},{G}}.
Step 2: 1-equivalence partition (P1)
We check the next-state transitions of states within each multi-state group of P0:
For group {A,B,C,E}:
A0F (Group {F}) and A1B (Group {A,B,C,E})
C0F (Group {F}) and C1E (Group {A,B,C,E})
B0D (Group {D,H}) and B1C (Group {A,B,C,E})
E0D (Group {D,H}) and E1C (Group {A,B,C,E})
Since A and C transition to the same groups, and B and E transition to the same groups, this group splits into {A,C} and {B,E}.
For group {D,H}:
D0G (Group {G}) and D1A (Group {A,B,C,E})
H0G (Group {G}) and H1A (Group {A,B,C,E})
Thus, D and H remain equivalent.
This gives P1={{A,C},{B,E},{D,H},{F},{G}}.
Step 3: 2-equivalence partition (P2)
We check the transitions using the groups in P1:
For {A,C}: A1B and C1E. Since B and E are in the same group {B,E} in P1, A and C remain equivalent.
For {B,E}: B1C and E1C. They transition to the same state, so they remain equivalent.
For {D,H}: Both transition to G on 0 and A on 1, so they remain equivalent.
Since no further splitting occurs, P2=P1={{A,C},{B,E},{D,H},{F},{G}}.
The minimized FSM has exactly 5 states.
Free practice · Your answers on this page are not saved.