- #1
r0bHadz
- 194
- 17
- Homework Statement:
-
Create a finite state machine that recognizes the input strings “a”, “abc” and “cab” by
outputting a 1 (otherwise output 0 for the input).
The input alphabet is {a, b, c}. The output alphabet is {0, 1}.
The input stream may be any length, beginning with any arbitrary sequence of the input
alphabet.
The FSM should be completely specified. The FSM must include both inputs and outputs
for each transition.
The FSM should not terminate.
The FSM should recognize overlapping tokens (input strings).
- Relevant Equations:
-
An FSM is an abstract representation of behavior
exhibited by some systems.
Attached is what I have so far. I believe it is done but I am not 100% sure.
It seems to me like every case is considered. For each state, and output of a,b, or c is possible.
It seems to me like every case is considered. For each state, and output of a,b, or c is possible.
Attachments
Last edited by a moderator: