Professional Documents
Culture Documents
Lec-3 (Finite Automata)
Lec-3 (Finite Automata)
✓ Finite Automata
✓ Deterministic Finite Automata (DFA)
Finite Automaton
Finite automata is an abstract computing device. It is a mathematical model of
a system with discrete inputs, outputs, states and a set of transitions from state
to state that occurs on input symbols from the alphabet Σ.
Finite Automaton cont.
• Two types of automata:
1. Deterministic: The automaton cannot be in more than one state at any
one time.
2. Non-deterministic: the automaton may be in several states at once.
If the internal state, input and contents of the storage are known,
it is possible to predict the future behaviour of the automaton.
This is said to be deterministic automata otherwise it is
nondeterminist automata.
Deterministic Finite Automata (DFA)
❑ Formal Definition of DFA: A DFA is a collection of 5-tuples same as we
described in the definition of FA.
Explanation: In the above diagram, we can see that on given 0 as input to DFA in
state q0 the DFA changes state to q1 and always go to final state q1 on starting
input 0. It can accept 00, 01, 000, 001....etc. It can't accept any string which starts
with 1, because it will never go to final state on a string starting with 1.
DFA Example:
DFA Example:
DFA Example
DFA Example
Acceptance