
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The importance of removing redundant states in finite state machines (fsms) and provides definitions and algorithms for detecting equivalent states using the second state equivalence definition. The document also covers the partitioning method and implication table method for state minimization.
Typology: Slides
1 / 24
This page cannot be seen from the preview
Don't miss anything!

















0 (even) 1 (odd)
Reset (^) 1/
Minimal FSM (^) Non-minimal FSM
Can this sub- optimal design be corrected by systematic techniques?
Reset
Examples (contd.)
Init. St.
Input sequence 000 001 010 011 100 101 110 111 A 111 110 100 101 011 010 000 001 B 111 110 100 101 000 001 011 010 C 111 110 100 101 000 001 011 010 D 000 001 011 010 111 110 100 101 E 000 001 011 010 111 110 101 100
3-equiv.
Examples (contd.)
Init. st.
Input Sequence 00 01 10 11 A 00 01 11 10 B 00 01 11 10 C 11 10 00 01 D 11 10 00 01
2-equiv.
R
State pair B C
0/
0/
E
1/
1/
Definitions (Contd.)
Sufficiency
S i
S k^1
I p^1 /O p^1
S k^2
S j
S l^1
I p^1 /O p^1
S l^2
Same
Equiv.
Equiv.
Equiv.
Definitions (Contd.)
Note 2: If there is a compatibility relation R on a set S, then R defines subsets of S referred to as compatibility classes (the elements in a subset S i are related to each other by R). These subsets are not disjoint, in general. Important concept for incompletely specified FSMs
Equivalent classes are disjoint Compatibiity classes may intersect Docsity.com
Minimization Method for Completely Specified FSMs
Use condition (i) of the alternative equivalency defn to determine initial partition P 1 =subsets/blocks of 1-equiv. states; /* k-equivalency & equivalency are equivalence classes */ i=0; Repeat i=i+1; For each subset/block C j in P i do Begin Two or more states in C j are placed in the same block of P i+1 iff for each I/P value of length 1 their next states lie in the same block of P i. Otherwise the relevant states are separated into diff. blocks. End P i+1 =set of all new blocks created. / each bl. contains (i+1)-equiv states / Until (P i+1 =P i ) /* Note: this uses condition (ii) of the alternative equivalency defn to construct equivalent state sets */
Partitioning Method: Example 1
Non-minimal STD
No change from P 1 ; stop
Reset (^) 1/
Minimal STD
Partitioning Method: Example 2
N.S.’s Need to check for each I/P of length 1
N.S. will not change, but whether N.S.’s belong to same blocks will
Partitioning Method—Why It works (detailed proofs)?
A m+
A m+
B m+
B m+
m equiv.
1 equiv.
m
Hence, by ind. hypothesis, A 2 and B 2 are in diff. blocks of P m+1 (i.e., their non-(m+1)-equiv. is detected in iter m) according to the hypothesis Thus, by the procedure, A 1 and B 1 will be in diff. blocks of P m+2 at the end of iteration m+1, i.e., their non-(m+2)- equiv is detected in iter m+
not 1 equiv.
Partitioning Method (contd)
Theorem 2 : All equivalent states are in the same blocks, i.e., two equivalent states will not be in different blocks. Proof Outline: Follows from the procedure: If two states are in different blocks, then they were detected as not k-equivalent for some k, and thus are not equivalent. Thus no 2 equivalent states can be in different blocks after the procedure terminates. Hence each block will contain the maximal set of equivalence states, i.e., each block is an equivalence class
Implication Table Procedure
Step 3:
a) Put a ‘ ** /’ mark if the implied pairs in a cell:
either contains only the states that define the cell or is the same state (e.g., (E,E))— singleton states b) For the remaining cells, write all implied pairs (incl. the same state pair and singleton states) of the states defining the cell that not meet the above two conditions
State pair B C
0/
0/
E
1/
1/
Implication Table Procedure (contd)
A 3 B 3
AB
A 1 B 1
Equiv. states^ A^2 B^2
(a)
Equiv. states Non-equivstates
UV
U 1 V 1 U^2 V^2 X
(b)
AB EE
CD
Closed System
Equiv. states
Singleton state
Implication arc
(c)
Docsity.com