Given the following state table of an FSM with two states and ,one input and one output.
If the initial state is what is the minimum length of an input string which will take the machine to the state with .
View worked solution
Answer: A
To find the minimum length of the input string that takes the machine from the initial state to the state with an , we can analyze the state transitions backward from the target condition.
Step 1: Identify the target transition
From the state table, look for transitions where the Next State is and the Output is :
- Only the row with Present State and Input results in Next State with Output .
Step 2: Find the shortest path from to
- From , applying input leads to state (Row 5).
- From , applying input leads to state (Row 2).
Step 3: Combine the sequences
Appending the final input to the sequence gives the complete input string:
Tracing this sequence:
The minimum length of the input string is .
Free practice · Your answers on this page are not saved.
