A finite state machine with the following state table has a single input and a single out .
If the initial state is unknown, then the shortest input sequence to reach the final state is:
View worked solution
Answer: B
To find the shortest input sequence that guarantees reaching the state from an unknown initial state, we must find a sequence of inputs that maps the set of all possible initial states, , to the singleton set .
Let's trace the state transitions for the input sequences starting with length 1:
- If the input is :
- If the input is :
Since no single-input sequence guarantees reaching state , we test the 2-input sequences starting from the state sets obtained above:
Testing Option B: (Input followed by )
- Applying input to the initial set results in the state set .
- Now, applying input to the set :
Thus, the sequence successfully forces the machine into state regardless of the initial state.
Testing Option A: (Input followed by )
- Applying input to the initial set results in the state set .
- Applying input to the set :
Therefore, the shortest input sequence to reach the final state is .
Free practice · Your answers on this page are not saved.
