2. Finite Automata
06/02/23
This content is basically state machines from Y1S1 (Bagley)
Deterministic Finite Automata (DFA)
A deterministic finite automaton (DFA)
- A finite set of states
- A finite set of input symbols, the alphabet,
- A transition function
- An initial state
- A set of final states An example is the following automaton
Initial state are sometimes called start states, and final states are sometimes called accepting states
Initial state is identified by putting an arrow to the left of it and the final state are identified by a star . Initial states can also be final
Can also represent a DFA through a transition diagram
Language of a DFA
- The words accepted by a DFA is called the language of the DFA.
- Once all symbols in the input word have been read, the word is accepted if the state is final, otherwise the word is rejected