GATE / CS ARCHIVE

GATE CSE 1997 / QUESTION 70(b)

Five-state minimal Mealy quotient

Digital Logic · Finite-State Machine Design · Full GATE CSE 1997 paper

GATE 1997, Q70(b) 3 marks · Descriptive
Report issue

Finite-State Machine Design

Question 70(b), GATE 1997: The Mealy state table gives (next state,output) for inputs 0 and 1:
A: 0→(B,1), 1→(H,1)
B: 0→(F,1), 1→(D,1)
C: 0→(D,0), 1→(E,1)
D: 0→(C,0), 1→(F,1)
E: 0→(D,1), 1→(C,1)
F: 0→(C,1), 1→(C,1)
G: 0→(C,1), 1→(D,1)
H: 0→(C,0), 1→(A,1).
No initial state is specified. Give the minimal equivalent state table, naming merged states by their members.
Question 70(b), GATE 1997: The Mealy state table gives (next state,output) for inputs 0 and 1:
A: 0→(B,1), 1→(H,1)
B: 0→(F,1), 1→(D,1)
C: 0→(D,0), 1→(E,1)
D: 0→(C,0), 1→(F,1)
E: 0→(D,1), 1→(C,1)
F: 0→(C,1), 1→(C,1)
G: 0→(C,1), 1→(D,1)
H: 0→(C,0), 1→(A,1).
No initial state is specified. Give the minimal equivalent state table, naming merged states by their members.
Tap to enlarge
Answer & solution

Answer: Five quotient states A,B,CD,EFG,H with the transition/output table below. (no official key was published)

The equivalence blocks are {A},{B},{C,D},{E,F,G},{H}. Replace every original destination by its block name, keeping the original output. The reduced table is:

Present state   input 0: next/output   input 1: next/output
A               B/1                    H/1
B               EFG/1                  CD/1
CD              CD/0                   EFG/1
EFG             CD/1                   CD/1
H               CD/0                   A/1

For example, C goes to D/0 and E/1, whereas D goes to C/0 and F/1. Once C,D are both named CD and E,F,G are all named EFG, those two rows become identical. Similarly, E,F,G all reduce to the row CD/1, CD/1. Therefore the choice of a representative inside a merged block does not affect the quotient table.

Why is this minimal rather than merely smaller? Output-based refinement begins with {ABEFG,CDH}, refines to {AB,EFG,CDH}, and then to the five displayed blocks, which are stable. Distinct resulting blocks have some finite distinguishing input, so no further merger preserves all output behavior. Five states are necessary to represent the behavior of all states in the given table.

No start state is printed, so the table does not justify inventing one or removing states as unreachable from it. This is minimization of the supplied machine's state behaviors. If a separate initial-state specification were supplied, one would additionally check reachability before reporting the size of a recognizer from that particular start. The table remains a Mealy table: outputs label transitions, not states, and a Moore-machine reinterpretation would be a different problem.

Original paper, page 10