2. DFAs
Jan 13, 2022
Deterministic Finite Automata
1 |
|
- for every state there is a transition for every symbol, in the alphabet
- machine cannot change memory, only read from it
- to accept: all input is scanned and last state is accepting
- to reject: all input is scanned and the last state is non-accepting
Formal definition
where is set of states is input alphabet and (never contains empty string) is transition function is initial state is set of accepting states (0 or more)
Transition function
- describes the result of a transition from state
with symbol : -
can be represented as a transition table, for example:
a b
Extended transition function
- describes the resulting state after scanning string
from state - example:
- special case, for any state q:
- in general: implies there is a walk of transitions
from q to q'
Language accepted by DFA
denotes and contains all strings accepted by M, i.e. M recognizes- for a DFA,
=> - language rejected by M:
- language L is regular is there is a DFA M that accepts it
- the languages accepted by DFAs form the family of regular languages