An inverse machine M i is a machine which is developed from the given machine M with its output sequence and produces the input sequence given to machine M, after at most a finite delay.
A deterministic inverse machine can be constructed if and only if the given machine is lossless. The machine can produce the input sequence applied to the original machine after at most a finite delay if and only if M is lossless of a finite order.
Consider the following example.
Example 4.22
Construct an inverse machine of the following given machine:
Solution:
| Present State
|
Next State, z
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 0
|
C, 1
| |
B
|
C, 1
|
D, 0
| |
C
|
A, 0
|
D, 1
| |
D
|
A, 1
|
C, 0
|
We have to construct the inverse machine of this given machine.
Before constructing the inverse machine, we need to test whether the machine is information lossless or not.
The testing table for information lossless is
| Present State
|
z = 0
|
z = 1
| | --- | --- | --- | |
A
|
B
|
C
| |
B
|
D
|
C
| |
C
|
A
|
D
| |
D
|
C
|
A
|
This is information lossless of the first order, as here the first input symbol can be determined from the knowledge of the initial state and the first output symbol.
As the machine is information lossless, the inverse machine for it can be constructed.
The inverse machine is
| Present State
|
Next State, X
| | --- | --- | |
z = 0
|
z = 1
| |
A
|
B, 0
|
C, 1
| |
B
|
D, 1
|
C, 0
| |
C
|
A, 0
|
D, 1
| |
D
|
C, 1
|
A, 0
|
4.12 Minimal Inverse Machine
An inverse machine is only possible if the machine is lossless. First, we have to check if the machine is lossless or not. If it is lossless, only then a minimal inverse machine construction is possible.
Consider the following machine. We have to construct the minimal inverse machine of it.
| Present State
|
Next State, z
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
A, 0
|
B, 0
| |
B
|
C, 1
|
D, 1
| |
C
|
B, 0
|
A, 1
| |
D
|
A, 0
|
B, 1
|
First, we have to check if the machine is lossless or not. Construct the following testing table to check for lossnessness.
| Present State
|
Next State, z
| | --- | --- | |
z = 0
|
z = 1
| |
A
|
AB
|
_, _
| |
B
|
_, _
|
CD
| |
C
|
B
|
A
| |
D
|
A
|
B
| |
AB
|
_, _
|
_, _
| |
CD
|
AB
|
AB
|
The machine is lossless as the testing table does not contain any entry of repeated states.
The testing graph for the information lossless machine is given in Fig. 4.29.
Fig. 4.29 Testing Graph for Information Losslessness
The order of losslessness of the machine is 3.
Let us define a set of triples denoted by (S(t), z(t + 1), and z(t + 2)), where S(t) is the initial state of the machine, z(t + 1) is one of the output symbols that can be produced by a single transition from this state, and z(t + 2) is another output symbol that can follow this initial state and the first output symbol.
Let us take B. The state B has outputs ‘1’ for both input ‘0’ and ‘1’. So, make the combinations (B, 1) and (B, 1). The next states of B are C and D. C produces outputs ‘0’ and ‘1’ and D produces outputs ‘0’ and ‘1’. So, the triples are (B, 1, 0) and (B, 1, 1).
Let us take D. The state D has an output ‘0’ for input ‘0’ and an output ‘1’ for input ‘1’. So, make the combinations (D, 0) and (D, 1). A has the output ‘0’ for all inputs and B has the output ‘1’ for all inputs. So, the triples are (D, 0, 0) and (D, 1, 1).
All the others are constructed in the same process.
For the given machine, the possible triples are
The minimal inverse machine is constructed by the following rule.
-
The present states are the triples obtained from the given machine.
-
The first member is the state to which the machine goes when it is initially in the state, that is, the first member of the present inverse state, and when it is supplied with the first input symbol.
-
The second member is the third member of the corresponding present state.
(Consider (A, 0, 1). The third member is ‘1’. For the second row, the second member of the next state columns is ‘1’.
Consider (C, 1, 0). The third member is ‘0’. For the sixth row, the second member of the next state columns is ‘0’.)
-
The third member is the present output of the constructing minimal inverse machine.
-
(The third member of each entry for z = 0 is ‘0’ and each entry for z = 1 is ‘1’.)
-
The output of the constructing minimal inverse machine is equal to the input at (t −2) to the given information lossless machine.
(From B, we get D for input 1 and C for input 0. So, for the third row, the outputs are 1 and 0, respectively.
From D, we get A for input ‘0’. So, for the seventh row, the outputs are ‘0’ for both z = 0 and z = 1.)
The minimal inverse machine is
| Present State
|
Next State, X
| | --- | --- | |
z = 0
|
z = 1
| |
(A, 0, 0)
|
(A, 0, 0), 0
|
(A, 0, 1), 0
| |
(A, 0, 1)
|
(B, 1, 0), 1
|
(B, 1, 1), 1
| |
(B, 1, 0)
|
(D, 0, 0), 1
|
(C, 0, 1), 0
| |
(B, 1, 1)
|
(C, 1, 0), 0
|
(D, 1, 1), 1
| |
(C, 0, 1)
|
(B, 1, 0), 0
|
(B, 1, 1), 0
| |
(C, 1, 0)
|
(A, 0, 0), 1
|
(A, 0, 1), 1
| |
(D, 0, 0)
|
(A, 0, 0), 0
|
(A, 0, 1), 0
| |
(D, 1, 1)
|
(B, 1, 0), 1
|
(B, 1, 1), 1
|
In the previous machine, state (A, 0, 1), (D, 1, 1) and state (A, 0, 0), (D, 0, 0) are equivalent as they produce the same next states and same outputs. To minimize the machine, assume
(A, 0, 0) as S 1 | (A, 0, 1) as S 2 | |
(B, 1, 0) as S 3 | (B, 1, 1) as S 4 | |
(C, 0, 1) as S 5 | (C, 1, 0) as S 6 |
There is no need to name (D, 0, 0) and (D, 1, 1) as they are equivalent with S 1 and S 2 , respectively.
The minimized machine is
| Present State
|
Next State, X
| | --- | --- | |
z = 0
|
z = 1
| |
S 1
|
S 1 , 0
|
S 2 , 0
| |
S 2
|
S 3 , 1
|
S 4 , 1
| |
S 3
|
S 1 , 1
|
S 5 , 0
| |
S 4
|
S 6 , 0
|
S 2 , 1
| |
S 5
|
S 3 , 0
|
S 4 , 0
| |
S 6
|
S 1 , 1
|
S 2 , 1
|
What We Have Learned So Far
-
Formal language and automata theory covers all the aspects of the theoretical part of computer science.
-
The circuits, whose operations are controlled by clock pulses are called synchronous circuit. The operations in asynchronous circuit are controlled by a number of completion and initialization signals. Here, the completion of one operation is the initialization of the execution of the next consecutive operation.
-
The circuit whose output depends on the present state only is called a combinational circuit.
i.e., O/P = Func.(present I/P)
If the output is the function of external input and the present stored information, then the circuit is called a sequential circuit.
i.e., O/P = Func.(external I/P and present stored information)
-
The machine whose past histories can affect its future behaviour in a finite number of ways is called an FSM.
An FSM has a finite number of states.
-
No FSM can be designed for an infinite sequence. No FSM can multiply two arbitrary large binary numbers. These are the limitations of FSM.
-
Two states of a machine are called equivalent if they produce the same output sequence for an input sequence applied to the states, separately considering those two states as initial states.
-
The equivalent partition of a machine M can be defined as a set of maximum number subsets of states where states which reside in the same subset are equivalent for any input given to the states.
-
The equivalent partition is unique.
-
The machines where for all states for all inputs, the next state or outputs or both are not mentioned are called incompletely specified machine.
-
A minimal machine is the minimum of the machines obtained by minimizing an incompletely specified machine.
-
A merger graph is an undirected graph where a compatible graph is a directed graph.
-
A merger table can be used as a substitution of the merger graph.
-
An FSM M is called a finite memory machine of order μ if μ is the least integer so that the present state of the machine M can be obtained uniquely from the knowledge of the last μ number of inputs and the corresponding μ number of outputs.
-
A sequential machine M is called definite if there exists a least integer μ , so that the present state of the machine M can be uniquely obtained from the past μ number of inputs to the machine M. μ is called the order of definiteness of the machine.
-
A machine is called information lossless if its initial state, final state, and output string are sufficient to determine uniquely the input string.
-
A machine which is not lossless is called lossy.
Solved Problems
-
Design a two input two output sequence detector which generates an output ‘1’ every time the sequence 1011 is detected. And for all other cases, output ‘0’ is generated. Overlapping sequences are also counted. Draw only the state table and the state diagram.
Solution: The sequence is 1011. We have to start from S 1 . If we get input 0, then there is no chance to get 1011, so it is confined in S 1 producing output 0. If we get input 1, then there is a chance to get 1011, and so the control moves to S 2 producing output 0 (as we have not got 1011 as input still). In S 2 , if we get 0, then there is a chance to get 1011, and so the control moves to S 3 producing output 0. In S 2 , if we get input 1, then there is a chance to get 1011, considering the last 1. So, the control will be confined in S 2 , producing output 0.
In S 3 , if we get input 0, then there is no chance to get 1011. In this case, we have to start again from the beginning, i.e., from S 1 . So, the control moves to S1 producing output 0. In the state S 3 , if we get input 0, then there is no chance to get 1011 considering any of the fourth or third and fourth or second, third and fourth or first, second, third, and fourth input combination. In this case, we have to start again from the beginning, i.e., from S 1 . So, the control moves to S 1 producing output 0. If we get input 1, then the string 1011 is achieved, and so the output 1 is produced. As the overlapping sequence is also accepted, the control moves to S 2 so that by getting 011, the sequence detector can produce 1.
The state diagram is given.
The state table for the sequence detector is
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
\= 1
| |
S 1
|
S 1 , 0
|
S 2 , 0
| |
S 2
|
S 3 , 0
|
S 2 , 0
| |
S 3
|
S 1 , 0
|
S 4 , 0
| |
S 4
|
S 1 , 0
|
S 2 , 1
|
-
Design a two input two output sequence detector which generates an output ‘1’ every time the sequence 10101 is detected. And for all other cases, output ‘0’ is generated. Overlapping sequences are also counted. Draw only the state table and the state diagram and make the state assignment.
Solution:
The state diagram is constructed previously.
Here, the overlapping sequence is 101.
The state table for the sequence detector is
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
\= 1
| |
S 1
|
S 1 , 0
|
S 2 , 0
| |
S 2
|
S 3 , 0
|
S 2 , 0
| |
S 3
|
S 4 , 0
|
S 1 , 0
| |
S 4
|
S 5 , 0
|
S 2 , 0
| |
S 5
|
S 1 , 0
|
S 2 , 1
|
For doing the state assignment, we have to assign the states to some binary numbers. Here are five states, so we have to take a binary string of length three because 2 3 = 8 > 5.
Let us assign 000 as S 1 , 001 as S 2 , 011 as S 3 , 010 as S 4 , and 100 as S 5 .
After doing the state assignment, the state table becomes
-
Find the equivalent partition for the following machine.
| Present State
|
Next State, z
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 0
|
C, 1
| |
B
|
A, 0
|
E, 1
| |
C
|
D, 1
|
E, 1
| |
D
|
E, 1
|
B, 1
| |
E
|
D, 1
|
B, 1
|
Solution: For a string length 0 (i.e., for no input), there is no output. So, all the states are equivalent. It is called 0-equivalent. We can write
P 0 = (ABCDE).
For string length 1, there are two types of inputs—0 and 1. The states A and B give output 0 for input 0 and states C, D, and E give output 1 for input 0. All of the states give output 1 for input 1.
So, the states in the set P 0 are divided into (AB) and (C, D, E). We can write
P 1 = ((AB) (CDE)).
Here A and E are 1-distinguishable because they produce different outputs for input string length 1.
For input string length 2, check the distinguishability by the next state combination.
The states A and B for input 0 produce next states B and A, respectively, and produce next states C and E for input 1. B and A belong to same set, and C and E also belong to the same set. So, AB cannot be partitioned for the input string length 2.
The states CDE for input 0 produce next states D, E, D, respectively, and produce next states E, B, B for input 1. D, E belong to same set but B and E belong to different sets. So, the set (CDE) is portioned into (C) and (DE). The new partition becomes
P 2 = ((AB) ((C) (DE))).
For input string length 3, we have to perform the same as like string length 2. The states A, B for input 0 produce next states B and A, respectively, and produce next states C and E for input 1. B, A belong to same set, but C and E belong to different sets. So, the set (AB) is partitioned into (A) and (B).
C is a single state and cannot be partitioned further.
The states D and E produce next states E and D, respectively, for input 0 and produce next state B for each of the states for input 1. D and E belong to same set. So, D and E cannot be divided. The new partition becomes
P 3 = (A)(B)(C)(DE).
Next, we have to check for input string length 4. Three subsets contain single state—A, B, and C, and cannot be partitioned further.
The states D and E produce the next states E and D, respectively, for input 0 and the next state B for each of the states for input 1. D and E belong to same set, and so D and E cannot be partitioned further. The partition is the same as P 3 . So, the partition P 3 is the equivalent partition of the machine.
Minimization: We know that the equivalent partition is unique. So, P3 = (A)(B)(C)(DE) is the unique combination. Here, every single set represents one state of the minimized machine.
Let us rename these partitions for simplification.
Rename (A) as S 1 , (B) as S 2 , (C) as S 3, and (DE) as S 4 .
The minimized machine becomes
| Present State
|
Next State, z
| | --- | --- | |
X = 0
|
X = 1
| |
S 1 (A)
|
S 2 , 0
|
S 3 , 1
| |
S 2 (B)
|
S 1 , 0
|
S 4 , 1
| |
S 3 (C)
|
S 4 , 1
|
S 4 , 1
| |
S 4 (DE)
|
S 4 , 1
|
S 2 , 1
|
-
Find the equivalent partition of the following machine.
| Present State
|
Next State, z
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 0
|
D, 1
| |
B
|
D, 1
|
F, 1
| |
C
|
F, 1
|
B, 1
| |
D
|
F, 0
|
A, 1
| |
E
|
C, 0
|
A, 1
| |
F
|
C, 1
|
B, 1
|
Solution: The partitions are
As P 3 and P 4 are the same, P 3 is the equivalent partition.
Minimization: We know that the equivalent partition is unique. So, P 4 = (A)(DE)(B)(CF) is the unique combination. Here, every single set represents one state of the minimized machine.
Let us rename these partitions for simplification.
Rename (A) as S 1 , (B) as S 2 , (DE) as S 3 , and (CF) as S 4 .
The minimized machine becomes
| Present State
|
Next State, z
| | --- | --- | |
X = 0
|
X = 1
| |
S 1 (A)
|
S 2 , 0
|
S 3 , 1
| |
S 2 (B)
|
S 3 , 1
|
S 4 , 1
| |
S 3 (DE)
|
S 4 , 0
|
S 1 , 1
| |
S 4 (CF)
|
S 4 , 1
|
S 2 , 1
|
-
Find the equivalent partition of the following machine.
| Present State
|
Next State, z
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
C, 1
|
D, 0
| |
B
|
D, 1
|
E, 0
| |
C
|
B, 1
|
E, 1
| |
D
|
B, 1
|
A, 0
| |
E
|
D, 1
|
B, 1
|
Solution: The partitions are
As P 3 and P 4 are the same, P 3 is the equivalent partition.
Minimization: We know that the equivalent partition is unique. So, P 4 = (A)(D)(BE)(C) is the unique combination. Here, every single set represents one state of the minimized machine.
Let us rename these partitions for simplification.
Rename (A) as S 1 , (BE) as S 2 , (C) as S 3 , and (D) as S 4 .
The minimized machine becomes
| Present State
|
Next State, z
| | --- | --- | |
X = 0
|
X = 1
| |
S 1 (A)
|
S 3 , 1
|
S 4 , 1
| |
S 2 (BE)
|
S 4 , 1
|
S 2 , 0
| |
S 3 (C)
|
S 2 , 1
|
S 2 , 1
| |
S 4 (D)
|
S 2 , 1
|
S 1 , 0
|
-
Simplify the following incompletely specified machine.
Solution: Put a temporary state T in the next state place, where the next states are not specified. If the output is not mentioned, there is no need to put any output.
As a temporary state T is considered, T is put in the present state column with the next state T for all inputs with no output.
The simplified machine becomes
-
Minimize the following incompletely specified machine.
Solution: In an incompletely specified machine, all the next states or all the outputs or both are not mentioned. We can minimize an incompletely specified machine by using the merger graph and compatible graph method. From the merger graph, we have to find the compatible pair and from that compatible pair and implied pair we have to construct compatible graph. From the compatible graph, we have to find the closed partition. And, the closed partitions are the minimized states of the machine.
Merger Graph: The machine consists of five states. So, the merger graph consists of five nodes, named A, B, C, D, and E. The outputs of A and B do not differ, and so there is an arc between A and B. For input I 3 , the next state conflicts—so the arc is an interrupted arc and in the interrupted portion the conflicting next state pair (CE) is placed.
For states A and C, the output conflicts, and so there is no arc between A and C.
For the states C and D, the outputs as well as next states do not conflict. So, an uninterrupted arc is placed between C and D.
By this process, the merger graph is constructed. The merger graph is as follows
As there is no arc between A and E, the arc between (AD), (BE), (BD), and (BC) are also crossed.
Compatible Graph: (CE) is the implied pair for (AB). A directed arc is drawn from (AB) to (CE). The compatible graph consists of four vertices (AB), (CD), (DE), and (CE).
A subgraph of a compatibility graph is said to be closed cover for the machine, if for every vertex in the subgraph, all outgoing edges and their terminal vertices also belong to the subgraph, and every state of the machine is covered by at least one vertex of the subgraph.
For the constructed compatible graph, (AB), (CD), and (CE) form a closed covering. The states of the minimized machine are (AB) and (CDE). Rename (AB) as S 1 and (CDE) as S 2 .
The minimized machine is
-
Construct a compatible graph for the following incompletely specified machine.
Solution: To construct a compatible graph, we have to first find compatible pairs. To find the compatible pairs, we need to construct a merger graph. But this machine has seven states, and so it is difficult to construct a merger graph for this machine. So, we have to construct a merger table to find compatible pairs.
Merger Table
Compatible pairs are (AE), (BC). (BD), (CD), (CG), (DE), (DG), (EG), (GF), (BF), (BG), (CF) and (DF). If (CG) and (DG) are compatible, then (BF) is compatible. If (DG) is compatible, then (BG) is compatible. If (CG) is compatible, then (CF) is compatible. If (DG) is compatible, then (DF) is compatible.
Compatible Graph
The closed partitions are (AE), (BF), (BG), (CF), (CG), (DF), and (DG). The states of the minimized machine are (AE), (BCDFG). Rename them as S 1 , S 2 .
The minimized machine is
-
Consider the following machine M 1
- Construct a merger table for M 1 .
- Find the set of compatibles.
- Draw a compatibility graph for M 1 . Describe the procedure used by you.
- Obtain a closed covering of M 1 .
- Construct a minimized machine M 1 * of M 1 .
[WBUT 2004 [IT]]
Solution:
-
Merger table for M 1
(BF) will be crossed as (CE) is crossed.
-
The set of compatible pairs are (AB), (AC), (AD), (BC), (BD), (BE), (CD), (CF), and (EF)
-
(CF) is the implied pair for (AC)
(BE) is the implied pair for (AD)
(EF) is the implied pair for (BC)
(AB) and (CD) are the implied pair for (EF)
The compatible graph is
-
In the compatible graph, the closed coverings are [(AB)(CD)(EF)], [(AB)(BC)(CD)(EF)], [(AC)(CF)(AD)(BE)], etc. Among these, the minimum is [(AB)(CD)(EF)].
-
Let us rename the states as S 1 (AB), S 2 (CD), and S 3 (EF).
The minimized machine M 1 * is
-
Test whether the following machine is finite or not.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
A, 0
|
B, 1
| |
B
|
C, 0
|
D, 1
| |
C
|
B, 1
|
A, 0
| |
D
|
D, 1
|
C, 0
|
Solution:
Testing Table–Testing Graph Method: A table which is divided into two halves is made. The machine has two inputs and two outputs. There are four input–output combinations namely 0/0, 0/1, 1/0, and 1/1. The upper half of the machine contains single state input–output combination and the lower half contains two state input–output combinations. There are four states, and so six combination pairs are made. The testing table is as follows:
In the testing table, there are six present states combinations. So, in the testing table, there are six nodes. There is a directed arc with a label of input output combination, from S i S j [i ≠ j] to S p S q [p ≠ q], if S p S q is the implied pair of S i S j . The testing graph for finite memory is
The testing graph is loop-free. So, the machine is finite. The longest path in the testing graph is 1. The order of finiteness of the machine μ = 1 + 1 = 2.
This can be proved by the vanishing connection matrix method.
In the testing table, six present state pairs are formed. Therefore, the connection matrix consists of six rows and six columns. The rows and columns are labelled with the pair of present state combinations.
In the matrix, the (i, j)th entry will be 1 if there is an entry in (S a S b ) (a ≠ b) and (S p S q ) (p ≠ q) combination in the corresponding testing table. Otherwise, the entry will be 0.
The connection matrix of the above machine is as follows.
In the above matrix, the rows AC, AD, BC, and BD contain all ‘0’. So, the rows labelled AC, AD, BC, and BD and the corresponding columns vanish.
The remaining matrix becomes
In the above matrix, the rows AB and CD contain all ‘0’. So, the rows labelled AB and CD and the corresponding columns vanish.
The matrix vanishes. The number of steps required to vanish the matrix is 2. So, the order of finiteness of the machine μ = 2.
-
Test whether the following machine is finite or not.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 1
|
C, 0
| |
B
|
A, 0
|
D, 1
| |
C
|
B, 0
|
A, 0
| |
D
|
C, 1
|
A, 1
|
Solution: There are four states, and so six combination pairs are made. The testing table is as follows.
In the testing table, there are six present states combinations. So, in the testing table, there are six nodes. There is a directed arc with a label of input–output combination, from S i S j [i ≠ j] to S p S q [p ≠ q], if S p S q is the implied pair of S i S j . The testing graph for finite memory is
In the testing graph, there is a loop from AC to AC with label 1/0. The testing graph is not loop-free. So, the machine is not of finite memory.
This can be proved by the vanishing connection matrix method.
In the testing table, six present state pairs are formed. Therefore, the connection matrix consists of six rows and six columns. The rows and columns are labelled with the pair of present state combinations.
The connection matrix of the previous machine is as follows.
In the previous matrix, the rows AB and CD contain all ‘0’. So, the rows labelled AB and CD and the corresponding column vanish.
The remaining matrix becomes
In the previous matrix, the row AD contains all ‘0’. So the row labelled AD and the corresponding column vanish.
The remaining matrix becomes
In the previous matrix, the rows BC and BD contain all ‘0’. So, the rows labelled BC and BD and the corresponding column vanish.
The remaining matrix becomes
The matrix does not vanish. So, the machine is not of finite memory.
-
Test whether the following machine is finite or not.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 0
|
A, 1
| |
B
|
D, 1
|
C, 0
| |
C
|
C, 0
|
D, 1
| |
D
|
A, 1
|
B, 0
|
Soution: There are four states, and so six combination pairs are made. The testing table is as follows.
In the testing table, there are six present states combinations. So, in the testing table, there are six nodes. The testing graph for finite memory is
The testing graph is loop-free. So, the machine is finite. The longest path in the testing graph is 1. The order of finiteness of the machine μ = 1 + 1 = 2
Proof by Vanishing Connection Matrix: In the testing table, six present state pairs are formed. Therefore, the connection matrix consists of six rows and six columns. The rows and columns are labelled with the pair of present state combinations.
The connection matrix of the previous machine is as follows.
In the above matrix, the rows AB, AD, BC, and CD contain all ‘0’. So, the rows labelled AB, AD, BC, and CD and the corresponding column vanish.
The remaining matrix becomes
The matrix vanishes. So, the machine is of finite memory. The connection matrix vanishes in two steps. So, the order of finiteness of the machine μ = 2.
-
Find whether the following machine is definite or not.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
D
|
E
| |
B
|
A
|
B
| |
C
|
C
|
B
| |
D
|
C
|
B
| |
E
|
A
|
B
|
Solution: There are three methods to check whether a machine is definite or not:
- Synchronizing tree method
- Contracted table method
- Testing table–Testing graph method
(i) Synchronizing Tree Method: (ABCDE) is the present state combination of the machine. It has two types of inputs, 0 and 1. (ABCDE) with input 0 produces the next state combination (DACCA). It can be grouped into two distinct states (ACD). (ABCDE) with input 1 produces the next state combination (EBBBB) which can be grouped into (BE).
In the next level, (ACD) with input 0 produces the next state combination (CD). With input 1, (ACD) produces the next state combination (BE). The state combination (BE) with input 0 produces the single next state (A). With input 1, the state combination (BE) produces the single state B. As A and B are single states, it need not be derived again. By this process, (CD) and (BE) are also derived for input 0 and 1. The synchronizing tree is
As the leaf nodes are of single state, stop constructing the tree. The order of definiteness is the maximum label of the synchronizing tree. In this case, the order is 3.
(ii) Contracted Table Method: In the previous machine, C and D have the same next state combination (both cases C and B). B and E also have the same next state combination (both cases C and B) Therefore, C and D are equivalent states and B and E are also equivalent states. Among C and D, let us take only C, and among B and E let us take B. That is, all the D in the state table are replaced by C and all the E in the state table are replaced by B. The original and contracted table is
In the previous machine, A and C have the same next state combination (both cases C and B). Therefore, A and C are equivalent states. Among A and C, let us take only A. That is, all the C in the state table are replaced by A. The contracted table becomes
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
A
|
B
| |
B
|
A
|
B
|
In the previous machine, A and B have the same next state combination (both cases A and B). Therefore, A and B are equivalent states. Among A and B, let us take only A. That is, all the B in the state table are replaced by A. The contracted table becomes
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
A
|
A
|
The obtained table consists of a single row. So, the machine is definite. Its order is the number of steps required to obtain the single state machine, and here it is 3.
(iii) Testing Table–Testing Graph Method: A table with two halves is made. The upper half contains the input and next state combination. The lower half of the table contains all the combination of present states taking two into combination. Here, for five present states (A, B, C, D, E), there are 5 C 2 , which is 10, combinations. The table is
| Present State
|
0
|
1
| | --- | --- | --- | |
A
|
D
|
E
| |
B
|
A
|
B
| |
C
|
C
|
B
| |
D
|
C
|
B
| |
E
|
A
|
B
| |
AB
|
AD
|
BE
| |
AC
|
CD
|
BE
| |
AD
|
CD
|
BE
| |
AE
|
AD
|
BE
| |
BC
|
AC
|
BB
| |
BD
|
AC
|
BB
| |
BE
|
AA
|
BB
| |
CD
|
CC
|
BB
| |
CE
|
AC
|
BB
| |
DE
|
AC
|
BB
|
The testing graph is
The testing graph is loop-free. So, the machine is of definite memory. The longest path of the testing graph is 2 (AE
AD
BE or AB
AD
BE). So, the order of definiteness of the machine is 2 + 1 = 3. (We can use any of the methods to check definiteness of the machine. Among them, the contracted table method is the best. The synchronizing tree method is good, but if the machine is not definite the leaf nodes of the synchronizing tree will not become single state. And the construction will be an endless process. If the number of states of the machine is large, then the number of nodes will also be large. It will be difficult to construct the testing table and testing graph.)
-
Find whether the following machine is definite or not.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
C
|
B
| |
B
|
E
|
F
| |
C
|
A
|
F
| |
D
|
E
|
B
| |
E
|
C
|
D
| |
F
|
E
|
F
|
Solution: There are three ways to check whether a machine is definite or not. But among them, the contracted table method is the best.
In the previous machine, B and F produce the same next state (both cases E and F). So, B and F are equivalent states. Take any of them—let us take B. That is, all F in the state table is replaced by B. The contracted table from the original one is
In the previous state table, B and D produce the same next states (both cases E and B). So, they are equivalent states. Let us take only B and replace all the occurrences of D by B. The contracted table becomes
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
C
|
B
| |
B
|
E
|
B
| |
C
|
A
|
B
| |
E
|
C
|
B
|
In the previous state table, A and E are equivalent states as they produce the same next state combination (both cases C and B). Let us take only A and replace all occurrences of E in the table by A. The contracted table is
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
C
|
B
| |
B
|
A
|
B
| |
C
|
A
|
B
|
In the earlier state table, B and C are equivalent states as they produce the same next state combination for input 0 and 1. Let us take only B and replace all the occurrences of C in the table by B. The contracted table becomes
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B
|
B
| |
B
|
A
|
B
|
The state table does not become a single row table. So, the machine is not definite.
-
Find whether the following machine is definite or not.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B
|
C
| |
B
|
D
|
A
| |
C
|
B
|
E
| |
D
|
D
|
E
| |
E
|
B
|
E
| |
F
|
B
|
C
|
Solution: The contracted table method is used to check whether the given machine is definite or not. In the previous machine, the present states C and E produce the same next state combination for input 0 and 1. In the same way, A and F also produce the same next state combination (both cases B and C). So both C and E, and A and F are equivalent state. Keep C and remove E from the present state column and replace all occurrences of E in the next state column by C. In the same way, keep A and remove F from the present state column and replace all occurrences of F in the next state column by A. The contracted table becomes
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B
|
C
| |
B
|
D
|
A
| |
C
|
B
|
C
| |
D
|
D
|
C
|
In the previous table, A and C are equivalent states as they produce the same next state combination for input 0 and 1. Remove C from the present state column and replace all occurrences of C in the next state portion by A. The contracted table becomes
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B
|
A
| |
B
|
D
|
A
| |
D
|
D
|
A
|
In the previous state table, B and D are equivalent states as they produce the same next state combination for input 0 and 1. Take B, remove D, and replace all occurrences of D in the next state portion by B. The contracted table becomes
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B
|
A
| |
B
|
B
|
A
|
In the previous state table, A and B are equivalent states as they produce the same next state combination for input 0 and 1. Replace B by A and remove B as a present state. The contracted table is
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
A
|
A
|
The obtained table consists of a single row. So, the machine is definite. Its order is the number of steps required to obtain the single state machine, and here it is 4.
-
Test whether the following machine is information lossless or not. If lossless, find its order.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 1
|
A, 1
| |
B
|
D, 0
|
B, 0
| |
C
|
D, 0
|
B, 1
| |
D
|
E, 1
|
C, 1
| |
E
|
A, 1
|
B, 0
|
Solution: The first step to test whether a machine is lossless or not is to construct a testing table. The testing table is divided into two halves.
| Present State
|
Next State, O/P
| | --- | --- | |
Z = 0
|
Z = 1
| |
A
|
–
|
(AB)
| |
B
|
(BD)
|
–
| |
C
|
D
|
B
| |
D
|
–
|
(CE)
| |
E
|
B
|
A
| |
(AB)
|
–
|
–
| |
(BD)
|
–
|
–
| |
(CE)
|
(BD)
|
(AB)
|
The testing table does not contain any repeated entry. The machine is an information lossless machine.
The testing graph for the machine is
The testing graph for information losslessness is loop-free. The order of losslessness is μ = 1 + 2 = 3. The length of the longest path of the graph is 1.
-
Test whether the following machine is information lossless or not. If lossless, find its order.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 1
|
C, 1
| |
B
|
D, 0
|
E, 0
| |
C
|
A, 1
|
F, 1
| |
D
|
C, 0
|
B, 0
| |
E
|
F, 1
|
A, 1
| |
F
|
E, 0
|
D, 0
|
Solution: First, we have to construct a testing table for information losslessness for testing whether the machine is information lossless or not. The testing table is divided into two halves.
| Present State
|
Next State
| | --- | --- | |
z = 0
|
z = 1
| |
A
|
–
|
BC
| |
B
|
DE
|
–
| |
C
|
–
|
AF
| |
D
|
BC
|
–
| |
E
|
–
|
AF
| |
F
|
DE
|
–
| |
AF
|
–
|
–
| |
BC
|
–
|
–
| |
DE
|
–
|
–
|
The testing table does not contain any repeated entry. The machine is an information lossless machine.
The testing graph for the machine is
The testing graph for information losslessness is loop-free. The order of losslessness is μ = 0 + 2 = 2. The length of the longest path of the graph is 0.
-
Test whether the following machine is information lossless or not. If lossless, find its order.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 0
|
E, 0
| |
B
|
E, 0
|
D, 0
| |
C
|
D, 1
|
A, 0
| |
D
|
C, 1
|
E, 0
| |
E
|
B, 0
|
D, 0
|
Solution: First, we have to construct a testing table for information losslessness for testing whether the machine is information lossless or not. The testing table is divided into two halves.
| Present State
|
Next State
| | --- | --- | |
z = 0
|
z = 1
| |
A
|
BE
|
–
| |
B
|
DE
|
–
| |
C
|
A
|
D
| |
D
|
E
|
C
| |
E
|
BD
|
–
| |
BD
|
(DE)(EE)
|
–
| |
BE
|
(BD)(DE)
|
–
| |
DE
|
(BE)(DE)
|
–
|
The testing table contains repeated entry (EE). Therefore, the machine is a lossy machine.
-
Test whether the following machine is information lossless or not. If lossless, find its order.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 1
|
C, 0
| |
B
|
B, 1
|
D, 1
| |
C
|
E, 1
|
B, 0
| |
D
|
A, 0
|
E, 0
| |
E
|
F, 0
|
D, 1
| |
F
|
A, 1
|
D, 0
|
Solution: First, we have to construct a testing table for information losslessness for testing whether the machine is information lossless or not. The testing table is divided into two halves.
| Present State
|
Next State
| | --- | --- | |
z = 0
|
z = 1
| |
A
|
C
|
B
| |
B
|
–
|
(BD)
| |
C
|
B
|
E
| |
D
|
(AE)
|
–
| |
E
|
F
|
D
| |
F
|
D
|
A
| |
AE
|
CF
|
BD
| |
BD
|
–
|
–
| |
CF
|
BD
|
AE
|
The testing table does not contain any repeated entry. The machine is an information lossless machine.
The testing graph for the machine is
The testing graph contains a loop. So, the machine is not information lossless of finite order. The order of losslessness μ = 2 + 2 = 4. The length of the longest path of the graph is 2.
-
The state table of a finite state machine M is as follows. Check whether the machine M is information lossless. If it is information lossless, then determine the order of losslessness.
[WBUT 2003]
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
A, 0
|
B, 0
| |
B
|
C, 0
|
D, 0
| |
C
|
D, 1
|
C, 1
| |
D
|
B, 1
|
A, 0
|
Solution: First, we have to construct a testing table for information losslessness for testing whether the machine is information lossless or not. The testing table is
| Present State
|
Next State
| | --- | --- | |
z = 0
|
z = 1
| |
A
|
(AB)
|
–
| |
B
|
(CD)
|
–
| |
C
|
–
|
(CD)
| |
D
|
–
|
(AB)
| |
(AB)
|
(AC)(AD)
|
–
| |
|
(BC)(BD)
|
| |
(CD)
|
–
|
(AC)(AD)
| |
|
|
(BC)(BD)
| |
(AC)
|
–
|
–
| |
(AD)
|
–
|
–
| |
(BC)
|
–
|
–
| |
(BD)
|
–
|
–
|
The testing table does not contain any repeated entry. The machine is an information lossless machine.
To find the order of losslessness, a testing graph needs to be constructed.
The testing graph does not contain any loop. The order of losslessness is μ = 1 + 2 = 3. The length of the longest path of the graph is 1.
-
Find the input string which is applied on state ‘C’ producing the output string 1110000010 and the final state ‘B’ for the following machine.
| Present State
|
Next State
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
E, 1
|
F, 0
| |
B
|
D, 0
|
C, 1
| |
C
|
F, 1
|
A, 0
| |
D
|
C, 0
|
E, 0
| |
E
|
B, 0
|
D, 1
| |
F
|
D, 1
|
F, 1
|
Solution: First, we need to prove that the machine is information lossless. For this, we need to construct a testing table for information lossless. If the machine is information lossless, then only a single input string can be found for a single beginning state and single final state.
The testing table for information lossless is
| Present State
|
Next State
| | --- | --- | |
z = 0
|
z = 1
| |
A
|
F
|
E
| |
B
|
D
|
C
| |
C
|
A
|
F
| |
D
|
(CE)
|
–
| |
E
|
B
|
D
| |
F
|
–
|
(DF)
| |
CE
|
AB
|
DF
| |
AB
|
DF
|
CE
| |
DF
|
–
|
–
|
The testing table does not contain any repeated entry. The machine is an information lossless machine.
The output successor table for the given machine is
| Present State
|
Next State, I/P
| | --- | --- | |
z = 0
|
z = 1
| |
A
|
F, 1
|
E, 0
| |
B
|
D, 0
|
C, 1
| |
C
|
A, 1
|
F, 0
| |
D
|
(C, 0)
(E, 1)
|
–
| |
E
|
B, 0
|
D, 1
| |
F
|
–
|
(D, 0)
(F, 1)
|
The input string is applied on state C and has produced output 1. From the output successor table, it is clear that the next states are F with input 0. By this process, the transition is like the following
The beginning state C and the final state B are obtained from one path with the input string 0101000110.
-
Find the input string which is applied on state ‘D’ producing the output string 10011110 and the final state ‘D’ for the following machine.
| Present State
|
Next State, Z
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
A, 1
|
C, 1
| |
B
|
E, 0
|
B, 1
| |
C
|
D, 0
|
A, 0
| |
D
|
C, 0
|
B, 0
| |
E
|
B, 1
|
A, 0
|
Solution: First, we need to prove that the machine is information lossless. For this, we need to construct a testing table for information lossless. If the machine is information lossless, then only a single input string can be found for a single beginning state and single final state. The testing table for information lossless is
| Present State
|
Next State
| | --- | --- | |
z = 0
|
z = 1
| |
A
|
–
|
(AC)
| |
B
|
E
|
B
| |
C
|
(AD)
|
–
| |
D
|
(BC)
|
–
| |
E
|
A
|
B
| |
AC
|
–
|
–
| |
AD
|
–
|
–
| |
BC
|
(AE)(DE)
|
–
| |
AE
|
–
|
(AB)(BC)
| |
DE
|
(AB)(AC)
|
–
| |
AB
|
–
|
(AB)(BC)
|
The testing table does not contain any repeated entry. The machine is an information lossless machine. The output successor table for the given machine is
| Present State
|
Next State, I/P
| | --- | --- | |
z = 0
|
z = 1
| |
A
|
–
|
(A, 0), (C, 1)
| |
B
|
E, 0
|
B, 1
| |
C
|
(D, 0), (A, 1)
|
–
| |
D
|
(C, 0), (B, 1)
|
–
| |
E
|
A, 1
|
B, 0
|
The transition is like the following
The beginning state B and the final state D are obtained from one path with the input string 10100010.
-
Retrieve the input sequence from the machine when it was initially in state B, has, in response to yet unknown input sequence, produced the output sequence 01110, and terminated in state B.
[WBUT 2003]
| Present State
|
Next State
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
A, 0
|
B, 0
| |
B
|
C, 0
|
D, 0
| |
C
|
D, 1
|
C, 1
| |
D
|
B, 1
|
A, 1
|
Solution: To retrieve the input sequence, first we need to check whether the machine is information lossless or not. The machine is information lossless as given in Example 4.20 .
The output successor table for the given machine is
| Present State
|
Next State, I/P
| | --- | --- | |
z = 0
|
z = 1
| |
A
|
(A, 0), (B, 1)
|
–
| |
B
|
(C, 0), (D, 1)
|
–
| |
C
|
–
|
(D, 0), (C, 1)
| |
D
|
–
|
(B, 0), (A, 1)
|
The final state is B, and thus the input is 01011.
-
Design a minimal inverse of the machine shown in the following table.
[WBUT 2007, 2008]
| Present State
|
Next State
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
C, 0
|
D, 1
| |
B
|
D, 0
|
C, 0
| |
C
|
A, 1
|
B, 1
| |
D
|
C, 1
|
D, 1
|
Solution: To find the minimal inverse machine, first we need to find the order of losslessness of the machine.
| Present State
| | --- | |
z = 0
|
z = 1
| |
A
|
C
|
D
| |
B
|
D
|
C
| |
C
|
AB
|
–
| |
D
|
–
|
CD
| |
AB
|
CD
|
CD
| |
CD
|
–
|
–
|
The testing graph is
It is loop-free. And the order of finiteness is 3.
Therefore, if we know the initial state and the values of three successive outputs produced by transitions from the initial state, we can determine the first input given to the machine. We need to determine a set of triples, denoted by {S(t), z(t + 1), and z(t + 2)}. There are four states of the machine. The triples are
<table><colgroup><col> <col> <col></colgroup><tbody><tr><th><div>Present State</div></th><th><div>Next State, X</div></th></tr><tr><th><div>z = 0</div></th><th><div>z = 1</div></th></tr><tr><td><div>(A, 0, 0)</div></td><td><div>(C, 0, 0), 0</div></td><td><div>(C, 0, 1), 0</div></td></tr><tr><td><div>(A, 1, 1)</div></td><td><div>(D, 1, 0), 1</div></td><td><div>(D, 1, 1), 1</div></td></tr><tr><td><div>(B, 0, 1)</div></td><td><div>(D, 1, 0), 0</div></td><td><div>(D, 1, 1), 0</div></td></tr><tr><td><div>(B, 1, 0)</div></td><td><div>(C, 0, 0), 1</div></td><td><div>(C, 0, 1), 1</div></td></tr><tr><td><div>(C, 0, 0)</div></td><td><div>(A, 0, 0), 0</div></td><td><div>(B, 0, 1), 1</div></td></tr><tr><td><div>(C, 0, 1)</div></td><td><div>(B, 1, 0), 1</div></td><td><div>(A, 1, 1), 0</div></td></tr><tr><td><div>(D, 1, 0)</div></td><td><div>(C, 0, 0), 0</div></td><td><div>(C, 0, 1), 0</div></td></tr><tr><td><div>(D, 1, 1)</div></td><td><div>(D, 1, 0), 1</div></td><td><div>(D, 1, 1), 1</div></td></tr></tbody></table>
Here, states (A, 0, 0), (D, 1, 0) and (A, 1, 1) and (D, 1, 1) are equivalent states as they produce the same next state and same output. Let us assign (A, 0, 0) as S 1 , (A, 1, 1) as S 2 , (B, 0, 1) as S 3 , (B, 1, 0) as S 4 , (C, 0, 0) as S 5, and (C, 0, 1) as S 6 .
The minimal inverse machine is
| Present State
|
Next State, X
| | --- | --- | |
Z = 0
|
Z = 1
| |
S 1
|
S 5 , 0
|
S 6 , 0
| |
S 2
|
S 1 , 1
|
S 2 , 1
| |
S 3
|
S 1 , 0
|
S 2 , 0
| |
S 4
|
S 5 , 1
|
S 6 , 1
| |
S 5
|
S 1 , 0
|
S 3 , 1
| |
S 6
|
S 4 , 1
|
S 2 , 0
|
Multiple Choice Questions
-
A palindrome cannot be recognized by any FSM because
- An FSM cannot remember arbitrary, large amount of information
- An FSM cannot deterministically fix the mid-point
- Even if the mid-point is known, an FSM cannot find whether the second half of the string matches the first half
- All of these
-
The basic limitation of an FSM is that
- It cannot remember arbitrary, large amount of information
- It cannot recognize grammars that are regular
- It sometimes recognizes grammars that are not regular
- All of these
-
The operation of synchronous circuits are controlled by
- Input
- State
- Output
- Clock pulses
-
The output of combinational circuit depends on
- Present state
- Past input
- Present input
- Present stored information and present input
-
The output of sequential circuit depends on
- Present state
- Past input
- Present input
- Present stored information and present input
-
For which of the following, FSM cannot be designed
- Addition of two binary numbers
- Subtraction of two binary numbers
- Multiplication of two binary numbers
- All of these
-
Which is true of the following?
- A merger graph is a directed graph
- A compatible graph is a directed graph
- Both are not directed
- None of these
-
A merger table is a substitute of
- Merger graph
- Compatible graph
- Minimized machine
- FSM
-
Two states are called 1-equivalent if
- Both of the states produce 1
- If both of the states produce the same output for string length 1
- If both of the states produce the same output for same input.
- If both of the states produce the same output for input 1.
-
Which is true for an incompletely specified machine?
- All Next states are not mentioned
- All outputs are not mentioned
- All inputs are not mentioned
- Both a and b
-
Compatible pairs are obtained from
- Merger graph
- Compatible graph
- Testing table
- Testing graph
-
The number of vertices of a merger graph is
- The number of states of the machine
- The number of compatible pairs
- The number of states combinations
- None of these
-
The number of vertices of a compatible graph is
- The number of states of the machine
- The number of compatible pairs
- The number of states combinations
- None of these
-
An FSM M is called a finite memory machine of order μ if the present state of the machine M can be obtained from
- The last μ number of inputs and the corresponding μ number of next states
- The last μ number of inputs and the corresponding μ number of outputs
- The last μ number of next states and the corresponding μ number of outputs
- The last μ number of inputs
-
A sequential machine M is called definite if there exists a least integer μ , so that the present state of the machine M can be uniquely obtained from the
- Past μ number of inputs
- Past μ number of outputs
- Past μ number of next states
- Past μ number of inputs, outputs, and next states
-
Which is sufficient to find the initial state of an information lossless machine from the input string?
- Next state and output string
- Final state and next state
- Final state and output string
- Final state, next state, and output string
-
The input sequence of an information lossless machine can be determined from the knowledge of
- Only the output sequence
- The output sequence and initial state
- The output sequence, initial state, and final state
- The initial state
-
Which is true of the following?
- All information lossless machines are of finite order
- Some information lossless machines are of finite order
- Those machines which are not lossless of finite order are lossy
- None of the above
-
The following diagram represents an FSM which takes as input a binary number from the least significant bit.
Which one of the following is true?
- It computes 1’s complement of the input number
- It computes 2’s complement of the input number
- It increments the input number
- It decrements the input number
Answers:
- d
- a
- d
- c
- d
- c
- b
- a
- b
- d
- a
- a
- b
- b
- a
- c
- c
- b
- b #
Hints:
19 Take 1101 → the output is 0011, which is 2’s complement of 1101.
Fill in the Blanks
- A synchronous circuit is controlled by ________________.
- The operations in an asynchronous circuit are controlled by a number of ________________.
- The output of combinational circuits is a function of ________________.
- The output of sequential circuits is a function of ________________.
- Binary adder is a ________________.
- Modulo 3 binary counter has ________________ states.
- An FSM can be defined as a type of machine whose past histories can affect its ________________ in ________________ a of ways.
- Two states S i and S j of machine M are said to be equivalent if they produce the same ________________ for an ________________ applied to the machine M, considering S i and S j as the initial states.
- If two states are k-distinguishable, then they are ________________ equivalent for k = k to 1.
- The equivalent partition is ________________.
- Incompletely specified machines are those machine where for all states for all inputs the ________________ or ________________ or both are not mentioned.
- Minimal machine is the ________________ of the machines obtained by minimizing an incompletely specified machine.
- A merger graph of a machine M of ‘n’ states is an ________________ graph.
- In a merger graph, there will be an ________________ arc if the next states of the two states (vertices) do not conflict.
- In a merger graph, there will be no arc between the two vertices if the ________________ of the pair of states conflict.
- Two states, say S i and S j , are said to be compatible, if both of them give the same ________________ strings for all ________________ strings applied to the machine separately, considering S i and S j as the initial states.
- A compatibility graph is a ________________ graph.
- A subgraph of a compatibility graph is called ________________ if for every vertex in the subgraph, all outgoing arcs and the terminal vertices of the arcs also belong to the subgraph.
- A merger table is a substitute application of ________________.
- From a merger graph, we can get the compatible pairs and ________________.
- A vanishing connection matrix is used to find whether a machine is ________________ or not.
- A synchronizing tree method is used to find whether a machine is ________________ or not.
- A contracted table method is used to find whether a machine is ________________ or not.
- The order of definiteness μ = ________________, if the length of the longest path in the testing graph is 1.
- The order of definiteness of a machine is the ________________ of the synchronizing tree.
- A machine is called information lossless if its ________________ state, ________________ state, and ________________ string are sufficient to determine uniquely the input string.
- A machine which is not lossless is called ________________.
Answers:
- clock pulses
- completion and initialization signals
- present I/P
- external I/P and present stored information
- sequential circuit
- three
- future behaviour, finite number
- output sequences, input string
- k − 1
- unique
- next state, output
- minimum
- undirected
- uninterrupted
- outputs
- output, input
- directed
- closed
- merger graph
- implied pairs
- finite
- definite
- definite
- l + 1
- maximum label
- initial, final, output
- lossy
Exercise
-
Define an FSM. Mention the capabilities and limitations of an FSM.
-
What is the usefulness of a sequence detector? Can it be called a machine? Mention points in support of your answer. What do you mean by overlapping sequence? What is the need of considering overlapping sequence in constructing a sequence detector?
-
- Design a two input two output sequence detector which generates an output ‘1’ every time the sequence 0101 is detected. And for all other cases, output ‘0’ is generated. Overlapping sequences are also counted.
- Design a two input two output sequence detector which generates an output ‘1’ every time the sequence 1101 is detected. And for all other cases output ‘0’ is generated. Overlapping sequences are also counted.
-
Design a modulo 8 binary counter using JK flip flop.
-
What is the benefit of minimizing an FSM? What do you mean by equivalent partition of a machine? Prove that equivalent partition of an FSM is unique.
-
Find the equivalent partition for the following machine.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
E, 0
|
G, 0
| |
B
|
G, 0
|
F, 0
| |
C
|
H, 0
|
B, 1
| |
D
|
G, 0
|
A, 1
| |
E
|
A, 0
|
G, 0
| |
F
|
A, 0
|
A, 0
| |
G
|
F, 0
|
A, 0
| |
H
|
C, 1
|
A, 1
|
From here, minimize the machine.
-
Find the equivalent partition for the following machine.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
E, 0
|
D, 1
| |
B
|
F, 0
|
D, 0
| |
C
|
E, 0
|
B, 1
| |
D
|
F, 0
|
B, 0
| |
E
|
C, 0
|
F, 1
| |
F
|
B, 0
|
C, 0
|
Find the shortest input sequence that distinguishes state A from state E.
From here, minimize the machine.
-
-
Why are incompletely specified machines called incomplete? What is the necessity of simplifying these types of machines?
-
Simplify the following incompletely specified machine
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 1
|
C, 0
| |
B
|
A, 1
|
_, 1
| |
C
|
_, _
|
B, 0
|
-
Simplify the following incompletely specified machine
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
E, 1
|
D, 0
| |
B
|
E, 0
|
_,_
| |
C
|
_, 0
|
B, _
| |
D
|
A, 0
|
D, 1
| |
E
|
A, _
|
B, 0
|
-
-
Define minimal machine. What are differences between minimized machine and minimal machine? Why can the general equivalent partition method not be used to minimize an incompletely specified machine?
-
Find a minimal machine from the minimum machines for the following machine considering the unspecified outputs as ‘0’ or ‘1’.
| Present State
|
Next State
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 1
|
C, _
| |
B
|
A, _
|
C, 0
| |
C
|
A, 1
|
B, 0
|
-
-
Define a merger graph. Can a merger graph be drawn for a completely specified machine? Give reason in favor of your answer.
-
Develop a merger graph for the following incompletely specified machine. From there, find the compatible pairs.
-
Define a compatible pair and implied pair. What is the relation between these two? Define a compatible graph. What are differences between a merger graph and a compatible graph? Define closed covering and minimum closed covering.
-
For the previously given machine develop a compatible graph and from there develop the minimal machine.
-
-
Develop a merger graph from the following machine.
From there, find the compatible pairs. Check whether the same compatible pairs are obtained or not from the merger table constructed from the previous machine.
From the compatible pairs, develop a compatible graph, and hence find the minimal machine.
-
What do you mean by finite memory? What is the usefulness of a machine to be a finite memory?
-
Find out whether the following machines are of finite memory or not by the testing table – testing graph and vanishing connection matrix method. If finite, find its order.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
E, 0
|
G, 0
| |
B
|
G, 0
|
F, 0
| |
C
|
H, 0
|
B, 1
| |
D
|
G, 0
|
A, 1
| |
E
|
A, 0
|
G, 0
| |
F
|
A, 0
|
A, 0
| |
G
|
F, 0
|
A, 0
| |
H
|
C, 1
|
A, 1
|
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
D, 0
|
C, 0
| |
B
|
A, 0
|
E, 0
| |
C
|
E, 0
|
B, 0
| |
D
|
C, 0
|
D, 0
| |
E
|
E, 0
|
B, 1
|
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 0
|
D, 0
| |
B
|
C, 0
|
C, 0
| |
C
|
D, 0
|
A, 0
| |
D
|
D, 0
|
A, 1
|
-
-
Define a definite memory machine. What are the differences between a finite memory machine and a definite memory machine?
-
Test whether the following machines are definite or not using the synchronizing tree, contracted table and the testing table–testing graph method. If definite, find its order.
| Present State
|
Next State
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B
|
C
| |
B
|
A
|
D
| |
C
|
B
|
A
| |
D
|
C
|
A
|
| Present State
|
Next State
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
D
|
A
| |
B
|
B
|
B
| |
C
|
A
|
A
| |
D
|
C
|
B
|
| Present State
|
Next State
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 1
|
C, 0
| |
B
|
D, 1
|
B, 1
| |
C
|
E, 1
|
B, 0
| |
D
|
A, 0
|
E, 0
| |
E
|
F, 0
|
D, 1
| |
F
|
D, 0
|
A, 0
|
-
-
What do you mean by information losslessness of a machine? What is the usefulness of it? Find whether the following machines are information lossless or not. If lossless of definite order, find the order of losslessness.
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
A, 1
|
C, 1
| |
B
|
E, 0
|
B, 1
| |
C
|
D, 0
|
A, 0
| |
D
|
C, 0
|
B, 0
| |
E
|
B, 1
|
A, 0
|
| Present State
|
Next State, O/P
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
D, 1
|
E, 0
| |
B
|
A, 0
|
B, 1
| |
C
|
C, 0
|
B, 0
| |
D
|
C, 1
|
B, 1
| |
E
|
A, 0
|
B, 0
|
-
Find the input string applied to state A of the following machine where the final state is B and the output string is 1110000010.
| Present State
|
Next State, Z
| | --- | --- | |
X = 0
|
X = 1
| |
A
|
B, 1
|
C, 0
| |
B
|
D, 1
|
B, 1
| |
C
|
E, 1
|
B, 0
| |
D
|
A, 0
|
E, 0
| |
E
|
F, 0
|
D, 1
| |
F
|
D, 0
|
A, 1
|