SD03 - Finite State Machines 2 Flashcards
A formal representation of an FSM is F = (S, σ, I, O, f, g)
What does the S represent?
The set containing all of the machine’s states
A formal representation of an FSM is F = (S, σ, I, O, f, g)
What does the σ represent?
The initial state of the machine
A formal representation of an FSM is F = (S, σ, I, O, f, g)
What does the I represent?
The input alphabet.
All of the possible characters the machine can take as input.
A formal representation of an FSM is F = (S, σ, I, O, f, g)
What does the O represent?
The output alphabet.
All of the possible characters the machine can output.
A formal representation of an FSM is F = (S, σ, I, O, f, g)
What does the f represent?
The next state function
The function maps from a state from S and a character from I as input to a state from S as output:
f : (S, I) → S
A formal representation of an FSM is F = (S, σ, I, O, f, g)
What does the g represent?
The output function
The function maps from a state from S and a character from I as input to a sequence of characters from O as output:
g : (S, I) → O*
What does orthogonality mean?
No information is duplicated, everything we need is specified exactly once
What is the formal presentation of a finite-state machine?
F = (S, σ, I, O, f, g)