U9 TOPIC 1 Flashcards
What is a Finite State Machine?
It is an abstract representation of how something changes from one state to another in response to a condition or event
What is an FSM used for?
It is used to design computer programs and sequential logic circuits, test for valid syntax.
Notation - Circle?
State
Notation - Circle (with arrow pointing into it)
Start State
Notation - Circle with smaller Circle inside
Accept State
Notation - Arrow
Transition
What is a Mealy Machine
It is a type of FSM. It is deterministic, for each combination of state and input, only a single transition can be assigned
What does a Mealy Machine do?
It generates an output on each state transition. The output is determined by its current state and its current input
What is the Use of a Mealy Machine?
It can be used to map an input sequence to an output sequence. Used in Language Parsing. Can use to translate from one language to another.
Mealy Machine Notation
The notation is input/output (as seen on top of transition arrows - if 0/1 input is 0, output is 1)