Question
Consider a finite state machine (FSM) with one input and one output , represented by the given state transition table. The minimum number of states required to realize this FSM is ________. (Answer in integer)
| Present state | Next state (X=0) | Next state (X=1) | Output f (X=0) | Output f (X=1) |
|---|---|---|---|---|
| A | F | B | 0 | 0 |
| B | D | C | 0 | 0 |
| C | F | E | 0 | 0 |
| D | G | A | 1 | 0 |
| E | D | C | 0 | 0 |
| F | F | B | 1 | 1 |
| G | G | H | 0 | 1 |
| H | G | A | 1 | 0 |
Official answer and solution
- Official answer
- 5
- From
- Official GATE 2025 answer key
Solution
Apply Moore/Mealy partition refinement starting from the output equivalence classes.
- Initial partition by output :
- Output
(0, 0): - Output
(1, 0): - Output
(1, 1): - Output
(0, 1):
- Output
- Refine :
- Both and transition to , so .
- Refine :
- and have the exact same next-state transitions , so .
- transitions to and transitions to . Since , and transition to equivalent next states for all inputs, while differing from and on (). Thus splits into and .
The final equivalence classes are , giving a minimum of 5 states.
Final answer
5
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2025 Computer Science and Information Technology - Session 1 (CS1)
- Question
- 59 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.